xAI pricing

xAI API Pricing

xAI pricing rows include Grok model costs, retirement or redirect notes where present, and official xAI documentation links for current billing checks.

MODELS COVERED
13
DATA SOURCE
Official xAI
PRICING UNIT
Per 1M tokens
LAST VERIFIED
Oct 15, 2026
API cost estimate

Estimate xAI API Cost

Choose a current xAI model from the same pricing rows, enter input tokens, output tokens, and request volume, then review the estimated monthly API cost.

xAI cost planning

Estimate xAI API cost before monthly usage scales.

Start with realistic input tokens, output tokens, model choice, request volume, and any cached input when available rules that apply. Then compare the estimate against current model pricing and budget limits before launch.

Current model pricing

Model costs per 1M tokens.

Null or unverified values are displayed as Not listed, never as zero.

ModelInputOutputCached InputBatch InputBatch OutputUnitStatus
Grok 3Model ID: grok-3Provider: xAIVerification: verified. V2 has no default-safe current price for this row (verified); displayed price is a legacy fallback and must not be treated as V2 verified pricing.
Evidence
Verified: Checked: Official sources (4): Official source 1Official source 2Official source 3Official source 4
Input · USD per 1M input tokens$1.25Output · USD per 1M output tokens$2.50Cached input · USD per 1M cached input tokens$0.200Batch input · USD per 1M input tokensNot listedBatch output · USD per 1M output tokensNot listedUSD per 1M tokensretiredRetired; requests redirect to Grok 4.3
Grok 4.20 (Non-Reasoning)Model ID: grok-4.20-0309-non-reasoningProvider: xAIDisplayed pricing: Standard · Short context · <200k prompt tokens · whole requestVerification: verified. The verified canonical tiers price the whole request by total prompt tokens, including cached tokens; structured components preserve Batch rates.
Evidence
Verified: Checked: Official sources (2): Official source 1Official source 2
Input · USD per 1M input tokens$1.25Output · USD per 1M output tokens$2.50Cached input · USD per 1M cached input tokens$0.200Batch input · USD per 1M input tokens$1.00Batch output · USD per 1M output tokens$2.00USD per 1M tokenslatestStandard
Grok 4.20Model ID: grok-4.20-0309-reasoningProvider: xAIDisplayed pricing: Standard · Short context · <200k prompt tokens · whole requestVerification: verified. The verified canonical tiers price the whole request by total prompt tokens, including cached tokens; structured components preserve Batch rates.
Evidence
Verified: Checked: Official sources (2): Official source 1Official source 2
Input · USD per 1M input tokens$1.25Output · USD per 1M output tokens$2.50Cached input · USD per 1M cached input tokens$0.200Batch input · USD per 1M input tokens$1.00Batch output · USD per 1M output tokens$2.00USD per 1M tokenslatestStandard
Grok 4.20 Multi-Agent BetaModel ID: grok-4.20-multi-agent-0309Provider: xAIDisplayed pricing: Standard · Short context · <200k prompt tokens · whole requestVerification: verified. The verified canonical tiers price the whole request by total prompt tokens, including cached tokens; structured components preserve Batch rates.
Evidence
Verified: Checked: Official sources (2): Official source 1Official source 2
Input · USD per 1M input tokens$1.25Output · USD per 1M output tokens$2.50Cached input · USD per 1M cached input tokens$0.200Batch input · USD per 1M input tokens$1.00Batch output · USD per 1M output tokens$2.00USD per 1M tokenspreviewStandard
Grok 4.3Model ID: grok-4.3Provider: xAIDisplayed pricing: Standard · Short context · <200k prompt tokens · whole requestVerification: verified. xAI recommends Grok 4.3 for most text use cases and notes model aliases can move to newer versions.
Evidence
Verified: Checked: Official sources (4): Official source 1Official source 2Official source 3Official source 4
Input · USD per 1M input tokens$1.25Output · USD per 1M output tokens$2.50Cached input · USD per 1M cached input tokens$0.200Batch input · USD per 1M input tokens$1.00Batch output · USD per 1M output tokens$2.00USD per 1M tokensactiveStandard
Grok 4.5Model ID: grok-4.5Provider: xAIDisplayed pricing: Standard · Short context · <200k prompt tokens · whole requestVerification: verified. Available since 2026-07-16. Above 200K tokens, xAI lists $4 input, $0.60 cached input, and $12 output per 1M tokens. Grok 4.5 is not supported by the Batch API.
Evidence
Verified: Checked: Official sources (3): Official source 1Official source 2Official source 3
Input · USD per 1M input tokens$2.00Output · USD per 1M output tokens$6.00Cached input · USD per 1M cached input tokens$0.300Batch input · USD per 1M input tokensNot listedBatch output · USD per 1M output tokensNot listedUSD per 1M tokensactiveStandard
Grok 4.6Model ID: grok-4.6Provider: xAIDisplayed pricing: Standard · Short context · <200k prompt tokens · whole requestVerification: verified. Available on the xAI API since 2026-08-12. At 200K or more total prompt tokens, including cached tokens, xAI lists $4 input, $1 cached input, and $12 output per 1M tokens for the whole request. Grok 4.6 is not supported by the Batch API.
Evidence
Input · USD per 1M input tokens$2.00Output · USD per 1M output tokens$6.00Cached input · USD per 1M cached input tokens$0.500Batch input · USD per 1M input tokensNot listedBatch output · USD per 1M output tokensNot listedUSD per 1M tokenslatestStandard
Grok 4.7Model ID: grok-4.7Provider: xAIDisplayed pricing: Standard · Short context · ≤200k prompt tokens · whole requestVerification: verified. Effective from 2026-09-21. Available on the public xAI API since 2026-09-21. Up to and including 200K total prompt tokens uses $2 input, $0.50 cached input, and $6 output; above 200K the whole request uses $4, $1, and $12. Cached prompt tokens count toward the threshold. Grok 4.7 Fast is limited to Cursor and Grok Build, Batch is unsupported, and the US regional endpoint adds 10%.
Evidence
Verified: Checked: Official sources (4): Official source 1Official source 2Official source 3Official source 4
Input · USD per 1M input tokens$2.00Output · USD per 1M output tokens$6.00Cached input · USD per 1M cached input tokens$0.500Batch input · USD per 1M input tokensNot listedBatch output · USD per 1M output tokensNot listedUSD per 1M tokenslatestStandard
Grok Build 0.1Model ID: grok-build-0.1Provider: xAIDisplayed pricing: Standard · Short context · <200k prompt tokens · whole requestVerification: verified. Effective from 2026-07-03. Fast coding model trained for agentic coding workflows.
Evidence
Verified: Not availableChecked: Not availableOfficial source: Official source
Input · USD per 1M input tokens$1.00Output · USD per 1M output tokens$2.00Cached input · USD per 1M cached input tokens$0.200Batch input · USD per 1M input tokensNot listedBatch output · USD per 1M output tokensNot listedUSD per 1M tokensactiveCoding
Grok Voice 2.0Model ID: grok-voice-2.0Provider: xAIVerification: verified. Effective from 2026-07-29. V2 marks this row as unsafe for default calculations: deprecated_identity, missing_verified_current_price.
Evidence
Verified: Checked: Official sources (3): Official source 1Official source 2Official source 3
Input · USD per 1M input tokensNot listedOutput · USD per 1M output tokensNot listedCached input · USD per 1M cached input tokensNot listedBatch input · USD per 1M input tokensNot listedBatch output · USD per 1M output tokensNot listedUSD per 1M tokenslegacydeprecated
Grok Voice 3.0Model ID: grok-voice-3.0Provider: xAIVerification: verified. Effective from 2026-10-14. V2 marks this row as unsafe for default calculations: missing_verified_current_price.
Evidence
Verified: Checked: Official sources (3): Official source 1Official source 2Official source 3
Input · USD per 1M input tokensNot listedOutput · USD per 1M output tokensNot listedCached input · USD per 1M cached input tokensNot listedBatch input · USD per 1M input tokensNot listedBatch output · USD per 1M output tokensNot listedUSD per 1M tokenslatestactive
Grok Voice Transcribe 1.0Model ID: grok-voice-transcribe-1.0Provider: xAIVerification: verified. Effective from 2026-09-17. V2 marks this row as unsafe for default calculations: missing_verified_current_price, retired_identity.
Evidence
Verified: Checked: Official sources (3): Official source 1Official source 2Official source 3
Input · USD per 1M input tokensNot listedOutput · USD per 1M output tokensNot listedCached input · USD per 1M cached input tokensNot listedBatch input · USD per 1M input tokensNot listedBatch output · USD per 1M output tokensNot listedUSD per 1M tokensretiredretired
Grok Voice Transcribe 2.0Model ID: grok-voice-transcribe-2.0Provider: xAIVerification: verified. Effective from 2026-09-17. V2 marks this row as unsafe for default calculations: missing_verified_current_price.
Evidence
Verified: Checked: Official sources (3): Official source 1Official source 2Official source 3
Input · USD per 1M input tokensNot listedOutput · USD per 1M output tokensNot listedCached input · USD per 1M cached input tokensNot listedBatch input · USD per 1M input tokensNot listedBatch output · USD per 1M output tokensNot listedUSD per 1M tokenslatestactive
Canonical pricing tiers

