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-27

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

Estimated cost across 6 models

OpenAI Cheapest

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
OpenAI

GPT-6.1 Terra

$4.00/ month
$48.00 / year

Knowledge cutoff June 2026; 128,000 max output tokens. Cache writes cost $1.25 for 30-minute retention and $2.50 for 12-hour, before the long-context adjustment. Batch and Flex run at half the standard rate, Fast mode at 2×, and regional processing adds 10% where available.

Input
$2.00
Output
$2.00400,000 tokens
Input
$1.00 / 1M2,000,000 tokens
Output
$5.00 / 1M
Context window
1,050,000Last updated: 2026-10-27
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
OpenAI

GPT-5.6 sol

$22.00/ month
$264 / year
Standard rate

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
$10.00
Output
$12.00400,000 tokens
Input
$5.00 / 1M2,000,000 tokens
Output
$30.00 / 1M
Context window
1,050,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
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-27. Source: official provider pricing pages. · Machine-readable: /api/prices.json

Quick takeaways
  • 1GPT-6 sol cached input drops to $0.20/M — a 90% discount vs the $2/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 priciest of the GPT-6 line at $10 input / $50 output per 1M tokens.
  • 4GPT-6 luna is the cheapest of the GPT-6 line 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–95%

OpenAI automatically caches prompt prefixes (≥1,024 tokens) for 5–10 minutes (longer on GPT-5/6). Cached reads bill 90–95% below the standard input rate on every OpenAI row we price. For repeat-prefix workloads (system prompts, tool schemas, large documents) caching is the single biggest cost lever, and the more of a request is a stable prefix, the larger the share of input it discounts.

  • GPT-6.1 Terra: $0.050/M (95% off)
  • 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-6 luna for routing / classification — its output is $0.50/M against $10/M on GPT-6 sol, about 20× cheaper.
  2. 2Enable cached input — OpenAI auto-caches prefix repeats, billing cached reads 90–95% below 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. Cached input is $0.20/M on GPT-6 sol and $1/M on GPT-6 astra. The GPT-5 family is now delisted — the GPT-6 line replaced it. 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.
How much is 200,000 tokens in ChatGPT?
200,000 input tokens on GPT-6 astra cost $2; on GPT-6 sol $0.40; on GPT-6 luna $0.02. The same 200K output tokens cost $10 on astra, $2 on sol, $0.10 on luna.
Should I use GPT-6 sol or GPT-6 luna?
GPT-6 sol ($2 input / $10 output per 1M) is the balanced default for production work where answer quality matters. GPT-6 luna ($0.10 / $0.50) is for high-volume routing and classification — its output is about 20× cheaper. Most production stacks use luna for routing and reserve sol 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. Cached reads bill at the cached rate — $0.20/M on GPT-6 sol against a $2/M standard rate (90% off), $1/M on GPT-6 astra against $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?
Going direct to platform.openai.com bills at list price and avoids the credit-purchase fee OpenRouter adds (5.5% Standard / 8% Business) — inference itself is the same list price either way. This site shows the OpenRouter total at roughly 5% above list price to approximate that fee. OpenRouter wins when you need automatic fallback, 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 the GPT-5 and GPT-6 families, 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.
More calculators

Pick the right page for your use case

Token Cost Calculator

Compare prices across OpenAI, Claude, Gemini, DeepSeek, MiniMax, and Grok. Real tokenizer for OpenAI, accurate estimates for the rest.

Compare every LLM price →

OpenRouter Pricing Calculator

See what your tokens actually cost after the OpenRouter markup — and when going direct to the provider is cheaper.

Calculate OpenRouter markup →

Claude Token Cost Calculator

Cost per token and monthly estimates for Claude Opus, Sonnet, and Haiku — with the Anthropic API.

Calculate Claude API cost →

DeepSeek API Pricing

V4-Pro and V4.1-Flash per-token rates, off-peak hours, and prompt-cache savings — compared to Claude, GPT, and Gemini.

View DeepSeek API pricing →

Gemini API Pricing

Google Gemini rates per 1M tokens — Gemini 4 Argon, Gemini 3.1 Pro, Gemini 3.8 Flash and the Flash-Lite tier — with the long-context band, the cache rate and the service tiers, priced against every other model.

View Gemini API pricing →

Grok API Pricing

xAI Grok rates per 1M tokens — Grok 4.7 with its long-context band and cached-input rate, plus the retired Grok 4 row — priced against every other model.

View Grok API pricing →

MiniMax API Pricing

MiniMax M3.1 Flash and M3 rates per 1M tokens — a flat rate, the priority lane, the long-context doubling and the cache rate — priced against every other model.

View MiniMax API pricing →

Kimi API Pricing

Moonshot Kimi rates per 1M tokens — K3.1 Pro, the Highspeed twin and the still-sold K3, with the million-token window and the separately billed cache writes.

View Kimi API pricing →