• An API key itself costs nothing — on every major provider you pay per token you actually send and receive, not for the key.
  • List prices are quoted per million tokens (MTok). Output tokens usually cost 3–5× input tokens, and cache reads are the cheapest way to re-send a long prompt.
  • CodeGateway bills the provider list price times a flat markup (currently 1.07×). No subscription or monthly minimum; top up from $5, and your balance never expires.

Claude vs GPT vs Gemini: API price per million tokens

Live rates for every model CodeGateway proxies. Input, output, cache write and cache read, in USD per million tokens.

ModelInput /MTokOutput /MTokCache Write /MTokCache Read /MTokUnit
claude-sonnet-4-5Anthropic
$3.2100$16.0500$4.0125$0.3210/MTok
claude-sonnet-4-5-20250929Anthropic
$3.2100$16.0500$4.0125$0.3210/MTok
claude-haiku-4-5Anthropic
$1.0700$5.3500$1.3375$0.1070/MTok
claude-haiku-4-5-20251001Anthropic
$1.0700$5.3500$1.3375$0.1070/MTok
claude-opus-4-5Anthropic
$5.3500$26.7500$6.6875$0.5350/MTok
claude-sonnet-4-6Anthropic
$3.2100$16.0500$4.0125$0.3210/MTok
claude-opus-4-6Anthropic
$5.3500$26.7500$6.6875$0.5350/MTok
claude-opus-4-7Anthropic
$5.3500$26.7500$6.6875$0.5350/MTok
claude-opus-4-8Anthropic
$5.3500$26.7500$6.6875$0.5350/MTok
claude-fable-5Anthropic
$10.7000$53.5000$13.3750$1.0700/MTok
claude-sonnet-5Anthropic
$2.1400$10.7000$2.6750$0.2140/MTok
claude-opus-5Anthropic
$5.3500$26.7500$6.6875$0.5350/MTok
claude-fable-5-1Anthropic
$10.7000$53.5000$13.3750$0.2675/MTok
claude-opus-5-5Anthropic
$4.2800$21.4000$5.3500$0.2140/MTok
claude-sonnet-5-5Anthropic
$2.1400$10.7000$2.6750$0.1070/MTok
claude-haiku-5-5Anthropic
$0.1070$0.5350$0.1338$0.0107/MTok
claude-fable-5-2Anthropic
$8.5600$42.8000$10.7000$0.2140/MTok
gpt-4-turboOpenAI
$10.7000$32.1000$0.0000$0.0000/MTok
gpt-4oOpenAI
$2.6750$10.7000$0.0000$1.3375/MTok
gpt-4o-miniOpenAI
$0.1605$0.6420$0.0000$0.0803/MTok
o1OpenAI
$16.0500$64.2000$0.0000$8.0250/MTok
o3-miniOpenAI
$1.1770$4.7080$0.0000$0.5885/MTok
gpt-image-1.5OpenAI
$0.0000$0.0000$0.0000$0.0000$0.0340/image
gpt-4.1OpenAI
$2.1400$8.5600$0.0000$0.5350/MTok
gpt-4.1-miniOpenAI
$0.4280$1.7120$0.0000$0.1070/MTok
gpt-4.1-nanoOpenAI
$0.1070$0.4280$0.0000$0.0268/MTok
o3OpenAI
$2.1400$8.5600$0.0000$0.5350/MTok
o4-miniOpenAI
$1.1770$4.7080$0.0000$0.2943/MTok
gpt-image-2OpenAI
$0.0000$0.0000$0.0000$0.0000$0.0530/image
gpt-5.3-codexOpenAI
$1.8725$14.9800$0.0000$0.1872/MTok
gpt-5.4OpenAI
$2.6750$16.0500$0.0000$0.2675/MTok
gpt-5.5OpenAI
$5.3500$32.1000$0.0000$0.5350/MTok
gpt-5.6OpenAI
$5.3500$32.1000$0.0000$0.5350/MTok
gpt-5.6-solOpenAI
$5.3500$32.1000$0.0000$0.5350/MTok
gpt-5.6-terraOpenAI
$2.6750$16.0500$0.0000$0.2675/MTok
gpt-5.6-lunaOpenAI
$1.0700$6.4200$0.0000$0.1070/MTok
xai/grok-4.20-0309-reasoning
$2.1400$6.4200$0.0000$0.2140/MTok
xai/grok-4.20-0309-non-reasoning
$2.1400$6.4200$0.0000$0.2140/MTok
xai/grok-4.3
$1.3375$2.6750$0.0000$0.2140/MTok
gpt-5.4-miniOpenAI
$0.8025$4.8150$0.0000$0.0803/MTok
gpt-5.4-nanoOpenAI
$0.2140$1.3375$0.0000$0.0214/MTok
gpt-5.4-proOpenAI
$32.1000$192.6000$0.0000$0.0000/MTok
gpt-5.5-proOpenAI
$32.1000$192.6000$0.0000$0.0000/MTok
xai/grok-4.5
$2.1400$6.4200$0.0000$0.3210/MTok
gpt-6-astraOpenAI
$10.7000$53.5000$0.0000$1.0700/MTok
xai/grok-4.7
$2.1400$6.4200$0.0000$0.5350/MTok
gpt-6-solOpenAI
$2.1400$10.7000$0.0000$0.2140/MTok
gpt-6-lunaOpenAI
$0.1070$0.5350$0.0000$0.0107/MTok
gpt-image-2.5-sunburstOpenAI
$0.0000$0.0000$0.0000$0.0000$0.0132/image
gpt-image-2.5-flareOpenAI
$0.0000$0.0000$0.0000$0.0000$0.0132/image
gpt-6.1-solOpenAI
$2.1400$10.7000$0.0000$0.1070/MTok
xai/grok-4.6
$2.1400$6.4200$0.0000$0.5350/MTok
moonshotai/kimi-k3OpenAI
$3.2100$16.0500$0.0000$0.3210/MTok
gpt-6.1-terraOpenAI
$1.0700$5.3500$0.0000$0.0535/MTok
gpt-6.2-solOpenAI
$2.1400$10.7000$0.0000$0.1070/MTok
gpt-6.2-astraOpenAI
$8.5600$42.8000$0.0000$0.4280/MTok
moonshotai/kimi-k3.1-proOpenAI
$2.1400$10.7000$0.0000$0.2140/MTok
particle/particle-1OpenAI
$0.2675$1.0700$0.0000$0.0321/MTok
gemini-2.5-flash-image
$0.3210$32.1000$0.0000$0.0000/MTok
gemini-2.5-pro
$1.3375$10.7000$0.0000$0.1391/MTok
gemini-2.5-flash
$0.3210$2.6750$0.0000$0.0321/MTok
gemini-2.5-flash-lite
$0.1070$0.4280$0.0000$0.0107/MTok
gemini-3-flash
$0.5350$3.2100$0.0000$0.0535/MTok
gemini-3.1-pro
$2.1400$12.8400$0.0000$0.2140/MTok
gemini-3.1-flash-lite
$0.2675$1.6050$0.0000$0.0268/MTok
gemini-3.5-flash
$1.6050$9.6300$0.0000$0.1605/MTok
gemini-3.5-flash-lite
$0.3210$2.6750$0.0000$0.0321/MTok
gemini-3.6-flash
$1.6050$8.0250$0.0000$0.1605/MTok
gemini-3.7-flash
$1.6050$8.0250$0.0000$0.1605/MTok
gemini-3.8-flash
$1.6050$8.0250$0.0000$0.1605/MTok
gemini-4-argon
$4.2800$21.4000$0.0000$0.2140/MTok
gemini-4-carbon
$4.2800$21.4000$0.0000$0.2140/MTok
gemini-4-hydrogen
$1.6050$8.0250$0.0000$0.0803/MTok
gemini-4-neon
$3.2100$16.0500$0.0000$0.1605/MTok
qwq-32bQwen
$0.7062$1.0700$0.0000$0.0000/MTok
mistral-small-3.1-24b
$0.3745$0.5992$0.0000$0.0000/MTok
llama-4-scout-17b-16e
$0.2889$0.9095$0.0000$0.0000/MTok
glm-4.7-flashZhipu
$0.0642$0.4280$0.0000$0.0000/MTok
kimi-k2.6Moonshot
$1.0165$4.2800$0.0000$0.1712/MTok
qwen2.5-coder-32bQwen
$0.7062$1.0700$0.0000$0.0000/MTok
gpt-oss-120b
$0.3745$0.8025$0.0000$0.0000/MTok
gemma-sea-lion-v4-27b-it
$0.3745$0.5992$0.0000$0.0000/MTok
qwen3-30b-a3b-fp8Qwen
$0.0546$0.3638$0.0000$0.0000/MTok
nemotron-3-120b-a12b
$0.5350$1.6050$0.0000$0.0000/MTok
minimax-m2.7MiniMax
$0.3210$1.2840$0.0000$0.0642/MTok
gemma-4-26b-a4b-it
$0.1070$0.3210$0.0000$0.0000/MTok
minimax-m3MiniMax
$0.6420$2.5680$0.0000$0.1284/MTok
google/veo-3.1-fast
$0.0000$0.0000$0.0000$0.0000$0.10/second
glm-5.2Zhipu
$1.4980$4.7080$0.0000$0.2782/MTok
kimi-k2.7-codeMoonshot
$1.0165$4.2800$0.0000$0.2033/MTok
deepseek-v4-flash
$0.4708$1.4124$0.0000$0.0150/MTok
deepseek-v4-pro
$1.4124$4.2372$0.0000$0.0471/MTok
qwen3.8-27bQwen
$0.4815$3.4240$0.0000$0.0000/MTok
glm-5.3Zhipu
$1.4980$4.7080$0.0000$0.2782/MTok
Jev (TypeSafe System One)
$0.0449$0.0000$0.0000$0.0000/MTok
clef
$0.2568$0.0000$0.0000$0.0000/MTok
clef-flash
$0.0963$0.0000$0.0000$0.0000/MTok
clef-omni
$0.1605$0.0000$0.0000$0.0000/MTok
deepseek-v4.1-flash
$0.3210$1.2840$0.0000$0.0064/MTok

