ToolPickSearch

Save money › AI API cost

AI API cost calculator

What will the OpenAI, Claude (Anthropic) and Google Gemini API cost for my usage? Enter monthly input and output tokens (in millions). Every $/MTok comes from the official API pricing page, checked 2026-11-05.

1 MTok = 1 million tokens

Presets

Light chatbot: ~2M input + 0.5M output tokens a month · RAG app: ~10M input + 2M output tokens a month · Heavy agent: ~50M input + 15M output tokens a month

Lowest cost for 10M input + 2M output tokens a month

Anthropic Haiku 5.5: $2/mo

$24 a year, the same as OpenAI GPT-6 Luna. Switch models on a card by changing your token inputs above.

Prices for each model

How we work it out

Every model we priced

Open a provider to see each verified input and output rate.

OpenAI: every model we priced

ModelInput $/MTokOutput $/MTokNotes
GPT-6 Astra$10$50Flagship GPT-6 model
GPT-6.1 Sol$2$10Balanced GPT-6.1
GPT-6.1 Terra$1$5Lower-cost GPT-6.1
GPT-6 Luna$0.10$0.50Cheapest GPT-6 listed

Standard tier from OpenAI's API pricing docs. Cache writes and Fast/Ultrafast tiers are not used in the monthly estimate. Checked 2026-11-05 on platform.openai.com (opens in a new tab).

Anthropic: every model we priced

ModelInput $/MTokOutput $/MTokNotes
Fable 5.1$10$50Next-gen long-running agents
Opus 5.5$4$20Daily driver for agentic coding
Sonnet 5.5$2$10High-performance coding and agents
Haiku 5.5$0.10$0.50≤100K prompt tokens; >100K is $0.50/$2.50

Claude Platform API standard rates. Prompt caching and batch (50% off) are not applied in the estimate. Checked 2026-11-05 on anthropic.com (opens in a new tab).

Google: every model we priced

ModelInput $/MTokOutput $/MTokNotes
Gemini 4 Argon$2$10Flagship; $2/$10 through Nov 30, 2026, then $4/$20
Gemini 3.1 Pro Preview$2$12Prompts ≤200K tokens; >200K is $4/$18
Gemini 3.8 Flash$0.75$3.75Through Dec 31, 2026; then $1.50/$7.50
Gemini 3.5 Flash-Lite$0.30$2.50High-volume agentic tasks
Gemini 3.1 Flash-Lite$0.25$1.50Text/image/video input rate

Gemini Developer API Paid Tier, Standard. Where the page shows a promo end date, that current promo rate is used. Checked 2026-11-05 on ai.google.dev (opens in a new tab).

Left out

FAQ

What will the OpenAI / Claude / Gemini API cost for my usage?

Multiply your monthly input MTok by each model's input $/MTok, add monthly output MTok × output $/MTok. Example: 10M in + 2M out on Claude Sonnet 5.5 is 10×$2 + 2×$10 = $40/mo. Checked 2026-11-05.

Which API is cheapest right now?

At equal token volume, the lowest Standard rates we verified are OpenAI GPT-6 Luna and Anthropic Haiku 5.5 (≤100K prompts), both $0.10/MTok in and $0.50/MTok out, then Gemini 3.1 Flash-Lite at $0.25/$1.50. Flagship models (GPT-6 Astra, Fable 5.1) are $10/$50. Checked 2026-11-05.

Do these prices include prompt caching or batch discounts?

No. The calculator uses each provider's standard paid input and output token rates only. Anthropic lists prompt-cache read/write and 50% batch; OpenAI lists cache writes and Batch/Fast/Ultrafast; Gemini lists Batch/Flex/Priority. Those can change the bill.

What is an MTok?

One MTok is 1 million tokens. Providers price API use per million input tokens and per million output tokens. A short chat turn is often a few thousand tokens; a RAG pipeline that stuffs big contexts can burn millions of input tokens a month.

Why is openai.com/api/pricing not your OpenAI source?

That URL currently shows ChatGPT Business and Enterprise seat plans, not API token rates. Token rates are on platform.openai.com/docs/pricing, which is what we checked.

Are free tiers included?

Gemini's Free Tier shows free input/output for some Flash models with limits; OpenAI and Anthropic API usage is pay-as-you-go (Claude chat Free is a product plan, not these API rates). The cards show paid Standard rates so you can budget production traffic.

Related: AI coding tool cost calculator · AI usage limits · ChatGPT vs Claude vs Gemini · ChatGPT · Claude · Google Gemini · Save money · How we pick