Token Cost Calculator

ChatGPT API Pricing

GPT-6 and GPT-5 per-token rates, Batch API 50% off, and prompt-cache savings — compared to Claude, Gemini, and DeepSeek.

Last updated: 2026-10-20

1,000
2,000
400
1,000 × 2,000in + 400out = 2,000,000 input,400,000 output tokens

Estimated cost across 21 models

Google Cheapest

Gemini 2.5 Flash-Lite

$0.360/ month
$4.32 / year
Input
$0.200
Output
$0.160400,000 tokens
Input
$0.10 / 1M2,000,000 tokens
Output
$0.40 / 1M
Context window
1,000,000Last updated: 2026-10-20
OpenAI

GPT-6 luna

$0.400/ month
$4.80 / year
Input
$0.200
Output
$0.200400,000 tokens
Input
$0.10 / 1M2,000,000 tokens
Output
$0.50 / 1M
Context window
1,050,000Last updated: 2026-10-20
MiniMax

MiniMax M3.1 Flash

$0.540/ month
$6.48 / year

Released 2026-10-19; $0.15 / $0.60 / $0.015 (¥1 / ¥4 / ¥0.1). Flat rate — no long-context tier, and unlike M3 it does not accept service_tier=priority.

Input
$0.300
Output
$0.240400,000 tokens
Input
$0.15 / 1M2,000,000 tokens
Output
$0.60 / 1M
Context window
1,000,000Last updated: 2026-10-20
DeepSeek

DeepSeek V4.1-Flash 1017

$1.08/ month
$12.96 / year
Peak hours

Checkpoint DeepSeek-V4.1-Flash-1017 (released 2026-10-17), served under the API model name `deepseek-flash`; open weights on Hugging Face / ModelScope. The 2026-09-10 launch price is unchanged. The launch checkpoint is kept as its own row (deepseek-flash-0910).

Input
$0.600
Output
$0.480400,000 tokens
Input
$0.30 / 1M2,000,000 tokens
Output
$1.20 / 1M
Context window
1,000,000Last updated: 2026-10-20
MiniMax

MiniMax M3

$1.08/ month
$12.96 / year

Released 2026-06-01. service_tier=priority costs 1.5× ($0.45 / $1.80 / $0.09). No separate cache-write charge. The cached-input rate above 512k doubles to $0.12; cost.ts applies the input multiplier to the cached rate as well.

Input
$0.600
Output
$0.480400,000 tokens
Input
$0.30 / 1M2,000,000 tokens
Output
$1.20 / 1M
Context window
1,000,000Last updated: 2026-10-20
Google

Gemini 3.1 Flash-Lite

$1.10/ month
$13.20 / year
Input
$0.500
Output
$0.600400,000 tokens
Input
$0.25 / 1M2,000,000 tokens
Output
$1.50 / 1M
Context window
1,000,000Last updated: 2026-10-20
Google

Gemini 2.5 Flash

$1.60/ month
$19.20 / year
Input
$0.600
Output
$1.00400,000 tokens
Input
$0.30 / 1M2,000,000 tokens
Output
$2.50 / 1M
Context window
1,000,000Last updated: 2026-10-20
Google

Gemini 3.8 Flash

$3.00/ month
$36.00 / year

Introductory pricing: $0.75 / $3.75 / $0.075 through 2026-12-31, then $1.50 / $7.50 / $0.15 from 2027-01-01.

Input
$1.50
Output
$1.50400,000 tokens
Input
$0.75 / 1M2,000,000 tokens
Output
$3.75 / 1M
Context window
1,000,000Last updated: 2026-10-20
Anthropic

Claude Haiku 4.5

$4.00/ month
$48.00 / year
Input
$2.00
Output
$2.00400,000 tokens
Input
$1.00 / 1M2,000,000 tokens
Output
$5.00 / 1M
Context window
200,000Last updated: 2026-10-20
DeepSeek

DeepSeek V4-Pro

$4.22/ month
$50.69 / year
Peak hours
Input
$2.64
Output
$1.58400,000 tokens
Input
$1.32 / 1M2,000,000 tokens
Output
$3.96 / 1M
Context window
1,000,000Last updated: 2026-10-20
Grok

