# Voice, audio & RAG cost

Vapi, Retell, Twilio, Bland, Synthflow, ElevenLabs, Deepgram and AssemblyAI call costs, and vector database cost, as non-token cost lines.

AI Spendbook documentation, Your app's data. Web page: https://www.aispendbook.com/docs/voice-and-audio

Voice, telephony and retrieval cost is billed in minutes, characters, calls or cluster hours, not model tokens. It enters AI Spendbook as non-token cost lines: shown on their own line outside the AI spend totals, and counted in [cost per accepted outcome](https://www.aispendbook.com/docs/outcomes-and-unit-costs). Each connector has its own page.

## Voice and telephony

| Connector | How data arrives | What it writes |
| --- | --- | --- |
| [Vapi](https://www.aispendbook.com/integrations/vapi) | Direct read with a private API key | Telephony, speech to text, text to speech and the platform fee, one line per call and part. |
| [Retell AI](https://www.aispendbook.com/integrations/retell) | Direct read with an API key | The same parts per call, classified by Retell's product names. |
| [Bland AI](https://www.aispendbook.com/integrations/bland) | Direct read with an API key | The billed price of each completed call, with the customer ID from call metadata. |
| [Synthflow](https://www.aispendbook.com/integrations/synthflow) | Direct read with an API key | Minutes per call for the agents you list. No price: set a per-minute rate. |
| [Twilio](https://www.aispendbook.com/integrations/twilio) | Direct read with a Standard API key | Billed cost per day for voice, SMS and numbers, per account. Mapped to customers on Customer margin. |
| [ElevenLabs](https://www.aispendbook.com/integrations/elevenlabs) | Direct read with an API key | Text-to-speech characters per day. Experimental: the endpoint is deprecated by ElevenLabs. |
| [Deepgram](https://www.aispendbook.com/integrations/deepgram) | Direct read with an API key | Speech-to-text minutes and text-to-speech characters per day for one project. |
| [AssemblyAI](https://www.aispendbook.com/integrations/assemblyai) | You record cost lines yourself | No account usage or spend API. Enter speech-to-text lines from your invoice. |

- Vapi and Retell do not import the model part of a call by default: with your own provider key those tokens already arrive through the provider connection. Turn on `include_llm_cost` only if the voice platform bills your model usage.
- ElevenLabs, Deepgram and Synthflow report quantities, not prices. A dollar amount is written only when you set your own unit price on the connection; otherwise the line carries the quantity with an amount of zero.
- A stored cost line is never changed. A price set later applies to days synced after the change.
- Twilio, Deepgram and ElevenLabs cost reaches customers through the account it was billed to, mapped on Customer margin, or by share of voice minutes. See [customer margin](https://www.aispendbook.com/docs/customer-margin).

## Retrieval (RAG)

| Connector | How data arrives | What it writes |
| --- | --- | --- |
| [Qdrant Cloud](https://www.aispendbook.com/integrations/qdrant) | Direct read with an API key | Billed clusters, backups and inference from the Metering API, tagged with the RAG feature. |
| [Pinecone](https://www.aispendbook.com/integrations/pinecone) | Direct read with a service account (Enterprise plan), or CSV | Billed cost from the Admin API cost export, tagged with the RAG feature. Credits are not subtracted. On other plans, upload the usage report. |
| [Zilliz Cloud](https://www.aispendbook.com/integrations/zilliz) | Direct read with an API key | Daily usage amounts from the Query Daily Usage API (public preview, enabled by Zilliz on request), tagged with the RAG feature. |
| [Weaviate Cloud](https://www.aispendbook.com/integrations/weaviate) | PDF invoice (upload or forward), or CSV | No billing API. The invoice amount before tax is spread over the service period. |
| [Turbopuffer](https://www.aispendbook.com/integrations/turbopuffer) | PDF invoice (upload or forward), or CSV | No billing API. The invoice amount before tax is spread over the service period. |

Upload a PDF invoice under Outcomes, Import cost lines (choose the vendor), or forward the invoice email to the workspace's invoice address. USD invoices only; others are stored for the tie-out with a note and no lines. The same invoice twice adds nothing. The invoice layouts were built from common invoice labels, not from published vendor layouts.

Zilliz documents amounts in dollars in English and in cents on one translated page; check one day against the Zilliz console after connecting.

Upload CSV files under Outcomes, Non-token cost lines, Import CSV, with columns `date`, `amount_usd` and optionally `kind`, `quantity`, `unit`, `customer_id`, `feature` and `external_id`. Uploading the same rows again adds nothing.

The direct connectors were built from each vendor's public API documentation and tested with recorded responses. None has been run against a live account with data yet.
