AI API Pricing Comparison 2026: Claude, GPT-4, Gemini

Compare Claude API pricing, GPT-4 cost, and Gemini API pricingacross OpenAI, Anthropic, Google, and emerging providers. Find the cheapest AI API for your use case.

๐Ÿ’ฐ AI Cost Calculator

1.00M tokens

1.00M tokens

Quick Presets:

๐Ÿ†

Cheapest Option

Qwen: Qwen3.5-9B

$0.2000

Input: $0.0500 โ€ข Output: $0.1500

RankModelInput CostOutput CostTotal Cost
#1Qwen: Qwen3.5-9B(256K ctx)$0.0500$0.1500$0.2000
#2Qwen: Qwen3.5-Flash(1000K ctx)$0.0700$0.2600$0.3300
#3Mistral: Devstral Small 1.1(131K ctx)$0.1000$0.3000$0.4000
#4DeepSeek: DeepSeek V4 Flash(1000K ctx)$0.1400$0.2800$0.4200
#5Meta: Llama 4 Scout(10000K ctx)$0.1000$0.3200$0.4200
#6OpenAI: GPT-5 Nano(400K ctx)$0.0500$0.4000$0.4500
#7DeepSeek: DeepSeek V3.2(163K ctx)$0.2600$0.3800$0.6400
#8Meta: Llama 4 Maverick(1000K ctx)$0.1900$0.5900$0.7800
#9Qwen: Qwen3 Coder Flash(1000K ctx)$0.2000$0.9700$1.1700
#10Qwen: Qwen3 Coder 480B A35B(262K ctx)$0.2200$1.0000$1.2200
#11Qwen: Qwen3.5 Plus 2026-02-15(1000K ctx)$0.2600$1.5600$1.8200
#12OpenAI: GPT-4.1 Mini(128K ctx)$0.4000$1.6000$2.0000
#13Mistral: Mistral Large 3(262K ctx)$0.5000$1.5000$2.0000
#14Xiaomi: MiMo-V2.5(1000K ctx)$0.4000$2.0000$2.4000
#15Google: Nano Banana (Gemini 2.5 Flash Image)(32K ctx)$0.3000$2.5000$2.8000

Models Compared

34

Cheapest

$0.2000

Most Expensive

$30.0000

Price Range

150.0x

AI Model Pricing Table

Click any column header to sort. Real prices for Claude, GPT-4, Gemini, and more.

Model โ†•Category โ†•Input $/1M โ†‘Output $/1M โ†•Context โ†•Modality
Qwen: Qwen3.5-9BMultimodal$0.0500$0.1500256Ktext+image+video->text
OpenAI: GPT-5 NanoMultimodal$0.0500$0.4000400Ktext+image+file->text
Qwen: Qwen3.5-FlashMultimodal, Social Media, Solo Dev$0.0700$0.26001000Ktext+image+video->text
Mistral: Devstral Small 1.1Code$0.1000$0.3000131Ktext->text
Meta: Llama 4 ScoutMultimodal, Text$0.1000$0.320010000Ktext+image->text
DeepSeek: DeepSeek V4 FlashText, Code$0.1400$0.28001000Ktext->text
Meta: Llama 4 MaverickMultimodal, Text$0.1900$0.59001000Ktext+image->text
Qwen: Qwen3 Coder FlashCode, Solo Dev$0.2000$0.97001000Ktext->text
Qwen: Qwen3 Coder 480B A35BCode$0.2200$1.0000262Ktext->text
Qwen: Qwen3.5 Plus 2026-02-15Text$0.2600$1.56001000Ktext+image+video->text
DeepSeek: DeepSeek V3.2Text, Social Media, Solo Dev$0.2600$0.3800163Ktext->text
Google: Nano Banana (Gemini 2.5 Flash Image)Image Gen, Social Media, Solo Dev$0.3000$2.500032Ktext+image->text+image
Google: Gemini 2.5 FlashMultimodal, Text$0.3000$2.50001000Ktext+image+file+audio+video->text
OpenAI: GPT-4.1 MiniText$0.4000$1.6000128Ktext+image+file->text
Xiaomi: MiMo-V2.5Multimodal, Text$0.4000$2.00001000Ktext+image+audio+video->text
Google: Nano Banana 2 (Gemini 3.1 Flash Image Preview)Image Gen$0.5000$3.000065Ktext+image->text+image
Mistral: Mistral Large 3Multimodal, Text$0.5000$1.5000262Ktext+image->text
Anthropic: Claude Haiku 4.5Social Media$1.0000$5.0000200Ktext+image->text
Xiaomi: MiMo-V2.5 ProCode, Text$1.0000$3.0000256Ktext->text
OpenAI: o4-miniText, Code$1.1000$4.4000200Ktext->text
xAI: Grok 4.3Multimodal, Text$1.2500$2.50001000Ktext+image->text
Google: Gemini 2.5 ProMultimodal, Text$1.2500$10.00001000Ktext+image+file+audio+video->text
Mistral: Mistral Medium 3.5Text$1.5000$7.5000128Ktext->text
DeepSeek: DeepSeek V4 ProText, Code$1.7400$3.48001000Ktext->text
OpenAI: GPT-5.3-CodexCode$1.7500$14.0000400Ktext+image+file->text
xAI: Grok 4.20Text$2.0000$6.00002000Ktext+image->text
Google: Gemini 3.1 Pro PreviewMultimodal, Text$2.0000$12.00001048Ktext+image+file+audio+video->text
OpenAI: GPT-4.1Multimodal, Text$2.0000$8.0000128Ktext+image+file->text
OpenAI: o3Text, Code$2.0000$8.0000200Ktext->text
OpenAI: GPT-5.4Multimodal, Text$2.5000$15.00001050Ktext+image+file->text
OpenAI: GPT-5 Image MiniImage Gen$2.5000$2.0000400Ktext+image+file->text+image
Anthropic: Claude Sonnet 4.6Multimodal, Text, Code, Solo Dev$3.0000$15.00001000Ktext+image->text
Anthropic: Claude Opus 4.7Text, Code$5.0000$25.0000200Ktext+image->text
OpenAI: GPT-5 ImageImage Gen$10.0000$10.0000400Ktext+image+file->text+image

