APIFleet Sign in

What is an AI voice agent? How it works and what it costs

What is an AI voice agent? It is software that holds a live spoken conversation on a call: it listens, decides with a language model that can call tools, and answers in a synthetic voice, handing the caller to a person when needed. APIFleet configures that loop through one API.

APIFleet team · · 12 min read

What is an AI voice agent, and what makes it an agent?

An AI voice agent is software that takes a spoken part in a phone or browser call. It hears the caller, uses a language model to decide what to say or do next, and replies in a synthetic voice.

The word agent matters because the model can act, not only talk. It can call a tool, such as a lookup in your own system, and say the result in its next sentence.

The word voice matters too, because speech brings timing problems that text does not. A caller can interrupt, pause in the middle of a number or go quiet, so the agent needs rules for when a turn is over.

You will also see the same idea called a voice AI agent, an AI phone agent or a voice bot. Voice AI is the underlying technology: speech recognition, language models and speech synthesis. Conversational AI voice agents, the kind this guide describes, are assistants built on that technology with instructions, a voice, tools and usually a phone number.

How does an AI voice agent work on a call?

It runs one loop for the whole call: connect, listen, take turns, decide, act, speak, then finish or hand over. The table follows a call through those stages and names the APIFleet setting behind each one.

Taking turns is the least obvious stage. Turn detection decides when the caller has finished, and the options are semantic_vad (the default for new assistants), server_vad and, on OpenAI only, none; Gemini Live requires automatic turn detection.

The turn_eagerness setting, set to auto, low, medium or high, tunes how quickly the agent decides the caller is done. The wait_for_user tool is always available: when a turn holds only silence, background noise or no intelligible request, the assistant calls this no-op and waits without speaking.

One call, stage by stage, and the APIFleet setting behind each stage
StageWhat happensWhat you set in APIFleet
ConnectThe caller dials a number at your carrier, and the carrier routes the call and its audio to APIFleetPUT /numbers/{number} binds an existing carrier number to one assistant; the carrier voice webhook is set up separately
ListenCaller audio becomes meaning, either inside one speech-to-speech model or through a separate transcriberpipeline_mode: realtime or cascading; stt_provider for cascading
Take turnsThe system decides when the caller has finished and handles interruptionsturn_detection and turn_eagerness
DecideA language model reads your instructions, your knowledge documents and the conversation, then chooses what to say or which tool to callinstructions, first_message, model (llm_model on a cascading assistant) and knowledge documents
ActThe model calls your HTTPS endpoint and receives the resultPOST /tools, attached with PUT /assistants/{id}/tools
SpeakA synthetic voice says the reply to the callervoice for realtime; tts_provider and tts_voice for cascading
Finish or hand overThe agent ends the call, or moves it to a personend_call, on by default; transfer_phone_numbers adds transfer_call
RecordAPIFleet stores the transcript, tool events and costs, and sends signed events to your backendGET /calls; POST /webhooks with call.started and call.ended

Speech-to-speech or cascading: which architecture?

Use realtime, the default, unless you need a particular voice or provider control; then use cascading. In realtime mode one speech-to-speech model, from OpenAI or Gemini, takes the caller's audio and produces the reply audio over a single connection.

OpenAI's Realtime guide describes such a model as working directly with audio, keeping conversation state and calling tools. Google's Live API overview lists barge-in and tool use among the features of Gemini Live.

Cascading splits the job into three legs: a transcriber turns speech into text, a language model writes the reply, and a text-to-speech voice says it. The APIFleet docs give the reason to cascade as voice coverage and deterministic provider controls, for example an explicitly regional voice instead of an accent the model is only prompted to use.

The same docs call per-minute cost roughly comparable, with text-to-speech, billed by characters or tokens, as the expensive leg. They call cascading latency somewhat higher, because each turn pays for end-of-speech detection plus a model round trip before speech begins.

A cascading assistant sets each leg in the create request, for example {"pipeline_mode": "cascading", "stt_provider": "deepgram", "stt_model": "nova-3", "llm_model": "gpt-4.1-mini", "tts_provider": "soniox", "tts_voice": "Adrian"}.

Tools, knowledge, webhooks, recordings, transcripts and post-call analytics behave the same in both modes. The speech-to-speech data post linked below measures latency and cost on the realtime side.

Realtime and cascading assistants compared on what you configure
AspectRealtime (the default)Cascading
What runsOne speech-to-speech model over one connectionA transcriber, a language model and a text-to-speech voice, chosen separately
Set withrealtime_provider (openai or gemini), model, voicestt_provider, stt_model, llm_model, tts_provider, tts_voice
Defaultsgpt-realtime-2.1 with the voice marin on OpenAI; gemini-3.8-live with the voice Aoede on GeminiFields you leave empty use the server defaults
ProvidersOpenAI Realtime and Gemini LiveTranscription from Deepgram or Gemini; voice from Azure, Polly, ElevenLabs, Cartesia, Telnyx, Soniox, Deepgram, Gemini or self-hosted Piper
Reason to choose itThe simpler default, with fewer parts to configureVoice coverage and deterministic provider controls, as the docs put it
Cost lines in the call logcost_openai is the model legcost_stt and cost_tts appear beside cost_openai
LatencyNo separate transcription stepSomewhat higher, according to the docs