Grok 4.7

$6.40/ month
$76.80 / year
Input
$4.00
Output
$2.40400,000 tokens
Input
$2.00 / 1M2,000,000 tokens
Output
$6.00 / 1M
Context window
500,000Last updated: 2026-10-20
Google

Gemini 2.5 Pro

$6.50/ month
$78.00 / year
Input
$2.50
Output
$4.00400,000 tokens
Input
$1.25 / 1M2,000,000 tokens
Output
$10.00 / 1M
Context window
1,000,000Last updated: 2026-10-20
OpenAI

GPT-6 sol

$8.00/ month
$96.00 / year
Input
$4.00
Output
$4.00400,000 tokens
Input
$2.00 / 1M2,000,000 tokens
Output
$10.00 / 1M
Context window
1,050,000Last updated: 2026-10-20
Anthropic

Sonnet 5

$8.00/ month
$96.00 / year
Input
$4.00
Output
$4.00400,000 tokens
Input
$2.00 / 1M2,000,000 tokens
Output
$10.00 / 1M
Context window
1,000,000Last updated: 2026-10-20
Google

Gemini 4 Argon

$8.00/ month
$96.00 / year

Introductory pricing: $2 / $10 / $0.10 through 2026-11-30, then $4 / $20 / $0.20 from 2026-12-01. Implicit caching only — explicit caching is not supported. Batch and Flex run at half the standard rate; Priority is 1.8×.

Input
$4.00
Output
$4.00400,000 tokens
Input
$2.00 / 1M2,000,000 tokens
Output
$10.00 / 1M
Context window
1,048,576Last updated: 2026-10-20
Google

Gemini 3.1 Pro Preview

$8.80/ month
$106 / year
Input
$4.00
Output
$4.80400,000 tokens
Input
$2.00 / 1M2,000,000 tokens
Output
$12.00 / 1M
Context window
1,000,000Last updated: 2026-10-20
OpenAI

GPT-5.6 sol

$16.00/ month
$192 / year

Promotional pricing ($4 / $20 / $0.40) is available at least through 2026-11-21; the pre-promo rate was $5 / $30. Re-check after that date.

Input
$8.00
Output
$8.00400,000 tokens
Input
$4.00 / 1M2,000,000 tokens
Output
$20.00 / 1M
Context window
1,050,000Last updated: 2026-10-20
Anthropic

Opus 5.5

$16.00/ month
$192 / year
Input
$8.00
Output
$8.00400,000 tokens
Input
$4.00 / 1M2,000,000 tokens
Output
$20.00 / 1M
Context window
1,000,000Last updated: 2026-10-20
OpenAI

GPT-6 astra

$40.00/ month
$480 / year
Input
$20.00
Output
$20.00400,000 tokens
Input
$10.00 / 1M2,000,000 tokens
Output
$50.00 / 1M
Context window
1,050,000Last updated: 2026-10-20
Anthropic

Fable 5.1

$40.00/ month
$480 / year
Input
$20.00
Output
$20.00400,000 tokens
Input
$10.00 / 1M2,000,000 tokens
Output
$50.00 / 1M
Context window
1,000,000Last updated: 2026-10-20
OpenAI

GPT-5.6 cyber

$55.00/ month
$660 / year
Input
$25.00
Output
$30.00400,000 tokens
Input
$12.50 / 1M2,000,000 tokens
Output
$75.00 / 1M
Context window
400,000Last updated: 2026-10-20

Prices verified 2026-10-20. Source: official provider pricing pages. · Machine-readable: /api/prices.json

Quick takeaways
  • 1GPT-5 cached input drops to $0.125/M — a 90% discount vs the $1.25/M standard rate.
  • 2The Batch API runs at 50% off with a 24-hour SLA — ideal for evals, bulk summarization, and dataset generation.
  • 3GPT-6 astra is the most expensive active model at $10 input / $50 output per 1M tokens.
  • 4GPT-6 luna is the cheapest active model at $0.10 input / $0.50 output per 1M tokens.

Batch API · 50% off

