Total prompt tokens
Total prompt tokens are regular input tokens plus cached input tokens. Both count toward the tier threshold.
xAI pricing rows include Grok model costs, retirement or redirect notes where present, and official xAI documentation links for current billing checks.
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.
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.
Open a model page for its verified source, workload examples, price history, lifecycle details, and nearby alternatives.
Null or unverified values are displayed as Not listed, never as zero.
| Model | Input | Output | Cached Input | Batch Input | Batch Output | Unit | Status |
|---|---|---|---|---|---|---|---|
Grok 3Model ID: grok-3Provider: xAIEvidence Verified: Checked: Official sources (4): Official source 1Official source 2Official source 3Official source 4 | Input · USD per 1M input tokens$1.25 | Output · USD per 1M output tokens$2.50 | Cached input · USD per 1M cached input tokens$0.200 | Batch input · USD per 1M input tokensNot listed | Batch output · USD per 1M output tokensNot listed | USD per 1M tokens | retiredRetired; 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 requestEvidence | Input · USD per 1M input tokens$1.25 | Output · USD per 1M output tokens$2.50 | Cached input · USD per 1M cached input tokens$0.200 | Batch input · USD per 1M input tokens$1.00 | Batch output · USD per 1M output tokens$2.00 | USD per 1M tokens | latestStandard |
Grok 4.20Model ID: grok-4.20-0309-reasoningProvider: xAIDisplayed pricing: Standard · Short context · <200k prompt tokens · whole requestEvidence | Input · USD per 1M input tokens$1.25 | Output · USD per 1M output tokens$2.50 | Cached input · USD per 1M cached input tokens$0.200 | Batch input · USD per 1M input tokens$1.00 | Batch output · USD per 1M output tokens$2.00 | USD per 1M tokens | latestStandard |
Grok 4.20 Multi-Agent BetaModel ID: grok-4.20-multi-agent-0309Provider: xAIDisplayed pricing: Standard · Short context · <200k prompt tokens · whole requestEvidence | Input · USD per 1M input tokens$1.25 | Output · USD per 1M output tokens$2.50 | Cached input · USD per 1M cached input tokens$0.200 | Batch input · USD per 1M input tokens$1.00 | Batch output · USD per 1M output tokens$2.00 | USD per 1M tokens | previewStandard |
Grok 4.3Model ID: grok-4.3Provider: xAIDisplayed pricing: Standard · Short context · <200k prompt tokens · whole requestEvidence Verified: Checked: Official sources (4): Official source 1Official source 2Official source 3Official source 4 | Input · USD per 1M input tokens$1.25 | Output · USD per 1M output tokens$2.50 | Cached input · USD per 1M cached input tokens$0.200 | Batch input · USD per 1M input tokens$1.00 | Batch output · USD per 1M output tokens$2.00 | USD per 1M tokens | activeStandard |
Grok 4.5Model ID: grok-4.5Provider: xAIDisplayed pricing: Standard · Short context · <200k prompt tokens · whole requestEvidence | Input · USD per 1M input tokens$2.00 | Output · USD per 1M output tokens$6.00 | Cached input · USD per 1M cached input tokens$0.300 | Batch input · USD per 1M input tokensNot listed | Batch output · USD per 1M output tokensNot listed | USD per 1M tokens | activeStandard |
Grok 4.6Model ID: grok-4.6Provider: xAIDisplayed pricing: Standard · Short context · <200k prompt tokens · whole requestEvidence Verified: Checked: Official sources (6): Official source 1Official source 2Official source 3Official source 4Official source 5Official source 6 | Input · USD per 1M input tokens$2.00 | Output · USD per 1M output tokens$6.00 | Cached input · USD per 1M cached input tokens$0.500 | Batch input · USD per 1M input tokensNot listed | Batch output · USD per 1M output tokensNot listed | USD per 1M tokens | latestStandard |
Grok 4.7Model ID: grok-4.7Provider: xAIDisplayed pricing: Standard · Short context · ≤200k prompt tokens · whole requestEvidence Verified: Checked: Official sources (4): Official source 1Official source 2Official source 3Official source 4 | Input · USD per 1M input tokens$2.00 | Output · USD per 1M output tokens$6.00 | Cached input · USD per 1M cached input tokens$0.500 | Batch input · USD per 1M input tokensNot listed | Batch output · USD per 1M output tokensNot listed | USD per 1M tokens | latestStandard |
Grok Build 0.1Model ID: grok-build-0.1Provider: xAIDisplayed pricing: Standard · Short context · <200k prompt tokens · whole requestEvidence | Input · USD per 1M input tokens$1.00 | Output · USD per 1M output tokens$2.00 | Cached input · USD per 1M cached input tokens$0.200 | Batch input · USD per 1M input tokensNot listed | Batch output · USD per 1M output tokensNot listed | USD per 1M tokens | activeCoding |
Grok Voice 2.0Model ID: grok-voice-2.0Provider: xAIEvidence | Input · USD per 1M input tokensNot listed | Output · USD per 1M output tokensNot listed | Cached input · USD per 1M cached input tokensNot listed | Batch input · USD per 1M input tokensNot listed | Batch output · USD per 1M output tokensNot listed | USD per 1M tokens | legacydeprecated |
Grok Voice 3.0Model ID: grok-voice-3.0Provider: xAIEvidence | Input · USD per 1M input tokensNot listed | Output · USD per 1M output tokensNot listed | Cached input · USD per 1M cached input tokensNot listed | Batch input · USD per 1M input tokensNot listed | Batch output · USD per 1M output tokensNot listed | USD per 1M tokens | latestactive |
Grok Voice Transcribe 1.0Model ID: grok-voice-transcribe-1.0Provider: xAIEvidence | Input · USD per 1M input tokensNot listed | Output · USD per 1M output tokensNot listed | Cached input · USD per 1M cached input tokensNot listed | Batch input · USD per 1M input tokensNot listed | Batch output · USD per 1M output tokensNot listed | USD per 1M tokens | retiredretired |
Grok Voice Transcribe 2.0Model ID: grok-voice-transcribe-2.0Provider: xAIEvidence | Input · USD per 1M input tokensNot listed | Output · USD per 1M output tokensNot listed | Cached input · USD per 1M cached input tokensNot listed | Batch input · USD per 1M input tokensNot listed | Batch output · USD per 1M output tokensNot listed | USD per 1M tokens | latestactive |
Use these xAI pricing rows as planning inputs: calculate your monthly API cost with realistic token counts, or compare this provider with other AI models before routing production traffic.
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 tier | Total prompt token rule | Regular input | Cached input | Output | Unit |
|---|---|---|---|---|---|
| Short contextshort | <200k prompt tokens | $1.25 | $0.200 | $2.50 | USD / 1M tokens |
| Long contextlong | ≥200k prompt tokens | $2.50 | $0.400 | $5.00 | USD / 1M tokens |
Total prompt tokens are regular input tokens plus cached input tokens. Both count toward the tier threshold.
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.
Grok 4.20 (Non-Reasoning)
Model ID: grok-4.20-0309-non-reasoning
Provider: xAI
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 tier | Total prompt token rule | Regular input | Cached input | Output | Unit |
|---|---|---|---|---|---|
| Short contextshort | <200k prompt tokens | $1.25 | $0.200 | $2.50 | USD / 1M tokens |
| Long contextlong | ≥200k prompt tokens | $2.50 | $0.400 | $5.00 | USD / 1M tokens |
Total prompt tokens are regular input tokens plus cached input tokens. Both count toward the tier threshold.
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.
Grok 4.20
Model ID: grok-4.20-0309-reasoning
Provider: xAI
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 tier | Total prompt token rule | Regular input | Cached input | Output | Unit |
|---|---|---|---|---|---|
| Short contextshort | <200k prompt tokens | $1.25 | $0.200 | $2.50 | USD / 1M tokens |
| Long contextlong | ≥200k prompt tokens | $2.50 | $0.400 | $5.00 | USD / 1M tokens |
Total prompt tokens are regular input tokens plus cached input tokens. Both count toward the tier threshold.
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.
Grok 4.20 Multi-Agent Beta
Model ID: grok-4.20-multi-agent-0309
Provider: xAI
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 tier | Total prompt token rule | Regular input | Cached input | Output | Unit |
|---|---|---|---|---|---|
| Short contextshort | <200k prompt tokens | $1.25 | $0.200 | $2.50 | USD / 1M tokens |
| Long contextlong | ≥200k prompt tokens | $2.50 | $0.400 | $5.00 | USD / 1M tokens |
Total prompt tokens are regular input tokens plus cached input tokens. Both count toward the tier threshold.
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.
Grok 4.3
Model ID: grok-4.3
Provider: xAI
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 tier | Total prompt token rule | Regular input | Cached input | Output | Unit |
|---|---|---|---|---|---|
| Short contextshort | <200k prompt tokens | $2.00 | $0.300 | $6.00 | USD / 1M tokens |
| Long contextlong | ≥200k prompt tokens | $4.00 | $0.600 | $12.00 | USD / 1M tokens |
Total prompt tokens are regular input tokens plus cached input tokens. Both count toward the tier threshold.
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.
Grok 4.5
Model ID: grok-4.5
Provider: xAI
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 tier | Total prompt token rule | Regular input | Cached input | Output | Unit |
|---|---|---|---|---|---|
| Short contextshort | <200k prompt tokens | $2.00 | $0.500 | $6.00 | USD / 1M tokens |
| Long contextlong | ≥200k prompt tokens | $4.00 | $1.00 | $12.00 | USD / 1M tokens |
Total prompt tokens are regular input tokens plus cached input tokens. Both count toward the tier threshold.
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.
Grok 4.6
Model ID: grok-4.6
Provider: xAI
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 tier | Total prompt token rule | Regular input | Cached input | Output | Unit |
|---|---|---|---|---|---|
| Short contextshort | ≤200k prompt tokens | $2.00 | $0.500 | $6.00 | USD / 1M tokens |
| Long contextlong | >200k prompt tokens | $4.00 | $1.00 | $12.00 | USD / 1M tokens |
Total prompt tokens are regular input tokens plus cached input tokens. Both count toward the tier threshold.
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.
Grok 4.7
Model ID: grok-4.7
Provider: xAI
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 tier | Total prompt token rule | Regular input | Cached input | Output | Unit |
|---|---|---|---|---|---|
| Short contextshort | <200k prompt tokens | $1.00 | $0.200 | $2.00 | USD / 1M tokens |
| Long contextlong | ≥200k prompt tokens | $2.00 | $0.400 | $4.00 | USD / 1M tokens |
Total prompt tokens are regular input tokens plus cached input tokens. Both count toward the tier threshold.
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.
Grok Build 0.1
Model ID: grok-build-0.1
Provider: xAI
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.
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 calculatorUse 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 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 providersUse cases are planning categories, not pricing promises. Estimate each workflow with its own token shape, expected answer length, quality requirement, and fallback behavior.
Grok routes may be evaluated for chat, research, summarization, and general assistant workflows.
For deeper reasoning tasks, estimate output length, retry behavior, and fallback calls instead of only comparing input token price.
Teams comparing xAI often model it as one route in a broader provider mix with OpenAI, Claude, Gemini, or DeepSeek.
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.
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.
Decide which app, workspace, customer tier, or internal team can spend against the provider budget. Review burn rate weekly during launches and pricing changes.
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.
The existing calculator route is linked directly without invented provider or model query parameters.
Pricing data is informational and may lag provider changes. Always verify final billing decisions against provider pricing pages, contracts, dashboards, and invoices.
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.
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.
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.
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.
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.
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.