Time to first token (TTFT) is the time from sending a request to a language model until its first output token arrives. It covers queueing, prompt reading and network time. Dograh, the open-source AI voice agent platform, lets you compare models on your own keys, and you can self-host it or run it on Dograh Cloud.
Key Takeaways
- Time to first token stops at the model's first token, not the caller's first word.
- Long prompts and reasoning steps push the first token later on every turn.
- Dograh's Reasoning Delay shows the model's time to first token on each test call.
A fast voice still leaves callers in silence while the language model starts its reply. We define time to first token, place it beside first audio and the whole turn, and cover what slows it and how to measure it, ending with how to compare models in Dograh.
What time to first token measures
Time to first token is the wait between sending a request to a language model and receiving the first token of its answer. NVIDIA's LLM benchmarking metrics define it as the time from query submission to the first received token, if the response is not empty. The clock does not wait for a full word or the end of the reply.
In a voice agent, the request goes out once the speech-to-text has a final transcript and the agent decides the caller has finished. So time to first token starts after the listening side is done, and the voice cannot start until it ends. Every millisecond here is silence on the line.
Some speech vendors use the same name for a different clock. AssemblyAI, for example, uses TTFT for its transcriber, timed from the moment the user stops speaking to the first finalized transcript token. In this post the term means the language model's first token, the way NVIDIA and Artificial Analysis use it. When a vendor quotes a TTFT figure, check which model it is timing.
Where it sits beside first audio and the turn
Time to first token is one link in a chain. After the caller stops, the agent detects the end of the turn and finalizes the transcript, the model returns its first token, and the reply text reaches the voice, which plays the first sound. Our post on speech latency breaks the whole turn down by stage, and time to first audio covers the voice side.
Each of these numbers has its own start and stop point, and mixing them up is a common reason two latency figures disagree.
| Measure | Clock starts | Clock stops |
|---|---|---|
| Time to first token | Request sent to the model | First output token arrives |
| Time to first answer token | Request sent to the model | First token of the answer, after any thinking |
| Inter-token latency | One output token | The next token, averaged |
| End-to-end time | Request sent to the model | Last output token |
| Time to first audio | Reply text ready | Caller hears the first sound |
| Turn gap | Caller's last word | Agent's first sound |
NVIDIA ties the model's numbers together with a simple formula. End-to-end time equals time to first token plus the generation time, and inter-token latency is that generation time divided by the output tokens after the first. A voice agent streams, so the voice can start long before the last token. That is why the first token matters more for the caller than the total.
What fills the wait before the first token
NVIDIA lists what time to first token generally includes, namely request queuing time, prefill time and network latency. Queueing is the wait for a slot on a busy server, and it grows at peak hours on shared endpoints. Network time is the round trip between your agent's server and the model's region.
Prefill is the part teams control most. The model reads the whole input before it writes anything, and NVIDIA notes that longer prompts increase time to first token because attention runs over the full input. In a voice agent the input is much more than the caller's last sentence. It holds the system prompt, every tool definition and the conversation so far, so the input on turn twelve is far longer than on turn two.
Reasoning models add another wait. Artificial Analysis's benchmarking method stops its time to first token at the first reasoning token, so it also reports a time to first answer token that includes the thinking. A caller hears that thinking as silence. Our ranking of LLMs for voice agents by latency compares models on both measures, so this post leaves the model names there.
Open Source Alternative to Vapi / Retell
Self-hosted voice agent platform — no per-minute fees
dograh-hq/dograh
Star on GitHub
What one measured voice stack shows
Published per-stage numbers from real voice agents are rare. Diego Valle Ortiz posted a voice agent latency playbook on Hugging Face in March 2026, tracing Ministral 3B on Ollama with Deepgram Nova-3, Pocket TTS and LiveKit Agents over 36 turns. On the 23 simple turns, the model's time to first token was 566 ms at the median and 2,246 ms at the 95th percentile, while the whole turn felt like 1,392 ms at the median.
The tail is the lesson. The 95th percentile was about four times the median, so on roughly one turn in twenty the caller waited more than two seconds for the model alone. A single test call, or an average across calls, would have hidden that. The sample is small and the model is a small local one, so read it as the shape of the problem rather than a benchmark.
Why the first token is not the finish line
Telnyx, which sells voice AI infrastructure, makes a fair counterpoint in its guide to evaluating voice AI. It argues that the number that matters is the time to the first usable chunk, a short phrase that can safely go to the voice. Telnyx sets a target of 300 to 400 ms for the model's first token and flags anything above 800 ms.
The point holds because a voice needs words. The first token can be a fragment of a word or the start of a tool call, and Pipecat, the open-source framework under Dograh, holds reply text until a sentence ends before it sends it to the voice by default. So the speed of the tokens after the first, and the length of the reply's first sentence, decide how soon the voice can start.
That points to one simple fix. Prompting the agent to open with a short sentence, such as "Sure, let me check that.", lets the voice begin soon after the first token. Time to first token still sets the floor, since nothing in the reply can move until it arrives.
Join the Dograh Community
Dograh is an OSS alternative to Vapi. Join our Slack community for queries, releases, best practices & community interactions.
How to measure time to first token
Measure on the requests your agent really sends. Start the clock when the request leaves your server and stop it at the first streamed token, not the first word the caller hears. Use your real system prompt and tools, and include turns from late in a long call, since the history makes those inputs larger.
Run the test from the region your agent will run in, at the number of calls you expect at once. Artificial Analysis runs its tests every 6 hours from one Google Cloud region, and it notes that location can favor or hurt some providers. Published boards are a good shortlist, and your own region and load decide the rest.
Report the 50th and 95th percentile across a few dozen turns or more, never one call. For reasoning models, record the first answer token as well, because that is what the caller waits for. Keep the reasoning setting the same across every run you compare.
Ways to shorten the wait
The prompt is the first place to look. Cut instructions the model never uses, and give each step only the tools it needs, since every tool definition is input the model reads before it answers.
Keep the start of the prompt stable so the provider can reuse it. OpenAI's prompt caching guide says caching can reduce the time spent processing input before the response starts, that cache reuse requires the entire rendered prefix to match, and that caching starts at 1,024 tokens for GPT-5.6 and later. It advises putting stable developer instructions first. A caller's name or account number placed near the top of the system prompt breaks that match on every call.

