xAI

Grok 4.5 token cost calculator

xAI flagship Grok 4.5 for code, agentic tool use, and general chat (short-context rates).

Published list rates

Input

$2.00

per 1M tokens

Output

$6.00

per 1M tokens

Cached input

$0.3

per 1M tokens

Context window

500,000

tokens

Pricing source: xAI API pricing

Token cost calculator

List prices are stored in US dollars. Conversions use the units-per-dollar exchange-rate snapshot last checked 2026-07-31

Estimate from text

Calculate from a token total

Project monthly volume

Uses the input/output mix above and a 30-day month: requests per day × tokens per request × 30.

Estimated cost

Estimated tokens
Characters
Words
Input tokens
Output tokens
Input cost
Output cost
Total cost
Combined price per 1M tokens
Estimated monthly cost
Estimated daily cost

Cost by token volume

Compare input-only, output-only, and 70/30 mixed workloads from one token to 100 billion. Intermediate bands make smaller production steps easier to price.

Tokens Input only Output only 70/30 mix
1 $0.000002 $0.000006 $0.000003
10 $0.00002 $0.00006 $0.000032
100 $0.0002 $0.0006 $0.00032
200 $0.0004 $0.0012 $0.00064
300 $0.0006 $0.0018 $0.00096
400 $0.0008 $0.0024 $0.00128
500 $0.001 $0.003 $0.0016
1,000 $0.002 $0.006 $0.0032
2,000 $0.004 $0.012 $0.0064
5,000 $0.01 $0.03 $0.016
10,000 $0.02 $0.06 $0.032
25,000 $0.05 $0.15 $0.08
50,000 $0.1 $0.3 $0.16
100,000 $0.2 $0.6 $0.32
250,000 $0.5 $1.50 $0.8
500,000 $1.00 $3.00 $1.60
1,000,000 $2.00 $6.00 $3.20
5,000,000 $10.00 $30.00 $16.00
10,000,000 $20.00 $60.00 $32.00
50,000,000 $100.00 $300.00 $160.00
100,000,000 $200.00 $600.00 $320.00
500,000,000 $1,000.00 $3,000.00 $1,600.00
1,000,000,000 $2,000.00 $6,000.00 $3,200.00
10,000,000,000 $20,000.00 $60,000.00 $32,000.00
100,000,000,000 $200,000.00 $600,000.00 $320,000.00

Tokens available by budget

See how many tokens a fixed budget buys at the published rates. Display-currency values use the current exchange-rate snapshot shown on the page.

Budget Input tokens Output tokens Mixed tokens (70/30)
$0.01 5,000 1,667 3,125
$0.1 50,000 16,667 31,250
$0.5 250,000 83,333 156,250
$1.00 500,000 166,667 312,500
$5.00 2.5M 833,333 1.56M
$10.00 5M 1.67M 3.13M
$20.00 10M 3.33M 6.25M
$25.00 12.5M 4.17M 7.81M
$30.00 15M 5M 9.38M
$50.00 25M 8.33M 15.6M
$100.00 50M 16.7M 31.3M
$250.00 125M 41.7M 78.1M
$500.00 250M 83.3M 156.3M
$1,000.00 500M 166.7M 312.5M
$5,000.00 2.5B 833.3M 1.56B
$10,000.00 5B 1.67B 3.13B

Cost profile

  • A workload with 70% input and 30% output costs $3.20 per 1 million total tokens and $320.00 per 100 million.
  • At the same token count, output costs 3 times the input rate. Response length therefore deserves its own budget limit.
  • Filling the 500,000-token context window with input alone would cost about $1.00, before any output.
  • Cached input is $0.3 per million, 85% below standard input when the workload meets the provider’s cache rules.

About xAI

Grok models from xAI with competitive API pricing and long context tiers. The Grok 4.5 page covers this meter in detail; the xAI hub gathers the rest of the lineup with a pricing table, list-rate ranges, and calculators side by side.

See all xAI models and the pricing table

How the text estimate works

For rough planning, CostUse uses about four characters per token and about 0.75 words per token. Actual tokenization changes with language, model, formatting, and special tokens.

Requests with prompt ≥200k tokens bill at long-context rates: $4 input / $0.60 cached / $12 output per 1M.

These results use public list prices. Cache eligibility, batch or priority modes, long-context surcharges, discounts, and regional billing can change the final invoice.

Questions about this rate

How much is 1 million mixed tokens on Grok 4.5?

About $3.20 at a 70% input / 30% output mix using list prices verified 2026-07-29.

How much are 100 million mixed tokens?

About $320.00 at the same 70/30 mix — useful for rough monthly volume planning.

What is the Grok 4.5 price per million input and output tokens?

Input $2.00 and output $6.00 per 1M tokens (USD list rates). Use the calculator above with your real token mix.

Is the text-to-token estimate exact?

No. The estimator approximates tokens from characters and words. Real bills depend on the provider tokenizer, special tokens, and discounts (cache, batch, priority).

What does cost per token mean, and why is output usually more expensive?

Providers charge for tokens processed. Output tokens (generated replies) often cost several times more than input tokens (your prompt), so completion length can dominate the bill.

Related models