Cheapest AI Models for Agents

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

Agentic workloads invert the RAG pattern: short instructions in, long chains of generated reasoning, tool calls and code out. Output tokens dominate the bill, so this list weights output at 80%.

The ranking

top 20 of 271

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

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

#ModelProviderOutput-Heavy WorkloadsInput /1MOutput /1MContext
1Gemma 2 2BGoogle$0.0200/M$0.0200$0.02008,000
2Mistral NemoMistral$0.0298/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
6Qwen2.5-3B-InstructQwen$0.0500/M$0.0500$0.050032,000
7ABAB 5.5cMiniMax$0.0500/M$0.0500$0.050016,000
8Llama 3.2 3BMeta$0.0600/M$0.0600$0.0600128,000
9Llama 3.2 3B (Groq)Groq$0.0600/M$0.0600$0.0600128,000
10Gemma 2 9B (DI)DeepInfra$0.0600/M$0.0600$0.06008,000
11Mistral 7B (DI)DeepInfra$0.0700/M$0.0700$0.070032,000
12Mistral 7B (Lepton)Lepton AI$0.0700/M$0.0700$0.070032,000
13Llama 3.1 8B (Groq)Groq$0.0740/M$0.0500$0.0800128,000
14Doubao-Lite-128kByteDance$0.0800/M$0.0400$0.0900128,000
15Doubao-Lite-32kByteDance$0.0800/M$0.0400$0.090032,000
16Mistral 7B v0.3Mistral$0.0800/M$0.0800$0.080032,000
17Granite 3.1 2B InstructIBM$0.0860/M$0.0300$0.1000128,000
18Gemma 3 9BGoogle$0.0900/M$0.0900$0.0900128,000
19Gemma 2 9BGoogle$0.0900/M$0.0900$0.09008,000
20Llama 3.1 8BMeta$0.1000/M$0.1000$0.1000128,000

Because providers typically charge several times more per output token than per input token, the cheapest agent models can look quite different from the cheapest models overall.

How this list is built

  • Ranked cheapest first by a blended rate weighting input and output at 20/80. Output-heavy workloads such as long-form generation, agentic loops.
  • 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

Why do agents cost more to run?

An agent makes many model calls per task, and each one generates tokens: a plan, a tool call, a reflection on the result, then the next step. Output tokens are the expensive side of almost every price sheet, and an agent loop multiplies them, so a workload that looks affordable per call can become the dominant line item at scale.

Should I use a cheaper model for agent steps?

Often yes. A common pattern is to route planning and final synthesis to a strong model while handling routine intermediate steps (parsing, formatting, simple tool selection) with a cheap one. Since intermediate steps usually make up most of the calls, that mix captures most of the saving without changing the answer quality much.

Related rankings

Price it for your workload

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