APIPriceCheck API & Subscriptions

xAI (Grok) API Pricing (2026)

Official token rates, aggregator discounts, and monthly cost simulations for xAI (Grok).

12 models tracked
XAI (GROK) PRICING SUMMARY

How much does xAI (Grok) API cost?

How much does xAI (Grok) API cost?

xAI (Grok) model rates start at $0.20 per 1M input tokens (Grok 4.1 Fast Non-Reasoning) and up to $10.00 per 1M output tokens for flagship Grok 2. Prompt Caching reduces input costs down to $1.00/1M on cache hits.

AI Token Cost Calculator

Simulate your monthly API expenses with Prompt Caching discounts & Aggregator deals.

Input Tokens (Prompt)1,500
10032k128k
Output Tokens (Completion)800
504k16k
Prompt Cache Hit30%
0% (No Cache)50%100% (Hot)
Daily API Calls (Volume Scale):500 calls / day (15,000 / mo)
Single Call Cost
$0.01055
Per request average cost
Official Monthly Bill
$158.25 / mo
Direct Lab rate: $2/1M in · $10/1M out
Via Hosting & Relays
$158.25 / mo
Official rate matches best host
SMART TIPSwitching from Grok 2 to DeepSeek V3 drops your monthly cost from $158.25 down to $5.66.

xAI (Grok) Models Price Comparison Table

Tier:
Filter:
Cached InHosting Providers & RelaysAction
128k$0.20$0.10$0.50
$0.20 / $0.50via OpenRouter
OpenRouter
128k$0.20$0.10$0.50
$0.20 / $0.50via OpenRouter
OpenRouter
xAI·Grok Build 0.1
256k$1.00$0.20$2.00
$1.00 / $2.00via OpenRouter
OpenRouter
xAI·Grok 4.3
1.0M$1.25$0.20$2.50
$1.25 / $2.50via OpenRouter
OpenRouter
1.0M$1.25$0.20$2.50
$1.25 / $2.50via OpenRouter
OpenRouter
1.0M$1.25$0.20$2.50
$1.25 / $2.50via OpenRouter
OpenRouter
1.0M$1.25$0.20$2.50
$1.25 / $2.50via OpenRouter
OpenRouter
Grok 2Flagship
128k$2.00$1.00$10.00
$2.00 / $10.00via OpenRouter
OpenRouter
Grok 4.5Flagship
xAI·Grok 4.5
500k$2.00$0.30$6.00
$2.00 / $6.00via OpenRouter
OpenRouter
Grok 4.6Flagship
xAI·Grok 4.6
500k$2.00$0.50$6.00
$2.00 / $6.00via OpenRouter
OpenRouter
Grok 4.7Flagship
xAI·Grok 4.7
500k$2.00$0.50$6.00
$2.00 / $6.00via OpenRouter
OpenRouter
Grok 3Flagship
128k$3.00$1.50$15.00
$3.00 / $15.00via OpenRouter
OpenRouter
Price Indicator: Budget (<$0.15) Mid ($0.15 - $1.00) Higher ($1.00 - $5.00) Flagship (>$5.00)
Showing 12 of 12 AI models

Frequently Asked Questions

Everything you need to know about AI token costs, caching discounts, and billing.

How much does xAI (Grok) API cost per token?
xAI (Grok) charges on a per-million token basis. For Grok 2, input tokens cost $2.00/1M and output tokens cost $10.00/1M.
Does xAI (Grok) offer Prompt Caching discounts?
Yes. xAI (Grok) supports automated or explicit prompt caching, reducing input costs on cache hits down to $1.000/1M.
Can I access xAI (Grok) models via OpenRouter or other aggregators?
Yes, most xAI (Grok) models are mirrored or directly routed through aggregators like OpenRouter, DeepInfra, and Together AI, often offering pay-as-you-go billing without minimum monthly commitments.