Grok 4.20 (Non-Reasoning) short- and long-context pricing.

These standard API prices come from the canonical tier records attached to this model. Values are shown in USD per 1M tokens and are not inferred from the base row.

Context tierTotal prompt token ruleRegular inputCached inputOutputUnit
Short contextshort<200k prompt tokens$1.25$0.200$2.50USD / 1M tokens
Long contextlong≥200k prompt tokens$2.50$0.400$5.00USD / 1M tokens

Total prompt tokens

Total prompt tokens are regular input tokens plus cached input tokens. Both count toward the tier threshold.

Whole-request pricing

When a tier's threshold condition matches, that tier prices the entire standard request. This is a tier switch, not progressive pricing across token bands.

Price-record evidence

Grok 4.20 (Non-Reasoning)
Model ID: grok-4.20-0309-non-reasoning
Provider: xAI

Evidence
Verified: Checked: Official sources (2): Official source 1Official source 2
Canonical pricing tiers

Grok 4.20 short- and long-context pricing.

These standard API prices come from the canonical tier records attached to this model. Values are shown in USD per 1M tokens and are not inferred from the base row.

Context tierTotal prompt token ruleRegular inputCached inputOutputUnit
Short contextshort<200k prompt tokens$1.25$0.200$2.50USD / 1M tokens
Long contextlong≥200k prompt tokens$2.50$0.400$5.00USD / 1M tokens