How is an AI voice agent different from an IVR, a chatbot or a voice assistant?

An IVR is a phone menu: it plays prompts and routes the caller by keypad digits or a short list of spoken options. An AI voice agent also answers the phone, but a language model chooses each next step instead of a menu tree drawn in advance.

A chatbot is the text version of the same idea, and a voice assistant usually handles one spoken request at a time. The table compares all four on the points that change how you build and run them.

An AI voice agent can still take keypad input. On Telnyx calls a pressed key reaches the model as a text turn such as [Caller pressed keypad: 1], so a prompt like "press 1 for sales" works when the instructions tell the model to treat keypad input as a choice.

AI voice agent vs IVR vs chatbot vs voice assistant, on six points
PointIVRChatbotVoice assistantAI voice agent
InputKeypad digits or a few fixed spoken optionsTyped textSpoken requests, usually one at a timeFree speech on a live call, interruptions included
FlowA menu tree drawn in advanceA script or a text modelOne request, one replyAn open conversation guided by instructions; the model picks the next step
ActionsRoutes the call or plays a recordingCalls the systems its builder connectedRuns device or app functionsCalls your HTTP tools during the call and speaks the result
Changing itRedraw the tree and re-record promptsEdit the script or the promptUsually set by the maker of the productEdit instructions, tools and knowledge, then re-run your tests
Typical failureNo branch fits what the caller wantsA wrong or vague answer in text that can be rereadA misheard commandA misheard or wrong answer said aloud, so it needs tests, call logs and a human transfer
Choose it whenA few fixed paths that a keypad menu coversThe person is already on a page or in an app and can typeThe task is one command on a device or in an appCallers describe open-ended needs, or the answer needs a lookup or a short conversation

What can an AI voice agent do during a call?

A bare assistant can talk, wait quietly and end the call. Knowledge documents, HTTP tools and a transfer list are what let it do real work, and each one is optional.

A tool call is a round trip. The model asks, APIFleet sends your endpoint a signed request, and your answer comes back as the next thing the model can say.

Keep tool answers short and speakable, and treat a timed-out write as an unknown result rather than a failure. The voice agent tools checklist linked below covers success and failure responses in detail.

Handing the call to a person is listed for Telnyx and Twilio calls only, and it is a direct transfer, not a warm one. The tool reports success when the transfer command is accepted, which is not the same as someone picking up, so rehearse the unanswered case before you rely on it.

What an AI voice agent can do on an APIFleet call, and how you add it
CapabilityHow you add itWhat to know
Answer from your own textPOST /knowledge, then PUT /assistants/{id}/knowledgePlain-text documents go into the prompt at the start of every call, with no embeddings; the docs cap them at 50 KB each and 200 KB per call, and excess is truncated
Look up or change dataPOST /tools, then PUT /assistants/{id}/toolsA public HTTPS endpoint with JSON Schema parameters and a timeout from 500 to 30000 ms; the response goes back to the model
Stay quiet on noiseAlways available: wait_for_userA turn that holds only silence or noise gets no spoken reply
End the callOn by default: end_callSwitch it off with end_call_enabled set to false
Hand the call to a persontransfer_phone_numbers, a list of E.164 numbers, adds transfer_callListed for Telnyx and Twilio calls only; the model can pick only a saved number and is told to announce the transfer first

How are AI voice agents built?

You configure an assistant, attach tools and knowledge, bind a phone number, test it and watch the calls. With APIFleet that is five API steps, and most have a matching tool on the MCP server at https://apifleet.dev/mcp, so a coding agent can do the same work.

The REST base is https://apifleet.dev with a workspace key sent as a Bearer token. Saving an assistant places no call and binding a number buys none, but browser tests, simulations and real calls use paid provider time.

New workspace access is currently limited, so read the API reference and the pricing page linked below before you plan a launch. The customer service build guide shows the same path for one use case, and the testing guide explains how to design the scenarios.

  1. Create the assistant. POST /assistants with a body such as {"name": "Front desk", "instructions": "Answer questions about opening hours and bookings.", "first_message": "Thanks for calling, how can I help?", "pipeline_mode": "realtime"}, and add a voice or speech providers if you do not want the defaults.
  2. Attach what it needs. POST /tools for each system it must reach and PUT /assistants/{id}/tools to attach them, then POST /knowledge for static answers and PUT /assistants/{id}/knowledge to attach those.
  3. Bind a number. PUT /numbers/{number} with assistant_id and provider, which is telnyx unless you set twilio, voximplant or voipcloud. It binds a number you already own, and you point the carrier's voice webhook at APIFleet separately.
  4. Test before real callers. Use Test in browser in the dashboard, then simulations: a persona is a mock caller, a scenario sets its goal and the pass or fail checks, and a run can use chat mode first and voice mode second.
  5. Watch the calls. Read GET /calls for transcripts, tool events and costs, and register a call.ended webhook with POST /webhooks.

