AI API pricing: OpenAI, Claude and Gemini compared

What the main AI model APIs cost per million tokens, side by side, and what your own workload would cost each month. Enter how many tokens a typical request sends and receives and how many requests you make; the table re-sorts from cheapest to most expensive.

Prices in US dollars per 1 million tokens, standard tier, checked against the official pages on 4 December 2026: OpenAI API pricing · Claude API pricing · Gemini API pricing.

ProviderModelInput / 1MOutput / 1MCost per month
OpenAIgpt-5-nano$0.05$0.40$3.00
OpenAIgpt-6-luna$0.10$0.50$4.50
AnthropicClaude Haiku 5.5$0.10$0.50$4.50
OpenAIgpt-4o-mini$0.15$0.60$6.00
OpenAIgpt-5.6-luna$0.20$1.20$10.00
OpenAIgpt-5.4-nano$0.20$1.25$10.25
GoogleGemini 3.1 Flash-Lite$0.25$1.50$12.50
OpenAIgpt-5-mini$0.25$2.00$15.00
OpenAIgpt-4.1-mini$0.40$1.60$16.00
GoogleGemini 3.5 Flash-Lite$0.30$2.50$18.50
GoogleGemini 3 Flash Preview$0.50$3.00$25.00
GoogleGemini 3.8 Flash$0.75$3.75$33.75
GoogleGemini 3.6 Flash$0.75$3.75$33.75
OpenAIgpt-5.4-mini$0.75$4.50$37.50
OpenAIgpt-6.1-terra$1.00$5.00$45.00
AnthropicClaude Haiku 4.5$1.00$5.00$45.00
GoogleGemini 4 Hydrogen$1.50$7.50$67.50
OpenAIgpt-5.1$1.25$10.00$75.00
OpenAIgpt-5$1.25$10.00$75.00
OpenAIgpt-4.1$2.00$8.00$80.00
OpenAIo3$2.00$8.00$80.00
OpenAIgpt-6.2-sol$2.00$10.00$90.00
OpenAIgpt-6.1-sol$2.00$10.00$90.00
OpenAIgpt-6-sol$2.00$10.00$90.00
AnthropicClaude Sonnet 5.5$2.00$10.00$90.00
AnthropicClaude Sonnet 5$2.00$10.00$90.00
OpenAIgpt-5.6-terra$2.00$12.00$100.00
OpenAIgpt-4o$2.50$10.00$100.00
GoogleGemini 3.1 Pro Preview$2.00$12.00$100.00
OpenAIgpt-5.2$1.75$14.00$105.00
OpenAIgpt-5.4$2.50$15.00$125.00
AnthropicClaude Sonnet 4.6$3.00$15.00$135.00
GoogleGemini 4 Neon$3.00$15.00$135.00
AnthropicClaude Opus 5.5$4.00$20.00$180.00
GoogleGemini 4 Carbon$4.00$20.00$180.00
GoogleGemini 4 Argon$4.00$20.00$180.00
AnthropicClaude Opus 5$5.00$25.00$225.00
AnthropicClaude Opus 4.8$5.00$25.00$225.00
AnthropicClaude Opus 4.7$5.00$25.00$225.00
AnthropicClaude Opus 4.6$5.00$25.00$225.00
AnthropicClaude Opus 4.5$5.00$25.00$225.00
OpenAIgpt-5.6-sol$5.00$30.00$250.00
OpenAIgpt-5.5$5.00$30.00$250.00
OpenAIgpt-6.2-astra$8.00$40.00$360.00
AnthropicClaude Fable 5.2$8.00$40.00$360.00
OpenAIgpt-6-astra$10.00$50.00$450.00
AnthropicClaude Fable 5.1$10.00$50.00$450.00
AnthropicClaude Fable 5$10.00$50.00$450.00
OpenAIo3-pro$20.00$80.00$800.00
OpenAIgpt-5-pro$15.00$120.00$900.00
OpenAIgpt-5.2-pro$21.00$168.00$1,260
OpenAIgpt-5.5-pro$30.00$180.00$1,500
OpenAIgpt-5.4-pro$30.00$180.00$1,500

The default example is 2,000 input and 500 output tokens, 10,000 requests a month. Current models only; retired and limited-access models are listed on each provider page. Higher prices for very long prompts (OpenAI over 272K tokens, Claude Haiku 5.5 over 100K, Gemini Pro over 200K) are not applied here; the provider pages list them. Not sure how many tokens your text is? Use the token calculator.

Prices by provider

How AI API pricing works

Tokens. APIs bill by tokens, pieces of text of roughly four characters of English. A request is billed for the tokens you send (input) and the tokens the model writes back (output).

Output costs more. Output tokens cost several times more than input tokens with every provider here, so long answers drive the bill more than long prompts. Reasoning models also bill their thinking as output.

Cached input is cheaper. When the start of a prompt repeats between requests (a long system prompt, a document you ask several questions about), providers charge a fraction of the input price for the repeated part.

Batch is about half price. All three providers run a batch API for work that does not need an immediate answer, priced at about half the standard rate. Provider pages list the exact batch prices.

The same text is not the same number of tokens everywhere. Each provider has its own tokenizer. Anthropic says Claude 4.7 and later produce about 30% more tokens for the same text than earlier Claude models, so compare cost per task, not only price per token.

Questions

Which AI API is the cheapest?

For the default example above the cheapest current models are gpt-5-nano ($3.00 a month), gpt-6-luna ($4.50 a month), Claude Haiku 5.5 ($4.50 a month). The cheapest model is rarely the best value: a cheaper model that needs two attempts costs more than a stronger one that needs one.

How often are these prices updated?

Every day the prices are read again from the three official pricing pages linked above and compared with the previous check. The date above shows the last time they were confirmed.

Are taxes, tool calls and search grounding included?

No. The table covers text input and output tokens only. Web search, code execution, image and audio tokens, data residency surcharges and taxes are billed separately; see the provider pages and the official links.

About BlueWillow

BlueWillow is part of LimeWire. Image generation now runs in LimeWire AI Studio. Is an AI service failing right now? See AI status.