Concepts

How it works

Two minutes on how the pieces fit together. Once this clicks, the rest of the docs is easy.


An agent is three things

An agent is your AI caller. It's made of:

  • a prompt — what it should do and say,
  • a model — the brain and voice quality (you pick one from our list),
  • a voice — which voice it speaks in.

That's it. You don't wire up speech-to-text, language models, or text-to-speech — the model handles all of that. You pick a model, pick a voice, write a prompt.


Two ways to run an agent

The agent is the same. Only the audio source changes.

  • Phone calls — we connect the agent to a real phone line. You make outbound calls, or let it answer inbound ones.
  • Voice Socket — you stream audio from your own app over a WebSocket. No phone number.

Saved agent or inline agent

You can run an agent two ways:

  • Saved agent — create it once, get an agt_… id, and reuse it. Best when the same agent handles many calls.
  • Inline agent — send the whole agent config inside the call request. Best when the config changes every call, and you don't want to save anything.

Both produce the exact same call. Use whichever fits. See Saved agents and Inline agents.


The life of a call

  1. You start it — POST /v1/calls with an agent and a number (or someone dials your number for inbound).
  2. It runs — the agent talks, uses tools if you gave it any, and can transfer to a human or hang up.
  3. It ends — we save a record (status, duration, transcript, recording, cost) and send you a call.ended webhook.

You can check a call any time with its sessionId, or hang it up early.


What you pay

You pay per minute, based on the model the call used. Each model has one flat per-minute price that already includes everything. See live prices in Models & voices.


Next