Bring your own LLM to a voice agent

Rene 
Bring your own LLM to a voice agent

Cartesia Managed Agents runs on a managed model or on your own OpenAI-compatible endpoint, at $0.03 a minute plus the model. With your own endpoint, your model writes every reply, and Cartesia runs speech recognition, speech synthesis, turn-taking and tools around it.

The setup details below come from Cartesia’s Custom LLMs, Managed LLMs and agent configuration docs, read on December 3, 2026.

Managed model or your own?

A managed model needs no provider account or API key. The catalog has models from OpenAI, Anthropic and Google Gemini, and GET /v1/agents/models lists each one with its provider, average latency and token prices.

Bring your own model when you have a fine-tuned model, a model in your own cloud account, or a provider contract you want the tokens billed under. The endpoint has to speak Chat Completions over public HTTPS. A Responses-only endpoint won’t work.

How do you connect your own LLM?

Set the agent’s model ID to custom_llm when you create or update the agent, and give the base URL of your API. This request, from the docs, creates an agent on a custom endpoint with a bearer token:

curl -X POST "https://api.cartesia.ai/v1/agents" \
  -H "X-API-Key: $CARTESIA_API_KEY" \
  -H "Cartesia-Version: 2026-08-14" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Acme Support",
    "config": {
      "model": {
        "id": "custom_llm",
        "custom_llm": {
          "url": "https://llm.example.com/v1",
          "model_id": "acme-support-v1",
          "authentication": {
            "mode": "bearer",
            "token": {
              "type": "secret",
              "secret_value": "YOUR_LLM_API_KEY",
              "secret_description": "LLM API key"
            }
          }
        }
      }
    }
  }'

https://llm.example.com/v1 receives requests at /v1/chat/completions. Authentication can be a bearer token, Basic auth, or your own headers such as api-key.

An update replaces the whole custom_llm object, so resend every field you want to keep. Send the token as {"type": "secret"} without a secret_value to keep the stored key. To switch back, set model.id to a managed model ID.

What your endpoint receives

Cartesia sends streaming POST requests with the agent’s instructions as the system message and the conversation so far. Your server streams back Chat Completions chunks as text/event-stream, ending with data: [DONE].

  • Tools. When the agent has tools, the request includes them in the function-tool format. Your model has to support function calling to use them, including system tools such as ending the call.
  • Call context. Set send_call_context to true and each request carries the call’s dynamic variables, such as the caller ID and your own customer_name, in cartesia_extra_body.
  • Overlapping requests. Speculative generation is on by default, so Cartesia can start a request before the caller finishes and throw the reply away if they keep talking. Discarded requests still use tokens on your provider bill. Turn it off with config.speculative_generation: false.

Limits to plan for

LimitValue
First chunk, per attempt3 seconds
Between chunks6 seconds
Each response attempt60 seconds
Response size256 KiB, uncompressed

Before any text or tool call arrives, Cartesia retries timeouts, dropped connections, DNS failures, 429 and 5xx responses, and streams that end without output. Each endpoint gets up to two attempts and each reply up to four. 400, 401, 403, 404, 413 and 422 responses are not retried, so a wrong key or model ID fails the reply.

A custom LLM has no fallback model unless you set one. fallback_strategy takes up to three managed model IDs. Redirects are not followed.

If your model lives in AWS, the docs cover Amazon Bedrock as a custom LLM, with example model IDs for GPT-5.x, DeepSeek, Kimi, Qwen and others.

What does it cost?

From Cartesia’s pricing page, read on December 3, 2026:

PartPrice
Managed Agents call minutes$0.03 per minute
Cartesia phone number$0.014 per minute. No Cartesia fee on your own Twilio number or SIP trunk, where your carrier bills you
LLMBilled separately. Cartesia doesn’t charge for tokens from your own endpoint

Free includes $1 of agent calls a month. Commercial use needs a paid plan from $5 a month, and overages are off by default, so new calls stop when the agent balance reaches $0.

On a managed model, the model’s tokens are billed at its rate, and the Playground model picker shows an estimated cost per minute.

Where to start

Build the agent on Managed Agents with a managed model first, then point it at your endpoint and compare calls. The AI receptionist and customer support pages have sample calls to try.

FAQs

Which voice agent platform lets me bring my own LLM?

Cartesia Managed Agents is one. Each agent runs on a managed model from OpenAI, Anthropic or Google Gemini, or on your own OpenAI-compatible Chat Completions endpoint via the model ID custom_llm. Your endpoint writes the replies, and Cartesia still runs speech recognition, speech synthesis, turn-taking and tools. You can switch back to a managed model at any time.

Do I pay Cartesia for tokens from my own model?

No. Cartesia does not charge for tokens your custom endpoint generates. You pay $0.03 a minute for the agent, plus $0.014 a minute on a Cartesia phone number, and your model provider bills you for the tokens.

Can I use a model in my own AWS account?

Yes. Cartesia documents Amazon Bedrock as a custom LLM: point the agent at your Region's Bedrock Chat Completions URL with a Bedrock API key and a model ID such as us.openai.gpt-5.4.

Does a custom LLM work with tools?

Yes, if the model supports function calling. Cartesia sends the agent's tools in the Chat Completions function-tool format, your model returns tool calls, and Cartesia runs them and sends back the results.

What happens if my LLM endpoint goes down mid-call?

Cartesia retries timeouts, dropped connections, 429s and 5xx responses before any text or tool call arrives. Custom LLMs have no fallback by default, but you can name up to three managed models to fall back to. If everything fails, that reply stops and the call continues.