Use context capacity to shortlist models for long documents and conversations. Evaluate whether the application supplies the right material and whether the result remains grounded in that evidence.
What matters for longest-context ai apis
Begin with the assembled request, including instructions, history, tools and retrieved material. Decide what the output must contain and inspect the model’s applicable output allowance. A catalog capacity is not an instruction to fill the request without a plan for the result.
Build a document fixture with relevant evidence in different sections, an absent fact and a contradiction. Require the response to identify its support or communicate the gap. This tests how the model uses the material rather than merely whether the API accepts a large input.
Claude publishes context-handling guidance. Official documentation. Gemini documents long-input workflows. Official documentation.
Compare a full-document request with a focused-evidence workflow when both can meet the task. Include retrieval, section processing and synthesis stages in the second option. Neither more context nor more preprocessing is universally the better design; accepted results and complete workload cost should decide.
Ranked candidates
Only active candidates with documented values for this ranking are included. Prices retain the tier and deployment condition shown below.
| Model | Provider | Input USD / 1M | Output USD / 1M | Cached input USD / 1M | Context tokens | Price condition | Cost |
|---|---|---|---|---|---|---|---|
| SpaceXAI: Grok 4.20 | OpenRouter | $1.25 | $2.5 | $0.2 | 2,000,000 | Standard | Estimate cost |
| SpaceXAI: Grok 4.20 Multi-Agent | OpenRouter | $1.25 | $2.5 | $0.2 | 2,000,000 | Standard | Estimate cost |
| DeepSeek: DeepSeek V4 Flash 0731 | OpenRouter | $0.04 | $0.08 | $0.008 | 1,310,720 | Standard | Estimate cost |
| DeepSeek: DeepSeek V4 Flash Latest | OpenRouter | $0.03 | $0.07 | $0.003 | 1,310,720 | Standard | Estimate cost |
| Meta: Llama 4 Scout | OpenRouter | $0.1 | $0.3 | Not documented | 1,310,720 | Standard | Estimate cost |
| Z.ai: GLM 5.3 | OpenRouter | $1.4 | $4.4 | $0.26 | 1,310,720 | Standard | Estimate cost |
| Z.ai: GLM 5.3 Flash | OpenRouter | $0.075 | $0.25 | $0.015 | 1,310,720 | Standard | Estimate cost |
| Z.ai: GLM Flash Latest | OpenRouter | $0.075 | $0.25 | $0.015 | 1,310,720 | Standard | Estimate cost |
| Z.ai: GLM Latest | OpenRouter | $0.8727 | $3.36 | $0.1639 | 1,310,720 | Standard | Estimate cost |
| OpenAI: GPT Astra Latest | OpenRouter | $10 | $50 | $1 | 1,050,000 | Standard | Estimate cost |
| OpenAI: GPT Luna Latest | OpenRouter | $0.2 | $1.2 | $0.02 | 1,050,000 | Standard | Estimate cost |
| OpenAI: GPT Sol Latest | OpenRouter | $2 | $10 | $0.2 | 1,050,000 | Standard | Estimate cost |
| OpenAI: GPT Terra Latest | OpenRouter | $2 | $12 | $0.2 | 1,050,000 | Standard | Estimate cost |
| OpenAI: GPT-5.4 | OpenRouter | $2.5 | $15 | $0.25 | 1,050,000 | Standard | Estimate cost |
| OpenAI: GPT-5.4 (batch) | OpenRouter | $1.25 | $7.5 | $0.125 | 1,050,000 | Standard | Estimate cost |
| OpenAI: GPT-5.4 Pro | OpenRouter | $30 | $180 | Not documented | 1,050,000 | Standard | Estimate cost |
| OpenAI: GPT-5.4 Pro (batch) | OpenRouter | $15 | $90 | Not documented | 1,050,000 | Standard | Estimate cost |
| OpenAI: GPT-5.5 | OpenRouter | $5 | $30 | $0.5 | 1,050,000 | Standard | Estimate cost |
| OpenAI: GPT-5.5 (batch) | OpenRouter | $2.5 | $15 | $0.25 | 1,050,000 | Standard | Estimate cost |
| OpenAI: GPT-5.5 Pro | OpenRouter | $30 | $180 | Not documented | 1,050,000 | Standard | Estimate cost |
Last verified · Source ↗
Inspect input and cached-input categories with the capacity ranking. A model’s context maximum, output allowance and price conditions are separate facts. Keep unknown cache support visible rather than applying another provider’s discount.
This table compares each provider’s lowest documented baseline input-price model. Baseline prices use standard or short-context conditions and exclude separate free-tier and off-peak rows when paid standard rates exist. The full pricing reference preserves all documented conditions.
| Attribute | Claude Haiku 4.5 | Gemini 2.5 Flash Preview TTS | kimi-k2.6 |
|---|---|---|---|
| Provider | Anthropic | Moonshot | |
| Official identifier | claude-haiku-4-5-20251001 | gemini-2.5-flash-preview-tts | kimi-k2.6 |
| Input USD / 1M | $1 | Free | $0.95 |
| Output USD / 1M | $5 | Free | $4 |
| Cached input USD / 1M | $0.1 | Not documented | $0.16 |
| Context tokens | 200,000 | 8,192 | 262,144 |
| Maximum output tokens | 64,000 | 16,384 | Not documented |
| Modalities | text, image | text | text |
| OpenAI-compatible endpoint | Not documented | Not documented | Yes |
| SDK languages | Python, JavaScript, Go, Java, Ruby, PHP, C# | Python, JavaScript, Go, Java | See official documentation |
| Reference | Claude Haiku 4.5 | Gemini 2.5 Flash Preview TTS | kimi-k2.6 |
Last verified · Source ↗
Our three picks
Find your starting point
Your text and estimates stay in this browser. No API requests are sent to model providers.
Loading verified model records…
The cheapest candidate should be tested on the actual document shape. Balanced can be a candidate whose cost and documented capacity fit the ordinary workload. Strongest requires evidence of useful answers on the relevant task; the longest capacity alone cannot justify that label.
Keep the fixture and output contract fixed across candidates. If one model needs a repair call because it misses evidence, record the additional work. Avoid awarding a win to a shorter response that omits the required facts.
When each pick is wrong
A longest-context pick is wrong when the application sends unnecessary material that obscures the request or adds cost without improving the result. A low-rate candidate is wrong when it cannot preserve the source distinctions needed by the task. A retrieval-based alternative is wrong when the retrieval stage regularly omits relevant evidence.
A model that fits an input is still wrong if the answer cannot be validated. Keep source references or field provenance in the response contract and evaluate a missing-evidence state explicitly.
Read context-window planning, Gemini models and Kimi model guidance before building a long-input workflow.
Estimate cost
Estimate your API costs
Your text and estimates stay in this browser. No API requests are sent to model providers.
Loading verified model records…
Use the cost calculator for full-document and focused-evidence scenarios, including supported cache categories.
Inspect qualifying context-price tiers in the provider table and preserve the actual host and model. Replace rough usage assumptions with observed accepted tasks before scheduling a recurring large-document job.
Last verified · Source ↗
Frequently asked questions
Does the largest window guarantee the best answer?
What belongs in the context estimate?
Should I compare retrieval with full-document input?
Can I assume every repeated document is cached?
How should missing facts be tested?
What should a long-document budget include?
Sources
Last verified · Source ↗