Inference Providers for Coding Agents With Low TTFT (2026)
The short answer
For a coding agent, pick the provider that keeps your long context cached, then the fastest one that serves a model good enough for your repository. Raw output speed matters for long diffs, but time to first token (TTFT) on turn 20 of an agent loop is dominated by prefill of a 50K–150K-token prompt. As of November 23, 2026:
| Provider | Coding-capable models (shared tier) | Speed | Price per 1M tokens (in / out) | Context limit | Pick it for |
|---|---|---|---|---|---|
| Cerebras | gpt-oss-120b · Qwen 3.8 27B | ~3,000 · ~1,850 tok/s | $0.35 / $0.75 · $0.99 / $1.49 | 131K paid (65K free) | Fastest edits on a mid-size model |
| Groq | gpt-oss-120b · Qwen 3.8 27B (preview) | ~500 · ~450 tok/s | $0.15 / $0.60 · $0.80 / $4.00 | 131K | Cheap fast tier for sub-agents |
| Fireworks (Fast mode) | GLM 5.3 Fast · Kimi K3 Fast | 100+ tok/s target | $2.10 / $6.60 · $4.50 / $22.50 | Model limit | Frontier-size open models, cache affinity |
| Baseten (Fast) | GLM-5.3 Fast · DeepSeek V4.1 Flash Fast | not published | $2.10 / $6.60 · $0.60 / $2.40 | Model limit | Cheap fast DeepSeek, cached input $0.014 |
| Inception (Mercury 3) | Mercury 3 (diffusion LLM) | sub-300 ms TTFT (vendor) | $0.10 / $0.35 launch (list $0.20 / $0.70) | 1M | Autocomplete and quick edit loops |
Speeds are each vendor’s published figures. This page is the coding-agent spoke of our low latency inference providers hub.
What actually sets TTFT in an agent loop
- Prefill of the resent context. Every turn sends the system prompt, tool schemas, files read so far and prior tool output. Without a cache hit, the provider reprocesses all of it.
- Cache hits. Fireworks says session affinity keeps each agent on the server that already holds its context and that long runs reach cache hit rates up to 99.6%; cached input bills at half price or less with no write fee. Baseten lists cached input for DeepSeek V4.1 Flash Fast at $0.014 per million.
- Hidden reasoning. A reasoning model can think for thousands of tokens before the first visible token. Cerebras sets Qwen 3.8 27B reasoning to
highby default;reasoning_effort: noneturns it off. gpt-oss-120b defaults tomedium. - Queueing. Shared tiers slow down at peak. Fireworks’ Priority tier reduces that risk; it does not make generation faster.
Picks by agent role
Main coding agent on an open model: Fireworks or Baseten Fast with GLM 5.3. GLM 5.3 Fast costs $2.10 input and $6.60 output on both (Fireworks lists cached input at $0.39, Baseten at $0.21). Fireworks describes Fast mode as 100+ tokens per second for interactive apps, switchable per request on the same endpoint. For a cheaper main agent, DeepSeek V4.1 Flash Fast on Baseten costs $0.60/$2.40.
Sub-agents, search and file triage: Groq or Cerebras on gpt-oss-120b. Tasks such as “find every caller of this function” or “summarise this log” need speed more than depth. Groq at $0.15/$0.60 is the cheapest fast option; Cerebras costs more but generates about six times faster, and its Developer tier allows 1,000 requests and 1.5M total tokens per minute.
Long-context agents: avoid the 131K caps. If your agent keeps a large repository map in context, Cerebras and Groq’s 131,072-token windows force aggressive compaction. Choose a host with a 1M-token model, or keep the main agent on a closed model and push only short sub-tasks to the fast providers.
Autocomplete and inline edits: Mercury 3. Inception’s diffusion model generates tokens in parallel; the vendor claims sub-300 ms time to first token. Mercury 3 is $0.10/$0.35 at its 50%-off launch price with no stated end date, so budget at the $0.20/$0.70 list rate.
A closed model: Claude Haiku 5.5. At $0.10/$0.50 up to 100K-token prompts with $0.01 cache reads, it is quick on cached turns; above 100K tokens the whole request moves to $0.50/$2.50. See current API prices.
How to test before you commit
Replay one real agent session against each provider and log TTFT and tokens per second per turn, not per request average. Turn 1 (cold) and turn 20 (warm cache) tell different stories. Our guide to measuring time to first token has the script; for app-side fixes see how to maximize prompt cache hit rate for AI agents and how to reduce LLM latency.
Last verified: November 23, 2026.