Total prompt tokens

Total prompt tokens are regular input tokens plus cached input tokens. Both count toward the tier threshold.

Whole-request pricing

When a tier's threshold condition matches, that tier prices the entire standard request. This is a tier switch, not progressive pricing across token bands.

Price-record evidence

Grok 4.20
Model ID: grok-4.20-0309-reasoning
Provider: xAI

Evidence
Verified: Checked: Official sources (2): Official source 1Official source 2
Canonical pricing tiers

Grok 4.20 Multi-Agent Beta short- and long-context pricing.

These standard API prices come from the canonical tier records attached to this model. Values are shown in USD per 1M tokens and are not inferred from the base row.

Context tierTotal prompt token ruleRegular inputCached inputOutputUnit
Short contextshort<200k prompt tokens$1.25$0.200$2.50USD / 1M tokens
Long contextlong≥200k prompt tokens$2.50$0.400$5.00USD / 1M tokens

Total prompt tokens

Total prompt tokens are regular input tokens plus cached input tokens. Both count toward the tier threshold.

Whole-request pricing

When a tier's threshold condition matches, that tier prices the entire standard request. This is a tier switch, not progressive pricing across token bands.

Price-record evidence

Grok 4.20 Multi-Agent Beta
Model ID: grok-4.20-multi-agent-0309
Provider: xAI

