xAI

Grok 4 API Pricing

Grok 4 has tracked API rates of $3.00 per 1M input tokens and $15.00 per 1M output tokens. Rates are in USD from the AI IQ dataset; see the Grok 4 model profile for capability scores.

Input / 1M
$3.00
Output / 1M
$15.00
Effective / 1M I/O
$34.83
Cost Rank
#136

Price List

RatePrice (USD)Notes
Input$3.00per 1M tokens
Output$15.00per 1M tokens
Blended input + output$18.001M in + 1M out at list price

Pricing References and Billing Caveats

These are the tracked rates, not a live quote. Hosted-provider choice, region, long-context tiers, caching, batch discounts, and temporary promotions can change the actual bill. Open-weight availability does not mean hosted inference is free. Workload examples assume the listed standard input and output rates, with no cache hits or discounts.

xAI pricing catalog — check current offerings and rate tiers. This catalog may not list historical models or third-party hosted endpoints.

No model-specific official reference is recorded for this entry. Confirm the current rates directly with your inference provider.

What a Workload Costs

Computed straight from the list prices above — token counts are illustrative workload sizes, not measurements of Grok 4.

WorkloadCostTokens
Short chat turn$0.0111K in / 500 out
Summarize a long document$0.330100K in / 2K out
Agentic coding session$3.00500K in / 100K out
1M input + 1M output tokens$18.001M in / 1M out

Effective Cost

In AI IQ's scoring, Grok 4's list price is adjusted by a token-usage multiplier of 1.935 (measured from real benchmark runs), giving an effective cost of $34.83 per 1M input + output tokens. That places it #136 of 153 models on the effective-cost ranking (lower is cheaper). Some models spend far more tokens than others on the same task, so effective cost compares what a unit of work really costs. Method details are on the methodology page; see all models on the cost charts and the falling cost of intelligence over time.

Cheaper Alternatives at Similar Capability

Models with a lower effective cost that score within a few IQ points of Grok 4 (IQ 100), or better.

ModelProviderIQEffective Cost / 1M
gpt-6.1-solOpenAI141$6.29
gpt-6-astraOpenAI140$34.14
gpt-6-solOpenAI137$9.83
gpt-5.6-solOpenAI134$27.43
Gemini 3.8 FlashGoogle130$7.98
gpt-5.6-terraOpenAI130$13.73

Compare