← Swipe to see all prices →

Current global markup: 1.07× the provider list priceBilled to $10⁻¹⁰ precision with Math.round — no rounding-up overcharge

Provider list prices are published at anthropic.com/pricing

All prices exclude VAT. Applicable VAT may be added at checkout depending on your region.

API pricing FAQ

How much does a Claude API key cost?
The key is free. You pay per token used: see the table above for the current Claude input, output, cache-write and cache-read rates per million tokens.
Which is cheaper, Claude or GPT or Gemini?
It depends on the model tier you pick, not the vendor: small/fast models on every provider land in the same order of magnitude, while flagship models cost several times more per token. Compare the rows above for the specific models you plan to call.
What is an AI gateway and does it add cost?
A gateway puts many providers behind one OpenAI-compatible endpoint and one key. CodeGateway adds a transparent flat markup (currently 1.07×) instead of a subscription fee.
How are cache writes and cache reads billed?
Cache writes cost slightly more than normal input tokens because the provider stores the context; cache reads cost a fraction of input tokens. Reusing a long system prompt is usually cheaper with caching enabled.
Do I need a monthly subscription?
No. Top up a balance and each call deducts the exact token cost (precision to $10⁻¹⁰). The balance never expires, there is no monthly minimum, and top-ups start at $5.

One key, every model — start free

Create a key, send one request, and see the exact per-token cost in your usage log.

Create your API key

See also: full pricing & top-up plans · model catalog

Claude vs GPT vs Gemini API Pricing 2026 | CodeGateway