Evidence
Verified: Checked: Official sources (2): Official source 1Official source 2
Canonical pricing tiers

Grok 4.3 short- and long-context pricing.

These standard API prices come from the canonical tier records attached to this model. Values are shown in USD per 1M tokens and are not inferred from the base row.

Context tierTotal prompt token ruleRegular inputCached inputOutputUnit
Short contextshort<200k prompt tokens$1.25$0.200$2.50USD / 1M tokens
Long contextlong≥200k prompt tokens$2.50$0.400$5.00USD / 1M tokens

Total prompt tokens

Total prompt tokens are regular input tokens plus cached input tokens. Both count toward the tier threshold.

Whole-request pricing

When a tier's threshold condition matches, that tier prices the entire standard request. This is a tier switch, not progressive pricing across token bands.

Canonical pricing tiers

Grok 4.5 short- and long-context pricing.

These standard API prices come from the canonical tier records attached to this model. Values are shown in USD per 1M tokens and are not inferred from the base row.

Context tierTotal prompt token ruleRegular inputCached inputOutputUnit
Short contextshort<200k prompt tokens$2.00$0.300$6.00USD / 1M tokens
Long contextlong≥200k prompt tokens$4.00$0.600$12.00USD / 1M tokens

Total prompt tokens

Total prompt tokens are regular input tokens plus cached input tokens. Both count toward the tier threshold.

Whole-request pricing

When a tier's threshold condition matches, that tier prices the entire standard request. This is a tier switch, not progressive pricing across token bands.

Canonical pricing tiers

Grok 4.6 short- and long-context pricing.

These standard API prices come from the canonical tier records attached to this model. Values are shown in USD per 1M tokens and are not inferred from the base row.

Context tierTotal prompt token ruleRegular inputCached inputOutputUnit
Short contextshort<200k prompt tokens$2.00$0.500$6.00USD / 1M tokens
Long contextlong≥200k prompt tokens$4.00$1.00$12.00USD / 1M tokens

Total prompt tokens

Total prompt tokens are regular input tokens plus cached input tokens. Both count toward the tier threshold.

Whole-request pricing

When a tier's threshold condition matches, that tier prices the entire standard request. This is a tier switch, not progressive pricing across token bands.

Canonical pricing tiers

Grok 4.7 short- and long-context pricing.

These standard API prices come from the canonical tier records attached to this model. Values are shown in USD per 1M tokens and are not inferred from the base row.

Context tierTotal prompt token ruleRegular inputCached inputOutputUnit
Short contextshort≤200k prompt tokens$2.00$0.500$6.00USD / 1M tokens
Long contextlong>200k prompt tokens$4.00$1.00$12.00USD / 1M tokens

Total prompt tokens

Total prompt tokens are regular input tokens plus cached input tokens. Both count toward the tier threshold.

Whole-request pricing

When a tier's threshold condition matches, that tier prices the entire standard request. This is a tier switch, not progressive pricing across token bands.

Canonical pricing tiers

Grok Build 0.1 short- and long-context pricing.

These standard API prices come from the canonical tier records attached to this model. Values are shown in USD per 1M tokens and are not inferred from the base row.

Context tierTotal prompt token ruleRegular inputCached inputOutputUnit
Short contextshort<200k prompt tokens$1.00$0.200$2.00USD / 1M tokens
Long contextlong≥200k prompt tokens$2.00$0.400$4.00USD / 1M tokens

Total prompt tokens

Total prompt tokens are regular input tokens plus cached input tokens. Both count toward the tier threshold.

Whole-request pricing

When a tier's threshold condition matches, that tier prices the entire standard request. This is a tier switch, not progressive pricing across token bands.

Price-record evidence

Grok Build 0.1
Model ID: grok-build-0.1
Provider: xAI