AI Model Comparison by Category: Performance & Cost

Compare all AI models across categories. Find the best price-performance ratio for any use case.

Average Input Cost

$1.34

per 1M tokens

Average Output Cost

$5.01

per 1M tokens

Models in Category

34

available models

Cost Comparison

Comparing input/output costs and context lengths for top 10 models in All category.

AI Models (34)

Qwen3.5-9B

Qwen

Budget
Best for: Vision & Image Gen

Input Cost

$0.050

per 1M tokens

Output Cost

$0.150

per 1M tokens

Total Cost$0.200

per 1M input + 1M output tokens

Context Length0K
Modalitytext+image+video->text
CategoryMultimodal

GPT-5 Nano

OpenAI

Budget
Best for: Chatbots & High Volume

Input Cost

$0.050

per 1M tokens

Output Cost

$0.400

per 1M tokens

Total Cost$0.450

per 1M input + 1M output tokens

Context Length0K
Modalitytext+image+file->text
CategoryMultimodal

Qwen3.5-Flash

Qwen

Budget
Best for: Chatbots & High Volume

Input Cost

$0.070

per 1M tokens

Output Cost

$0.260

per 1M tokens

Total Cost$0.330

per 1M input + 1M output tokens

Context Length1K
Modalitytext+image+video->text
CategoryMultimodal, Social Media, Solo Dev

Devstral Small 1.1

Mistral

Budget
Best for: General Purpose

Input Cost

$0.100

per 1M tokens

Output Cost

$0.300

per 1M tokens

Total Cost$0.400

per 1M input + 1M output tokens

Context Length0K
Modalitytext->text
CategoryCode

Qwen3 Coder Flash

Qwen

Balanced
Best for: Chatbots & High Volume

Input Cost

$0.200

per 1M tokens

Output Cost

$0.970

per 1M tokens

Total Cost$1.17

per 1M input + 1M output tokens

Context Length1K
Modalitytext->text
CategoryCode, Solo Dev

Grok 4.3

xAI

Premium
Best for: Vision & Image Gen

Input Cost

$1.25

per 1M tokens

Output Cost

$2.50

per 1M tokens

Total Cost$3.75

per 1M input + 1M output tokens

Context Length1K
Modalitytext+image->text
CategoryMultimodal, Text

Qwen3 Coder 480B A35B

Qwen

Balanced
Best for: General Purpose

Input Cost

$0.220

per 1M tokens

Output Cost

$1.00

per 1M tokens

Total Cost$1.22

per 1M input + 1M output tokens

Context Length0K
Modalitytext->text
CategoryCode

Qwen3.5 Plus 2026-02-15

Qwen

Balanced
Best for: Vision & Image Gen

Input Cost

$0.260

per 1M tokens

Output Cost

$1.56

per 1M tokens

Total Cost$1.82

per 1M input + 1M output tokens

Context Length1K
Modalitytext+image+video->text
CategoryText

DeepSeek V3.2

DeepSeek

Balanced
Best for: General Purpose

Input Cost

