aitokencost.appWhat one AI call costs, part by part

AI token cost: how one API call is billed

AI token cost is what a call's tokens add up to: input tokens at the input price plus output tokens, hidden reasoning included, at the output price, per million. Cached input and batch jobs cost less. A call sending 10,000 tokens and getting 1,000 back costs $0.0015 on GPT-6 Luna, $0.03 on Claude Sonnet 5.5 and $0.12 on GPT-6.2 Astra.

What are the parts of an AI token bill?

Five parts, each priced per million tokens. How each bills, with GPT-6.2 Sol's rates:

PartWhat countsHow it billsGPT-6.2 Sol, per 1M
InputEverything you send: instructions, prompt, files, earlier turnsThe input price$2.00
OutputAll the model writesThe output price, 2 to 8.3 times input$10.00
Cached inputA repeated prompt prefix read from cache5% of input on GPT-6.2; 2.5% on Claude Fable 5.2$0.10
ReasoningHidden thinking before answeringAs output at OpenAI, Anthropic and Google (input vs output tokens)$10.00
BatchA job that may take up to 24 hoursHalf price at OpenAI, Anthropic and Google; 20% off at xAI (batch API)$1.00 in, $5.00 out

How much does one AI call cost?

Tokens in times the input price, plus tokens out times the output price, over a million. For 10,000 in and 1,000 out:

ModelInput sideOutput sideOne call
GPT-6 Luna10,000 × $0.10 = $0.0011,000 × $0.50 = $0.0005$0.0015
Claude Sonnet 5.510,000 × $2 = $0.021,000 × $10 = $0.01$0.03
GPT-6.2 Sol, 8,000 tokens cached2,000 × $2 + 8,000 × $0.10 = $0.00481,000 × $10 = $0.01$0.0148
GPT-6.2 Sol, batch10,000 × $1 = $0.011,000 × $5 = $0.005$0.015
GPT-6.2 Astra10,000 × $8 = $0.081,000 × $40 = $0.04$0.12

The GPT-6.2 Astra call costs 80 times the GPT-6 Luna call, and caching or batch roughly halves the GPT-6.2 Sol call.

What does a million tokens cost on the main models?

From $0.10 in and $0.50 out to $8 in and $40 out, on each maker's pricing page:

ModelInput per 1MOutput per 1MCached input per 1MBatch in / outOne call (10K in, 1K out)
OpenAI
GPT-6.2 Astra$8.00$40.00$0.40$4.00 / $20.00$0.12
GPT-6.2 Sol$2.00$10.00$0.10$1.00 / $5.00$0.03
GPT-6 Luna$0.10$0.50$0.01Not listed$0.0015
Anthropic
Claude Fable 5.2$8.00$40.00$0.20$4.00 / $20.00$0.12
Claude Sonnet 5.5$2.00$10.00$0.10$1.00 / $5.00$0.03
Claude Haiku 5.5 (prompts up to 100K)$0.10$0.50$0.01$0.05 / $0.25$0.0015
Google
Gemini 4 Carbon$4.00$20.00$0.20$2.00 / $10.00$0.06
Gemini 3.5 Flash-Lite$0.30$2.50$0.03$0.15 / $1.25$0.0055
xAI
grok-4.7$2.00$6.00$0.50$1.60 / $4.80$0.026
grok-4.3$1.25$2.50$0.20$1.00 / $2.00$0.015
DeepSeek (peak hours)
DeepSeek V4.1 Flash$0.30$1.20$0.006No batch API$0.0042

Standard tier, US dollars, below each maker's long-prompt line. Batch is each maker's listed batch price, or xAI's 20% off. Shaded: lowest in its column.

How does AI token pricing differ by maker?

Discounts and surcharges differ. Cards run from the cheapest input price up.

Anthropic (Claude)

Best for: long prompts reused often

$0.10 / $0.50 (Haiku 5.5) to $8 / $40 (Fable 5.2) per million.

Good

  • Cache hits cost 2.5% of input on Fable 5.2 ($0.20)

Watch out

  • Claude 4.7 and later count about 30% more tokens per text
  • Haiku 5.5 prompts over 100,000 tokens pay $0.50 / $2.50
Anthropic pricing

OpenAI (GPT)

Best for: choosing a speed tier

$0.10 / $0.50 (GPT-6 Luna) to $8 / $40 (GPT-6.2 Astra) per million.

Good

  • Background mode 30% or 40% off, for hours-long jobs