What does an AI voice agent cost per minute?

On APIFleet the platform fee is $0.03 per connected AI minute, billed per second, with no monthly subscription. The fee is connected seconds divided by 60, times $0.03, so a 90-second call carries $0.045 and a 240-second call $0.12. Across 10,000 connected minutes the fee is $300.

That is the platform fee only, not an all-in price. The model, transcription, voice and carrier are billed on top, and usage you pay directly through your own provider credentials is not charged a second time by APIFleet.

You fund the workspace with prepaid top-ups, which are wallet funding and not a recurring subscription. To turn the fee into a budget, put your own provider and carrier rates into the cost calculator, or call the apifleet_estimate_call_cost tool on the MCP server, which does not place a call or spend credits.

The voice agent costs guide linked below explains how to compare quotes, and the pricing page shows the fee beside a worked example.

The parts of an AI voice agent's per-minute cost
PartWho bills itHow it is countedWhere you see it
Platform feeAPIFleet$0.03 per connected AI minute, billed per secondThe pricing page and the cost calculator
ModelThe model provider if you use your own provider credentials; otherwise APIFleet, added on top of the platform feeDepends on the model and your configurationcost_openai in the call log, which the docs describe as the model leg
Transcription and voiceOn a cascading assistant, the speech providers if you use your own provider credentials; otherwise APIFleet, added on top of the platform feeDepends on the providers; text-to-speech is billed by characters or tokens, per the docscost_stt and cost_tts in the call log
CarrierYour carrierDepends on route, destination and accountYour carrier account

Is it safe to use voice AI?

It can be, if you keep the agent's scope narrow, test it before real callers and keep a person to hand over to. A model can mishear a name, misread a number or say something that sounds right and is wrong, and on a call the caller hears it at once.

APIFleet's default prompt tells the assistant to ask one short clarification instead of guessing at unclear speech, and to say so plainly and collect the question when its instructions and knowledge lack the answer. Those are instructions to the model, not guarantees, so check them in your own test calls.

Before real callers, run simulations in chat and voice mode, open a browser test, then call from your own phone. The free configuration checker runs seven explicit checks in your browser before your first test.

Keep a human number in transfer_phone_numbers, give each tool the smallest scope it needs, and read the call logs after launch. As of 24 November 2026 APIFleet has no call queue, hold music or workforce management and does not brief the person who answers, so those stay in your own phone system and process.

Rules on recording calls and on telling callers they are speaking to an AI differ by country and state, so check the rules where you operate. The APIFleet docs also ask you to check your call flow against the recording-consent laws that apply to your callers.

Diagram of one conversation: caller audio, speech to the model, tools and context, then the spoken reply, with platform, provider and carrier usage as separate costs

Continue with a practical next step

Frequently asked questions

What is the meaning of an AI agent?

An AI agent is a language model set up with instructions and tools so it can choose actions toward a goal, not only write text. An AI voice agent is the same idea on a call: it listens, decides, may call a tool, and speaks the result.

How is an AI voice agent different from an IVR system?

An IVR follows a menu tree of keypad or spoken options that you draw in advance. An AI voice agent takes free speech and lets a language model choose the next step, including calling your tools, so it needs tests and a human transfer for the cases it gets wrong.

How is AI used in a voice assistant?

AI does three jobs: speech recognition turns audio into words or meaning, a language model decides the reply or action, and speech synthesis says it. A speech-to-speech model handles audio directly, while a cascading pipeline keeps the three jobs as separate services.

How exactly are AI voice agents built?

You configure an assistant with instructions, a voice or speech providers, tools and knowledge, bind a carrier number to it, test it, and read the call logs. On APIFleet that is POST /assistants, POST /tools, PUT /numbers/{number}, simulations and GET /calls.

Is it safe to use voice AI?

It depends on what the agent can do and how you test it. Models can mishear or invent answers, so limit tool scope, run simulations and a browser test before real callers, keep a human transfer number, and check recording and disclosure rules where you operate.

How much does an AI voice agent cost per minute?

On APIFleet the platform fee is $0.03 per connected AI minute, billed per second, so a 90-second call carries $0.045 and 10,000 minutes carry $300. Model, speech and carrier usage are billed on top, so use the cost calculator with your own rates.

Sources and evidence

Prepared with AI assistance and checked against the linked evidence. Examples are illustrative unless explicitly documented as measured results.

Bring your next conversation.

Explore the API, or sign in to your existing workspace. New workspace access is currently limited; contact us to discuss your project.