$0.260

per 1M tokens

Output Cost

$0.380

per 1M tokens

Total Cost$0.640

per 1M input + 1M output tokens

Context Length0K
Modalitytext->text
CategoryText, Social Media, Solo Dev

Nano Banana (Gemini 2.5 Flash Image)

Google

Premium
Best for: Chatbots & High Volume

Input Cost

$0.300

per 1M tokens

Output Cost

$2.50

per 1M tokens

Total Cost$2.80

per 1M input + 1M output tokens

Context Length0K
Modalitytext+image->text+image
CategoryImage Gen, Social Media, Solo Dev

Nano Banana 2 (Gemini 3.1 Flash Image Preview)

Google

Premium
Best for: Chatbots & High Volume

Input Cost

$0.500

per 1M tokens

Output Cost

$3.00

per 1M tokens

Total Cost$3.50

per 1M input + 1M output tokens

Context Length0K
Modalitytext+image->text+image
CategoryImage Gen

Claude Haiku 4.5

Anthropic

Premium
Best for: Chatbots & High Volume

Input Cost

$1.00

per 1M tokens

Output Cost

$5.00

per 1M tokens

Total Cost$6.00

per 1M input + 1M output tokens

Context Length0K
Modalitytext+image->text
CategorySocial Media

GPT-5.3-Codex

OpenAI

Premium
Best for: Vision & Image Gen

Input Cost

$1.75

per 1M tokens

Output Cost

$14.00

per 1M tokens

Total Cost$15.75

per 1M input + 1M output tokens

Context Length0K
Modalitytext+image+file->text
CategoryCode

Grok 4.20

xAI

Premium
Best for: Vision & Image Gen

Input Cost

$2.00

per 1M tokens

Output Cost

$6.00

per 1M tokens

Total Cost$8.00

per 1M input + 1M output tokens

Context Length2K
Modalitytext+image->text
CategoryText

Gemini 3.1 Pro Preview

Google

Premium
Best for: Vision & Image Gen

Input Cost

$2.00

per 1M tokens

Output Cost

$12.00

per 1M tokens

Total Cost$14.00

per 1M input + 1M output tokens

Context Length1K
Modalitytext+image+file+audio+video->text
CategoryMultimodal, Text

GPT-5.4

OpenAI

Premium
Best for: Vision & Image Gen

Input Cost

$2.50

per 1M tokens

Output Cost

$15.00

per 1M tokens

Total Cost$17.50

per 1M input + 1M output tokens

Context Length1K
Modalitytext+image+file->text
CategoryMultimodal, Text

GPT-5 Image Mini

OpenAI

Premium
Best for: Vision & Image Gen

Input Cost

$2.50

per 1M tokens

Output Cost

$2.00

per 1M tokens

Total Cost$4.50

per 1M input + 1M output tokens

Context Length0K
Modalitytext+image+file->text+image
CategoryImage Gen

Claude Sonnet 4.6

Anthropic

Premium
Best for: Vision & Image Gen

Input Cost

$3.00

per 1M tokens

Output Cost

$15.00

per 1M tokens

Total Cost$18.00

per 1M input + 1M output tokens

Context Length1K
Modalitytext+image->text
CategoryMultimodal, Text, Code, Solo Dev

Claude Opus 4.7

Anthropic

Premium
Best for: Complex Reasoning

Input Cost

$5.00

per 1M tokens

Output Cost

$25.00

per 1M tokens

Total Cost$30.00

per 1M input + 1M output tokens

Context Length0K
Modalitytext+image->text
CategoryText, Code

GPT-5 Image

OpenAI

Premium
Best for: Vision & Image Gen

Input Cost

$10.00

per 1M tokens

Output Cost

$10.00

per 1M tokens

Total Cost$20.00

per 1M input + 1M output tokens

Context Length0K
Modalitytext+image+file->text+image
CategoryImage Gen

DeepSeek V4 Flash

DeepSeek

Budget
Best for: Chatbots & High Volume

Input Cost

$0.140

per 1M tokens

Output Cost

$0.280

per 1M tokens

Total Cost$0.420

per 1M input + 1M output tokens

Context Length1K
Modalitytext->text
CategoryText, Code

DeepSeek V4 Pro

DeepSeek

Premium
Best for: General Purpose

Input Cost

$1.74

per 1M tokens

Output Cost

$3.48

per 1M tokens

Total Cost$5.22

per 1M input + 1M output tokens

Context Length1K
Modalitytext->text
CategoryText, Code

GPT-4.1

OpenAI

Premium
Best for: Complex Reasoning

Input Cost

$2.00

per 1M tokens

Output Cost