Evidence
Verified: Not availableChecked: Not availableOfficial source: Official source
xAI API pricing guide

What is xAI API pricing?

xAI API pricing is the usage-based cost of running Grok models through API requests. The practical estimate depends on the selected model, input tokens, output tokens, monthly request volume, retries, and any listed caching or discount rules.

How to estimate xAI API cost

Estimate one representative request first: input tokens, expected output tokens, selected Grok models, request volume, retry rate, and cached input when available assumptions when they are listed. Then multiply by monthly traffic.

Open the xAI API cost calculator

xAI model pricing table

Use the table on this page to compare available xAI rows per 1M tokens. Not listed values stay visible as Not listed, so unknown prices are not accidentally treated as zero.

Compare xAI models

Compare total workflow cost, not only the cheapest input token price. Output length, quality, retries, context size, and fallback routing can change the real monthly API bill.

Compare xAI with other providers
xAI model use cases

Which xAI models are usually used for.

Use cases are planning categories, not pricing promises. Estimate each workflow with its own token shape, expected answer length, quality requirement, and fallback behavior.

General assistants

Grok routes may be evaluated for chat, research, summarization, and general assistant workflows.

Reasoning-heavy tasks

For deeper reasoning tasks, estimate output length, retry behavior, and fallback calls instead of only comparing input token price.

Multi-provider routing

Teams comparing xAI often model it as one route in a broader provider mix with OpenAI, Claude, Gemini, or DeepSeek.

Provider comparison

xAI pricing vs OpenAI, Claude, and Gemini.

Compare xAI with OpenAI, Claude, Gemini, and DeepSeek by input price, output price, cached-input behavior, context needs, latency, quality, and cost per successful task. Always verify current provider pricing before launch or procurement decisions.

Monthly spend control

How to control monthly xAI API spend.

Estimate before launch

Model a normal, high, and worst-case month with expected requests, input tokens, output tokens, retries, and model routes before exposing a feature to real traffic.

Set budget limits

Decide which app, workspace, customer tier, or internal team can spend against the provider budget. Review burn rate weekly during launches and pricing changes.

Reduce avoidable tokens

Shorten repeated instructions, cap output length, avoid sending full history when a summary works, and route routine tasks to lower-cost models when quality testing supports it.

Official sources

Source URLs used for this provider.

Cost examples

1M input tokens
$1.25
Model
Grok 3
1M output tokens
$2.50
Model
Grok 3
10M input + 2M output
$17.50
Model
Grok 3

Calculate a workload with xAI pricing context.

The existing calculator route is linked directly without invented provider or model query parameters.

Estimate Your AI API Cost
xAI API pricing FAQ

xAI API pricing FAQ

How much does the xAI API cost?

xAI API cost depends on the selected model, input tokens, output tokens, request volume, retries, and any cached input when available or discount rules that apply. Use the pricing table and calculator with your own workload assumptions instead of relying on a single average price.

How do I estimate monthly xAI API cost?

Estimate one request with input tokens, expected output tokens, model choice, and current per-1M-token pricing. Then multiply by requests per user, active users, days per month, retry rate, and fallback calls.

Which xAI models are usually used for?

Grok models are usually evaluated for workflows such as general assistants, reasoning-heavy tasks, multi-provider routing. The best route depends on quality, latency, context size, output length, and monthly budget.

Is xAI cheaper than OpenAI, Claude, or Gemini?

xAI can be cheaper or more expensive depending on the exact model, prompt size, output length, cache eligibility, retry rate, and quality target. Compare total workflow cost across providers before switching production traffic.

Why are some xAI prices shown as Not listed?

Not listed means the current local pricing source does not expose a confirmed numeric value for that field. It is intentionally not treated as zero. Check the official xAI pricing page and billing dashboard before launch.

How can I control monthly xAI API spend?

Control spend by setting monthly budget limits, measuring input and output tokens separately, capping output length, reducing repeated context, reviewing retry cost, and comparing model routes before high-volume traffic grows.