xAI API pricing

112 of 131 models match the official page, 107 match models.devSynced 2026-12-05 13:00 UTC · Method

Our data has 7 current xAI models. The lowest input price is Grok 4.3 at $1.25 per 1M tokens and the lowest output price is Grok 4.3 at $2.50; the newest model is Grok 4.7 (2026-09-21). All 7 models have cached-input and batch prices. Tick models to compare them, or put your traffic into the calculator.

Compare the 4 newest xAI models side by side →

Billing rules for caching, Batch and long prompts: xAI API cost guide.

Default order: premium models (output $6.00+/1M) first, newest release first; legal and healthcare versions last in each group. Tick models to compare them side by side. Use ▾ in a column header to sort or filter.

LLM API prices, USD per 1M tokens
CompareModelReleasedInput /1MOutput /1MCached /1MBatch in /1MMax inputImage inputReasoningTool callingStructured output
Grok 4.7 ✓2026-09-21$2.00$6.00$0.50$1.60500,000
Grok 4.6 ✓2026-08-12$2.00$6.00$0.50$1.60500,000
Grok 4.5 ✓2026-07-08$2.00$6.00$0.30$1.60500,000
Grok 4.3 ✓2026-04-17$1.25$2.50$0.20$1.001,000,000
Grok 4.20 Multi Agent ✓2026-03-09$1.25$2.50$0.20$1.001,000,000
Grok 4.20 Non Reasoning ✓2026-03-09$1.25$2.50$0.20$1.001,000,000
Grok 4.20 Reasoning ✓2026-03-09$1.25$2.50$0.20$1.001,000,000
What the marks mean

✓ matches the official page ! sources disagree ○ not yet checked image input reasoning

Recent price changes

No price changes recorded since tracking began on 2026-10-08.

Retired and retiring models

Shutdown dates, replacements and automatic routing as stated in each provider notice. — = no replacement model in the notice table.

Models routed (or scheduled to be routed) to another model

Shutdown dates, replacements and automatic routing as stated in each provider notice.

Estimates from published per-token rates; check official pricing before budgeting. Data synced from the LiteLLM price list 2026-12-05 13:00 UTC.

FAQ

Where do these prices come from?

From the open-source LiteLLM price list, refreshed every 4 hours and, for providers with an automatic check, compared field by field with the provider's official pricing page (OpenAI, Anthropic and Google pages are usually read once a day, the others every 4 hours). Each model page shows what was verified. A few models LiteLLM does not list are added by hand from the provider's official pricing page, and their pages name that page as the source.

Why is a model missing?

We list first-party chat and reasoning models with published per-token prices. Audio, image, realtime, fine-tuned and third-party-hosted models are out of scope; deprecated models move to the retired list. Missing or wrong entries can be reported on the feedback board.