Model and host choice comes next. The same model can answer at very different speeds on different clouds, and a lower reasoning setting trims the thinking time. Distance matters too, so run the agent near the model's region. An open-weight model on the same server removes the network trip altogether, as our guide to building an Ollama voice assistant shows with a local model.
Comparing language models in Dograh
Dograh handles the call flow, tools and telephony, so the language model is the one piece you swap when you chase a faster first token, and you pick it for each agent. Open the agent's Model tab and pick a Preset configuration or switch to Custom. On the Models page, saved model configurations in BYOK mode run each provider on your own key, and Duplicate makes a copy where you change only the language model.
Then run the same scripted Phone Calls on each configuration. Each agent reply in a test call's transcript carries a Reasoning Delay, the model's time to first token for that turn. Its clock stops at the first chunk the model streams back, which can be the start of a tool call rather than a spoken word. Once tracing is set up, View Trace shows the model's first-token time apart from the voice's own timing. Reasoning Delay is only one part of the turn, so never set it against a whole-turn budget such as 800 ms.
The agent's Settings also hold a Prompt caching card. Turning on Optimize prompt caching keeps shared instructions stable across calls, and Dograh manages caching for your provider and model. Save Prompt Settings, then publish so new calls use it. The LLM choices include OpenAI, Groq, OpenRouter, Amazon Bedrock and any OpenAI-compatible endpoint such as Ollama or vLLM. If a slow first token is the worry, an LLM fallback can start a backup model when the main one has not answered within a set time, 1.5 seconds by default.
Glossary
- Time to first token (TTFT)
- The time from sending a request to a language model until its first output token arrives. It includes queueing, prefill and network time.
- Prefill
- The step where a model reads the whole input before writing. Longer system prompts, tool definitions and call history make it slower.
- Time to first answer token
- The wait until the first token of the answer itself, after any reasoning. On a reasoning model it is what the caller actually waits for.
- Inter-token latency (ITL)
- The average gap between output tokens after the first. It decides how fast the rest of a sentence arrives once the reply has started.

