๐Ÿค– AI Toolset

LLM API Pricing Comparison (2026)

Last verified 2026-05-23 ยท Prices per 1M tokens (USD) ยท Standard API tier unless noted

Compare input and output API costs for major frontier and budget models. Each row links to the official pricing page used for verification. For subscription-style coding assistants, see the coding plan comparison.

Provider Model Input $/MTok Output $/MTok Context Source
๐Ÿ’ฐ Budget Tier (< $1/MTok input)
OpenAI GPT-5 nano $0.05 $0.4 400K openai.com
OpenAI GPT-4.1 nano $0.1 $0.4 1M openai.com
Google Gemini 2.0 Flash $0.1 $0.4 1M ai.google.dev
Google Gemini 2.5 Flash Lite $0.1 $0.4 1M ai.google.dev
DeepSeek Deepseek V4 Flash $0.14 $0.28 1M api-docs.deepseek.com
OpenAI GPT-4o mini $0.15 $0.6 128K openai.com
OpenAI GPT-5.4 nano $0.2 $1.25 400K openai.com
OpenAI GPT-5 mini $0.25 $2 400K openai.com
Google Gemini 3.1 Flash Lite $0.25 $1.5 1M ai.google.dev
Google Gemini 2.5 Flash $0.3 $2.5 1M ai.google.dev
OpenAI GPT-4.1 mini $0.4 $1.6 1M openai.com
DeepSeek Deepseek V4 Pro $0.43 $0.87 1M api-docs.deepseek.com
OpenAI GPT-5.4 mini $0.75 $4.5 400K openai.com
๐Ÿ“Š Mid Tier ($1โ€“3/MTok input)
Anthropic Claude Haiku 4.5 $1 $5 1M claude.com
OpenAI o4-mini $1.1 $4.4 200K openai.com
OpenAI GPT-5 $1.25 $10 1M openai.com
OpenAI GPT-5.1 $1.25 $10 1M openai.com
Google Gemini 2.5 Pro $1.25 $10 1M ai.google.dev
Google Gemini 3.5 Flash $1.5 $9 1M ai.google.dev
OpenAI GPT-5.2 $1.75 $14 1M openai.com
OpenAI GPT-4.1 $2 $8 1M openai.com
OpenAI o3 $2 $8 200K openai.com
OpenAI GPT-4o $2.5 $10 128K openai.com
OpenAI GPT-5.4 $2.5 $15 1M openai.com
โญ Premium Tier ($3+/MTok input)
Anthropic Claude Sonnet 4 $3 $15 1M claude.com
Anthropic Claude Sonnet 4.5 $3 $15 1M claude.com
Anthropic Claude Sonnet 4.6 $3 $15 1M claude.com
Anthropic Claude Opus 4.5 $5 $25 1M claude.com
Anthropic Claude Opus 4.6 $5 $25 1M claude.com
Anthropic Claude Opus 4.7 $5 $25 1M claude.com
OpenAI GPT-5.5 $5 $30 1M openai.com
Anthropic Claude Opus 4 $15 $75 1M claude.com
Anthropic Claude Opus 4.1 $15 $75 1M claude.com
OpenAI GPT-5 pro $15 $120 1M openai.com
OpenAI GPT-5.4 pro $30 $180 1M openai.com
OpenAI GPT-5.5 pro $30 $180 1M openai.com
๐Ÿ”“ Open-Weight (via API hosts; not vendor list price)
Meta Llama 4 Maverick (hosted) $0.05โ€“0.90 $0.05โ€“0.90 1M groq.com ยท docs.fireworks.ai
DeepSeek DeepSeek R1 (hosted) See official pricing See official pricing 128K api-docs.deepseek.com
Alibaba Qwen3 Max (DashScope) See official pricing See official pricing 128K help.aliyun.com

* Range rows: price depends on hosting provider or SKU; see linked official pages. OpenAI rows use Standard tier unless noted.

๐Ÿ“Š Output Cost Visual Comparison ($/MTok)

Deepseek V4 Flash
$0.28
GPT-5 nano
$0.4
GPT-4.1 nano
$0.4
Gemini 2.0 Flash
$0.4
Gemini 2.5 Flash Lite
$0.4
GPT-4o mini
$0.6
Deepseek V4 Pro
$0.87
GPT-5.4 nano
$1.25
Gemini 3.1 Flash Lite
$1.5
GPT-4.1 mini
$1.6
GPT-5 mini
$2
Gemini 2.5 Flash
$2.5
o4-mini
$4.4
GPT-5.4 mini
$4.5
Claude Haiku 4.5
$5
GPT-4.1
$8
o3
$8
Gemini 3.5 Flash
$9
GPT-5
$10
GPT-5.1
$10
Gemini 2.5 Pro
$10
GPT-4o
$10
GPT-5.2
$14
GPT-5.4
$15
Claude Sonnet 4
$15
Claude Sonnet 4.5
$15
Claude Sonnet 4.6
$15
Claude Opus 4.5
$25
Claude Opus 4.6
$25
Claude Opus 4.7
$25
GPT-5.5
$30
Claude Opus 4
$75
Claude Opus 4.1
$75
GPT-5 pro
$120
GPT-5.4 pro
$180
GPT-5.5 pro
$180

๐Ÿ’ก Key Insights

Output often costs more than input

Most providers charge higher $/MTok for output than input. Shorter prompts and concise output formats reduce monthly spend.

Budget models cover many workloads

Flash / mini / Haiku-class models are sufficient for many coding and content tasks; reserve Opus / GPT-5.4 pro for the hardest reasoning.

Open-weight hosting varies

Llama and similar models are priced by the inference host (Groq, Fireworks, etc.), not a single vendor list priceโ€”always check your provider's page.

Promotions change quickly

DeepSeek and others run time-limited discounts. Re-check official pages before locking budgets; this table shows last_verified date in the header.

๐Ÿงฎ Quick Cost Estimator

Estimated Monthly Cost

โ€”

๐Ÿ“‹ Official Pricing Pages

  1. OpenAI API Pricing โ€” openai.com
  2. Anthropic API Pricing โ€” claude.com
  3. Google Gemini API Pricing โ€” ai.google.dev
  4. DeepSeek API Pricing โ€” api-docs.deepseek.com
  5. Groq Pricing โ€” groq.com
  6. Fireworks AI Serverless Pricing โ€” docs.fireworks.ai
  7. Alibaba Model Studio (Qwen) Pricing โ€” help.aliyun.com

Prices reflect official list rates as of last verified date above. Providers may change pricing without notice. Always confirm on the linked official pages before budgeting.

More Comparisons

Keep exploring