Task shortlist
Cheapest AI models for RAG
RAG workloads send retrieved chunks on every request, so input cost compounds quickly. The model also needs enough context for several passages and enough instruction-following to cite or ignore them correctly. This shortlist requires tool support and at least 200K context, then ranks by capability per dollar.
- Models in shortlist
- 10
- Lowest task-weighted price
- $0.042
- Lowest input price
- $0.030
- Highest capability
- 36.5
The short answer
The first row is Z.ai GLM 5.3 Flash, at $0.042 per million task-weighted tokens and a value score of 654.3. The strongest model in the filtered list is Anthropic Claude Haiku 5.5 with a capability index of 36.5. Price and capability are not the same thing; use the table to choose a shortlist, then test it on your own examples.
Models ranked for this task
Task-weighted price uses 85% input and 15% output. The last column is a fixed reference workload of 1M input plus 250K output tokens per month, shown for comparison across pages.
| Model | Input / 1M | Output / 1M | Context | Capability | Task-weighted price | 1M + 250K monthly |
|---|---|---|---|---|---|---|
| GLM 5.3 FlashZ.ai | $0.036 | $0.082 | 1.0M | 27.8value 654.3 | $0.042 | $0.056 |
| DeepSeek V4.1 Flash 1017DeepSeek | $0.030 | $0.200 | 1.0M | 32.6value 587.4 | $0.056 | $0.080 |
| Ling 3.1 FlashInclusion AI | $0.075 | $0.225 | 1.0M | 29.6value 303.6 | $0.098 | $0.131 |
| Claude Haiku 5.5Anthropic | $0.100 | $0.500 | 1M | 36.5value 228.1 | $0.160 | $0.225 |
| Muse EmberMeta | $0.100 | $0.500 | 1.0M | 36value 225.0 | $0.160 | $0.225 |
| MiMo-V2.6-FlashXiaomi | $0.140 | $0.280 | 1.0M | 26.7value 165.8 | $0.161 | $0.210 |
| Qwen3.8 FlashAlibaba Qwen | $0.150 | $0.470 | 1M | 28.6value 144.4 | $0.198 | $0.268 |
| MiniMax M3.1 FlashMiniMax | $0.150 | $0.600 | 1.0M | 29.1value 133.8 | $0.218 | $0.300 |
| GLM 5.3Z.ai | $0.070 | $1.40 | 1.0M | 31.7value 117.7 | $0.269 | $0.420 |
| Hy4Tencent | $0.417 | $1.25 | 1.0M | 34.6value 63.8 | $0.542 | $0.730 |
What matters for this task
- Retrieved chunks are resent on every turn unless you cache or trim them.
- A larger context window is not a substitute for good retrieval.
- Tool support helps with citation lookup, search and structured answers.
- Output price still matters for long answers and multi-document summaries.
What the table does not tell you
- RAG quality depends more on retrieval and chunking than on the model alone.
- Long-context models can lose details in the middle of a large prompt.
- Test citation accuracy and refusal behavior before using a model in production.
Other task shortlists
Questions
What is the cheapest model for RAG?
The table ranks models by capability per dollar among those with at least 200K context and tool support. The cheapest acceptable option depends on how many retrieved tokens you send per request.
Do I need a 1M context model for RAG?
Usually not. A smaller number of well-ranked chunks often beats a giant prompt. Larger context is useful for whole-document questions, but it costs more and can reduce recall.
How do I estimate the monthly bill?
Multiply the average retrieved tokens plus prompt tokens by requests per month, then add output tokens. The AI cost calculator on this site can do the arithmetic for a specific model.
Prices come from the public model feed and are shown as a recorded snapshot. Confirm the current rate and usage terms on the vendor page before committing to a large workload.