OpenAI's Batch API processes requests asynchronously with a 24-hour SLA at half the standard rate — both input and output bill at 50%. You submit a JSONL file of requests, poll for completion, and there are no rate limits on the queue. Ideal for non-urgent workloads: evals, bulk summarization, dataset generation, and large backfills.

50% off · 24-hour SLA · no queue rate-limits

Prompt caching · ~90% off

OpenAI automatically caches prompt prefixes (≥1,024 tokens) for 5–10 minutes (longer on GPT-5/6). Cached reads bill at roughly 10% of the standard input rate. For repeat-prefix workloads (system prompts, tool schemas, large documents) caching is the single biggest cost lever — most production stacks see a 50–80% input reduction once caching is on.

  • GPT-6 astra: $1.000/M (90% off)
  • GPT-6 sol: $0.200/M (90% off)
  • GPT-6 luna: $0.010/M (90% off)
  • GPT-5.6 cyber: $1.250/M (90% off)
  • GPT-5.6 sol: $0.400/M (90% off)
Token Cost Calculator

How to bring the bill down

  1. 1Use GPT-5 nano or GPT-6 luna for routing / classification — output is roughly 8–20× cheaper than the flagship.
  2. 2Enable cached input — OpenAI auto-caches prefix repeats for ~90% off the standard input rate.
  3. 3Route non-urgent jobs through the Batch API for 50% off (24-hour SLA, no queue rate-limits).
  4. 4Set max_tokens explicitly — output is the expensive side; capping it prevents runaway replies.
  5. 5ChatGPT Plus ($20/mo) does NOT replace API access — high-volume workloads still need the API.
Token Cost Calculator

Frequently asked questions

How much does the ChatGPT API cost per million tokens?
GPT-6 astra is $10 input / $50 output per 1M; GPT-6 sol is $2 / $10; GPT-6 luna is $0.10 / $0.50. Older GPT-5 (now delisted) was $1.25 / $10 with cached input at $0.125/M. Use the calculator above to compare every active model at your exact usage.
How many tokens does $5 get you in ChatGPT?
$5 buys you roughly 500K input tokens on GPT-6 astra (or 100K output). On GPT-6 sol the same $5 buys 2.5M input / 500K output. On GPT-6 luna it's 50M input / 10M output. On GPT-5 nano the same $5 buys 100M input / 12.5M output.
How much is 200,000 tokens in ChatGPT?
200,000 input tokens on GPT-6 astra cost $2.00; on GPT-6 sol $0.40; on GPT-6 luna $0.02. The same 200K output tokens cost $10.00 on astra, $2.00 on sol, $0.10 on luna. GPT-5 nano: 200K input is $0.01, 200K output is $0.08.
Should I use GPT-5 mini or GPT-5 nano?
GPT-5 mini ($0.25 input / $2.00 output per 1M) is for short-answer workloads where quality matters. GPT-5 nano ($0.05 / $0.40) is for high-volume routing and classification — output is 5× cheaper than mini. Most production stacks use nano for routing and reserve mini for the harder prompts.
How does ChatGPT prompt caching work?
OpenAI automatically caches prompt prefixes of 1,024 tokens or more for 5–10 minutes (longer on GPT-5/6). Cached reads bill at roughly 10% of the standard input rate — $0.125/M on GPT-5 vs $1.25/M standard, $1/M on GPT-6 astra vs $10/M. The single biggest cost saver for repeat-prefix workloads.
Who should use the OpenAI Batch API?
The Batch API is for non-urgent jobs that can wait up to 24 hours — evals, bulk summarization, dataset generation, embedding backfills. Both input and output bill at 50% of standard rates; you submit a JSONL file of requests and poll for completion. Latency-sensitive workloads should use the real-time API.
Is OpenRouter cheaper than going direct to OpenAI?
For most single-model, high-volume workloads, going direct to platform.openai.com is slightly cheaper — you skip the OpenRouter markup (~5%). OpenRouter wins when you need automatic fallback across providers, a single bill for many models, or access to models not available in your home region.
How accurate is this calculator?
Token counts are exact for ChatGPT models (the calculator uses OpenAI's o200k_base tokenizer for GPT-5/6, cl100k_base for older families). Prices are sourced from platform.openai.com/docs/pricing and re-verified regularly. Always check the source link on each card before relying on a number for billing.