Cheapest AI Models for RAG

Ranked from provider-published pricing · Prices checked November 11, 2026

Retrieval-augmented generation is input-heavy: you send large retrieved passages and get back a short answer. Ranking on the standard blend understates that, so this list weights input at 80% and output at 20%.

The ranking

top 20 of 271

Ranked byInput-Heavy Workloads. Prices checked November 11, 2026.

Gemma 2 2B from Google leads this ranking at $0.0200/M. That is 97% below the $0.7000/M median across the 271 models that qualify for this list.

#ModelProviderInput-Heavy WorkloadsInput /1MOutput /1MContext
1Gemma 2 2BGoogle$0.0200/M$0.0200$0.02008,000
2Mistral NemoMistral$0.0292/M$0.0290$0.0300128,000
3Qwen2.5-1.5B-InstructQwen$0.0300/M$0.0300$0.030032,000
4Llama 3.2 1BMeta$0.0400/M$0.0400$0.0400128,000
5Phi-3-Mini-4K (NIM)Nvidia$0.0400/M$0.0400$0.04004,000
6Granite 3.1 2B InstructIBM$0.0440/M$0.0300$0.1000128,000
7Doubao-Lite-128kByteDance$0.0500/M$0.0400$0.0900128,000
8Doubao-Lite-32kByteDance$0.0500/M$0.0400$0.090032,000
9Qwen2.5-3B-InstructQwen$0.0500/M$0.0500$0.050032,000
10ABAB 5.5cMiniMax$0.0500/M$0.0500$0.050016,000
11Nova MicroAmazon$0.0560/M$0.0350$0.1400128,000
12Llama 3.1 8B (Groq)Groq$0.0560/M$0.0500$0.0800128,000
13Gemini 1.5 Flash-8BGoogle$0.0600/M$0.0375$0.15001,000,000
14Llama 3.2 3BMeta$0.0600/M$0.0600$0.0600128,000
15Command R7BCohere$0.0600/M$0.0375$0.1500128,000
16Llama 3.2 3B (Groq)Groq$0.0600/M$0.0600$0.0600128,000
17Gemma 2 9B (DI)DeepInfra$0.0600/M$0.0600$0.06008,000
18Phi-4 MiniMicrosoft$0.0640/M$0.0400$0.1600128,000
19Mistral 7B (DI)DeepInfra$0.0700/M$0.0700$0.070032,000
20Mistral 7B (Lepton)Lepton AI$0.0700/M$0.0700$0.070032,000

The ordering changes meaningfully against the headline cheapest list, models with cheap input and expensive output rise here, which is exactly the shape a RAG workload wants.

How this list is built

  • Ranked cheapest first by a blended rate weighting input and output at 80/20. Input-heavy workloads such as long-context RAG or document Q&A.
  • Excludes embed models.
  • Includes models marked available or preview; retired and deprecated SKUs are excluded.
  • Prices are the rates each provider publishes, not estimates. How the blended rate is calculated.

Frequently asked questions

What makes a model cheap for RAG?

A low input price, because RAG sends far more tokens than it receives: retrieved context, system instructions and the question go in, and a short grounded answer comes out. A large context window matters too, since it caps how many retrieved passages you can supply in one request.

Does prompt caching change these rankings?

Yes, often substantially. If your retrieved context repeats across requests, providers offering cached-input pricing can cut the dominant cost of a RAG workload by a large margin. This list ranks on standard published input rates; check the individual model pages for cached-input rates where the provider publishes them.

Related rankings

Price it for your workload

Rankings are recomputed on every deploy from the catalogue. Prices checked November 11, 2026.