Watch out

  • Over 272K input tokens, a request pays 2x input, 1.5x output
  • Cache writes are billed: $10 per million on GPT-6.2 Astra
OpenAI pricing

DeepSeek

Best for: jobs that can wait for off-peak hours

deepseek-flash $0.30 / $1.20 at peak, $0.15 / $0.60 off-peak.

Good

  • Off-peak hours, weekends included, are half price

Watch out

  • Weekday peak hours (01:00–04:00, 06:00–10:00 UTC) cost double
  • deepseek-v4-pro ($1.32 / $3.96) has no vision input
DeepSeek pricing

Google (Gemini)

Best for: testing on a free tier first

$0.30 / $2.50 (3.5 Flash-Lite) to $4 / $20 (4 Carbon) per million.

Good

  • Free tier on Gemini 4 Hydrogen and 3.5 Flash-Lite

Watch out

  • Google lists free-tier content as used to improve its products
  • Flash-Lite output is 8.3x its input, the widest gap
Gemini API pricing

xAI (Grok)

Best for: output-heavy work

grok-4.3 $1.25 / $2.50; grok-4.7 $2 / $6 per million.

Good

  • Output only 2x to 3x input, the narrowest gaps

Watch out

  • Prompts of 200k tokens or more pay double
  • Batch takes 20% off, not 50%
xAI pricing

How do I see what my app's tokens actually cost?

Each response's usage fields hold the real count; these tools add them up.

OptionWhat it showsPrice (read December 1, 2026)Watch out
OpenAI usageTokens by type, plus a dashboardIncludedOpenAI calls only
Anthropic Usage and Cost APIUsage and cost per Console organizationIncludedNeeds an Admin API key; marked legacy
OpenRouter usage accountingTokens and cost in every responseNo markup; 5.5% fee on creditsOnly calls sent through OpenRouter
HeliconeRequests, sessions, usersFree to 10,000 requests a month; Pro $79/moFree plan keeps 7 days, 1 seat
LangfuseTraces with token and cost trackingFree to 50k units a month; Core $29/moFree plan keeps 30 days, 2 users
Griffin (made by this site's publisher)Shows what your app's AI really costs, then routes only the calls a cheaper model passed.Watch $0; routing 5% of routed spend after the first $50SDK is TypeScript; other languages use its OpenAI-compatible endpoint

How do I pick a model for a token budget?

  1. Count one real call. OpenAI and Anthropic count tokens free; Gemini has count_tokens.
  2. Price both sides. Input tokens times the input rate, plus output and reasoning tokens times the output rate.
  3. Check the lines you'll cross. 272K input tokens at OpenAI, 200k at xAI, 100K on Claude Haiku 5.5, peak hours at DeepSeek.
  4. Re-read the price page. Gemini 4 Carbon doubled on December 1, 2026.

Questions about AI token cost

Are batch and cached tokens cheaper?

Yes. Batch is half price at OpenAI, Anthropic and Google and 20% off at xAI, and cached input costs 2% (deepseek-flash) to 25% (grok-4.7) of the input rate.

What does per million tokens mean?

Prices are quoted per 1,000,000 tokens, so a call costs its tokens times the price divided by 1,000,000: 10,000 input tokens at $2 per million cost $0.02.

How many words is 1,000 tokens?

About 750 English words by OpenAI's rule of thumb that 100 tokens is about 75 words; Google puts 100 Gemini tokens at 60 to 80 words.

Do reasoning tokens cost extra?

They cost the output rate. OpenAI and Anthropic bill them as output tokens, and Google's output price includes thinking tokens.

Why do two models at the same price cost different amounts?

Tokenizers differ and models write different amounts of output and reasoning. OpenAI says a lower per-token price doesn't necessarily mean a lower total cost.

How was this page checked?

Every price and rule was read on December 1, 2026 from the makers' own pages below; we didn't run the models.

  1. OpenAI API pricing and the GPT-6.2 Astra model page (272K line)
  2. Anthropic pricing, including the tokenizer note
  3. Gemini Developer API pricing
  4. xAI pricing
  5. DeepSeek models and pricing
  6. OpenAI: Understanding and counting tokens
  7. The tracking options' own pages, linked in their table

Who publishes this site?

aitokencost.app lists what AI tokens cost, from each maker's own price page, dated. This site is published by Winding AI, Inc., which makes Griffin; it earns money when people pay for Griffin, and no one paid to be listed.

Winding AI, Inc., 1887 Whitney Mesa Drive #5338, Henderson, NV 89014, US. Corrections: support@winding.ai.