Grok API pricing, checked at the source
Prices for xAI's Grok models, read off xAI's own pricing docs with a link on every row. Estimate a monthly bill below, with caching and batch.
Grok API prices per 1M tokens
Standard prices in USD. Each row links to xAI's pricing page and shows the day we checked it.
| Model | Input | Cached input | Output | Batch API (in / out) | Notes | Source |
|---|---|---|---|---|---|---|
| grok-4.7prompts under 200k | $2.00 | $0.50 | $6.00 | $1.60 / $4.80 | Flagship. Batch 20% off. Tool calls such as Web Search add $5 per 1k calls. | Sourcechecked 2026-10-25 |
| grok-4.7prompts 200k and over | $4.00 | $1.00 | $12.00 | $3.20 / $9.60 | Sourcechecked 2026-10-25 | |
| grok-4.6prompts under 200k | $2.00 | $0.50 | $6.00 | $1.60 / $4.80 | Over 200k: $4 / $1 / $12. | Sourcechecked 2026-10-25 |
| grok-4.5prompts under 200k | $2.00 | $0.30 | $6.00 | $1.60 / $4.80 | Over 200k: $4 / $0.60 / $12. | Sourcechecked 2026-10-25 |
| grok-4.3prompts under 200k | $1.25 | $0.20 | $2.50 | $1.00 / $2.00 | 1M context. Over 200k: $2.50 / $0.40 / $5. | Sourcechecked 2026-10-25 |
| grok-4.20-0309-reasoningprompts under 200k | $1.25 | $0.20 | $2.50 | $1.00 / $2.00 | Over 200k: $2.50 / $0.40 / $5. | Sourcechecked 2026-10-25 |
| grok-4.20-0309-non-reasoningprompts under 200k | $1.25 | $0.20 | $2.50 | $1.00 / $2.00 | Over 200k: $2.50 / $0.40 / $5. | Sourcechecked 2026-10-25 |
| grok-build-0.1prompts under 200k | $1.00 | $0.20 | $2.00 | none listed | No batch discount. Over 200k: $2 / $0.40 / $4. | Sourcechecked 2026-10-25 |
Terms on this page: Token · Prompt caching · Context window · Batch API
Estimate your xAI bill
Enter your monthly tokens and how they split between new input, cached input and output. The result updates as you type.
Write 40k, 250M or 5B. Input, cached input and output tokens together.
100M tokens a month costs from $58.60 (grok-build-0.1) to $133.00 (grok-4.6).
| Model | Per month | Per 1M tokens at this split |
|---|---|---|
| grok-build-0.1prompts under 200k | $58.60 | $0.586 |
| grok-4.3prompts under 200k | $70.35 | $0.7035 |
| grok-4.20-0309-reasoningprompts under 200k | $70.35 | $0.7035 |
| grok-4.20-0309-non-reasoningprompts under 200k | $70.35 | $0.7035 |
| grok-4.5prompts under 200k | $121.40 | $1.214 |
| grok-4.7prompts under 200k | $133.00 | $1.33 |
| grok-4.6prompts under 200k | $133.00 | $1.33 |
Standard prices in USD on 2026-10-25, before tax. Long-prompt tiers are left out; see the price table.
xAI speech to text prices
Prices as the vendor lists them, with a per-hour column so rows compare. Add-ons such as speaker labels cost extra; see the billing notes.
| Model | Price as listed | Per hour | Notes | Source |
|---|---|---|---|---|
| Speech to Text (REST) | $0.10 per hour | $0.10 | Sourcechecked 2026-10-25 | |
| Speech to Text (Streaming) | $0.20 per hour | $0.20 | Sourcechecked 2026-10-25 |
Write 40, 250 or 5k.
100 hours of audio a month costs from $10.00 (Speech to Text (REST)) to $20.00 (Speech to Text (Streaming)).
| Model | Per month | Per hour |
|---|---|---|
| Speech to Text (REST) | $10.00 | $0.10 |
| Speech to Text (Streaming) | $20.00 | $0.20 |
List prices in USD on 2026-10-25, before tax, free tiers and add-ons. Rows billed another way are in the price table only.
xAI text to speech prices
Prices as the vendor lists them, with a per-1M-characters column so rows compare.
| Model | Price as listed | Per 1M characters | Notes | Source |
|---|---|---|---|---|
| Text to Speech | $15.00 per 1M characters | $15.00 | Sourcechecked 2026-10-25 |
xAI image generation prices
Prices per image where the vendor lists one. Rows billed per megapixel or per token show how they bill instead.
| Model | Price as listed | Per image | Notes | Source |
|---|---|---|---|---|
| grok-imagine-image | $0.02 per image | $0.02 | Sourcechecked 2026-10-25 | |
| grok-imagine-image-2.0 | $0.04 per image | $0.04 | Sourcechecked 2026-10-25 | |
| grok-imagine-image-quality | $0.05 per image | $0.05 | Docs list an 'Imagine Image Quality Retirement (Nov 2, 2026)' migration guide. | Sourcechecked 2026-10-25 |
Write 500, 10k or 1M.
1k images a month costs from $20.00 (grok-imagine-image) to $50.00 (grok-imagine-image-quality).
| Model | Per month | Per image |
|---|---|---|
| grok-imagine-image | $20.00 | $0.02 |
| grok-imagine-image-2.0 | $40.00 | $0.04 |
| grok-imagine-image-quality | $50.00 | $0.05 |
List prices in USD on 2026-10-25, before tax, free tiers and add-ons. Rows billed another way are in the price table only.
How the bill is worked out
Long prompts cost double
Batch and priority
US region premium
Tool fees
Grok API pricing questions
How much does the Grok API cost?
xAI bills its language models per million tokens, with separate prices for input, cached input and output. On 2026-10-25, standard prices ran from $1.00 (grok-build-0.1) to $2.00 (grok-4.5) per 1M input tokens, and $2.00 (grok-build-0.1) to $6.00 (grok-4.5) per 1M output tokens. Speech to text runs from $0.10 (Speech to Text (REST)) to $0.20 (Speech to Text (Streaming)) per hour. Text to speech runs from $15.00 per 1M characters. Image generation runs from $0.02 (grok-imagine-image) to $0.05 (grok-imagine-image-quality) per image.
Does xAI offer a batch discount?
On some models. Batch API prices are listed for grok-4.7, grok-4.7, grok-4.6, grok-4.5, grok-4.3, grok-4.20-0309-reasoning, grok-4.20-0309-non-reasoning. The price table shows which rows have one.
Where do these prices come from?
From xAI's own pricing page, https://docs.x.ai/developers/pricing, checked on 2026-10-25. Every row links to it. When a price cannot be confirmed, the row says to check the vendor's page instead of showing a number.
How much do Grok's server-side tools cost?
Each call is billed on top of tokens: Web Search and Code Execution are $5 per 1,000 calls, Collections Search $2.50 per 1,000, and X Search $5 per 1,000 posts. A request blocked for a usage-guideline violation before generation is charged $0.05.
Compare and plan
Building with the Grok API? OceanLab builds AI into business workflows, with people kept in charge. AI automation →