Updated 2026-07-28

Cheapest AI APIs in 2026: Complete Price Ranking

Complete Ranking by Input Cost

Every major AI API ranked from cheapest to most expensive input price. Input cost matters most for tasks that process large documents, long conversations, or image analysis.

#ModelProviderInput / 1M tokensTier
πŸ‘‘ 1Gemini 3 FlashGoogle$0.50budget
2GPT-5.6 LunaOpenAI$1budget
3Claude Haiku 4.5Anthropic$1budget
4Gemini 3.5 FlashGoogle$1.50balanced
5Claude Sonnet 5Anthropic$2balanced
6Gemini 3.1 ProGoogle$2balanced
7GPT-5.6 TerraOpenAI$2.50flagship
8GPT-5.6 SolOpenAI$5frontier
9GPT-5.5OpenAI$5flagship
10Claude Opus 4.8Anthropic$5flagship
11Claude Fable 5Anthropic$10frontier
12GPT-5.5 ProOpenAI$30frontier

Complete Ranking by Output Cost

Output cost dominates when the model generates text — writing code, drafting emails, or producing summaries. Here are all models ranked by output price.

#ModelProviderOutput / 1M tokensTier
πŸ‘‘ 1Gemini 3 FlashGoogle$3budget
2Claude Haiku 4.5Anthropic$5budget
3GPT-5.6 LunaOpenAI$6budget
4Gemini 3.5 FlashGoogle$9balanced
5Claude Sonnet 5Anthropic$10balanced
6Gemini 3.1 ProGoogle$12balanced
7GPT-5.6 TerraOpenAI$15flagship
8Claude Opus 4.8Anthropic$25flagship
9GPT-5.6 SolOpenAI$30frontier
10GPT-5.5OpenAI$30flagship
11Claude Fable 5Anthropic$50frontier
12GPT-5.5 ProOpenAI$180frontier

Cost Per Word

One million tokens is roughly 750,000 English words. The table below shows how much each model charges per 1,000 words of input and output — a more intuitive unit for writers, researchers, and content teams.

ModelInput / 1K wordsOutput / 1K words
Gemini 3 Flash$0.0007$0.0040
GPT-5.6 Luna$0.0013$0.0080
Claude Haiku 4.5$0.0013$0.0067
Gemini 3.5 Flash$0.0020$0.0120
Claude Sonnet 5$0.0027$0.0133
Gemini 3.1 Pro$0.0027$0.0160
GPT-5.6 Terra$0.0033$0.0200
GPT-5.6 Sol$0.0067$0.0400
GPT-5.5$0.0067$0.0400
Claude Opus 4.8$0.0067$0.0333
Claude Fable 5$0.0133$0.0667
GPT-5.5 Pro$0.0400$0.2400

1,000 words ≈ 1,333 tokens. Costs shown are for standard-context pricing.

Cost Per Page

A typical page of text is around 500 words, or roughly 667 tokens. This table shows what it costs to process or generate a single page with each model.

ModelInput / pageOutput / page
Gemini 3 Flash$0.0003$0.0020
GPT-5.6 Luna$0.0007$0.0040
Claude Haiku 4.5$0.0007$0.0033
Gemini 3.5 Flash$0.0010$0.0060
Claude Sonnet 5$0.0013$0.0067
Gemini 3.1 Pro$0.0013$0.0080
GPT-5.6 Terra$0.0017$0.0100
GPT-5.6 Sol$0.0033$0.0200
GPT-5.5$0.0033$0.0200
Claude Opus 4.8$0.0033$0.0167
Claude Fable 5$0.0067$0.0333
GPT-5.5 Pro$0.0200$0.1201

Based on 667 tokens per page (500 words at ~1.33 tokens/word).

Cost Per Image Analysis

Analyzing a single image with a vision-capable model uses roughly1,000 input tokens. Here is what each model charges to process one image.

Based on ~1,000 tokens per image. Actual token count varies by image resolution and detail level.

Best Models for Budget-Conscious Developers

Not sure where to start? Here are three picks for different needs, each showing what $10 of output buys you.

Best Overall Budget Pick

Gemini 3 Flash

$0.50 in / $3 out

$10 of output buys you:

  • 2,500,000 words
  • 4,998 pages of text
  • 333,333 lines of code
  • 27.8 novels

Best Balance of Price and Quality

Gemini 3.5 Flash

$1.50 in / $9 out

$10 of output buys you:

  • 833,333 words
  • 1,666 pages of text
  • 111,111 lines of code
  • 9.3 novels

Best Value Frontier Model

GPT-5.6 Sol

$5 in / $30 out

$10 of output buys you:

  • 250,000 words
  • 500 pages of text
  • 33,333 lines of code
  • 2.8 novels

How Much Can You Save?

The spread between the most and least expensive models is enormous. Switching from GPT-5.5 Pro to Gemini 3 Flash saves you:

98.3% on input · 98.3% on output

Processing 1 million tokens of input costs $30 on GPT-5.5 Pro but only $0.50 on Gemini 3 Flash.

For output, that same million tokens costs $180 vs. $3 — a 60x difference.

Of course, cheaper models aren't always a drop-in replacement. But for routine tasks like classification, summarization, and data extraction, budget models often perform just as well.

See exactly what your budget buys.

Try our AI token calculator — pick a model, set a dollar amount, and see how many words, pages, or images you get.