$8.00

per 1M tokens

Total Cost$10.00

per 1M input + 1M output tokens

Context Length0K
Modalitytext+image+file->text
CategoryMultimodal, Text

GPT-4.1 Mini

OpenAI

Balanced
Best for: Complex Reasoning

Input Cost

$0.400

per 1M tokens

Output Cost

$1.60

per 1M tokens

Total Cost$2.00

per 1M input + 1M output tokens

Context Length0K
Modalitytext+image+file->text
CategoryText

o3

OpenAI

Premium
Best for: General Purpose

Input Cost

$2.00

per 1M tokens

Output Cost

$8.00

per 1M tokens

Total Cost$10.00

per 1M input + 1M output tokens

Context Length0K
Modalitytext->text
CategoryText, Code

o4-mini

OpenAI

Premium
Best for: General Purpose

Input Cost

$1.10

per 1M tokens

Output Cost

$4.40

per 1M tokens

Total Cost$5.50

per 1M input + 1M output tokens

Context Length0K
Modalitytext->text
CategoryText, Code

Gemini 2.5 Pro

Google

Premium
Best for: Vision & Image Gen

Input Cost

$1.25

per 1M tokens

Output Cost

$10.00

per 1M tokens

Total Cost$11.25

per 1M input + 1M output tokens

Context Length1K
Modalitytext+image+file+audio+video->text
CategoryMultimodal, Text

Gemini 2.5 Flash

Google

Premium
Best for: Chatbots & High Volume

Input Cost

$0.300

per 1M tokens

Output Cost

$2.50

per 1M tokens

Total Cost$2.80

per 1M input + 1M output tokens

Context Length1K
Modalitytext+image+file+audio+video->text
CategoryMultimodal, Text

Llama 4 Scout

Meta

Budget
Best for: Vision & Image Gen

Input Cost

$0.100

per 1M tokens

Output Cost

$0.320

per 1M tokens

Total Cost$0.420

per 1M input + 1M output tokens

Context Length10K
Modalitytext+image->text
CategoryMultimodal, Text

Llama 4 Maverick

Meta

Balanced
Best for: Vision & Image Gen

Input Cost

$0.190

per 1M tokens

Output Cost

$0.590

per 1M tokens

Total Cost$0.780

per 1M input + 1M output tokens

Context Length1K
Modalitytext+image->text
CategoryMultimodal, Text

Mistral Large 3

Mistral

Balanced
Best for: Vision & Image Gen

Input Cost

$0.500

per 1M tokens

Output Cost

$1.50

per 1M tokens

Total Cost$2.00

per 1M input + 1M output tokens

Context Length0K
Modalitytext+image->text
CategoryMultimodal, Text

Mistral Medium 3.5

Mistral

Premium
Best for: General Purpose

Input Cost

$1.50

per 1M tokens

Output Cost

$7.50

per 1M tokens

Total Cost$9.00

per 1M input + 1M output tokens

Context Length0K
Modalitytext->text
CategoryText

MiMo-V2.5

Xiaomi

Premium
Best for: Vision & Image Gen

Input Cost

$0.400

per 1M tokens

Output Cost

$2.00

per 1M tokens

Total Cost$2.40

per 1M input + 1M output tokens

Context Length1K
Modalitytext+image+audio+video->text
CategoryMultimodal, Text

MiMo-V2.5 Pro

Xiaomi

Premium
Best for: General Purpose

Input Cost

$1.00

per 1M tokens

Output Cost

$3.00

per 1M tokens

Total Cost$4.00

per 1M input + 1M output tokens

Context Length0K
Modalitytext->text
CategoryCode, Text
๐Ÿ’ฌChatbot / Customer Support
Low Cost

Qwen: Qwen3.5-Flash

$0.33/1M

๐Ÿ’ปCode Generation & Review
High Quality

OpenAI: GPT-4.1

$10.00/1M

๐Ÿ“„Document Analysis / RAG
Balanced

No match

โœ๏ธContent Writing / Marketing
Balanced

OpenAI: GPT-4.1 Mini

$2.00/1M

How to Use This Data

  • Input Costs: Compare $/1M input tokens for Claude API pricing, GPT-4 cost, and Gemini pricing.
  • Output Costs: Check completion pricing to find the cheapest AI API for your use case.
  • Context Length: Long contexts help RAG and agents โ€” see Anthropic and Gemini limits.
  • Modality: Text, code, image, and multimodal support for each model.

Prices are per 1M tokens and may vary by region or volume tiers. Last updated automatically from provider documentation.

NordVPN Special Offer - Save up to 74%

Affiliate link ยท We may earn a commission at no extra cost to you