Skip to content
API pricing

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.

7
Models priced
$1.00
Lowest input / 1M
$2.00
Lowest output / 1M
2026-10-25
Prices checked
Prices

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.

Grok API prices in USD per 1M tokens, checked 2026-10-25
ModelInputCached inputOutputBatch API (in / out)NotesSource
grok-4.7prompts under 200k$2.00$0.50$6.00$1.60 / $4.80Flagship. 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.60Sourcechecked 2026-10-25
grok-4.6prompts under 200k$2.00$0.50$6.00$1.60 / $4.80Over 200k: $4 / $1 / $12.Sourcechecked 2026-10-25
grok-4.5prompts under 200k$2.00$0.30$6.00$1.60 / $4.80Over 200k: $4 / $0.60 / $12.Sourcechecked 2026-10-25
grok-4.3prompts under 200k$1.25$0.20$2.50$1.00 / $2.001M 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.00Over 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.00Over 200k: $2.50 / $0.40 / $5.Sourcechecked 2026-10-25
grok-build-0.1prompts under 200k$1.00$0.20$2.00none listedNo batch discount. Over 200k: $2 / $0.40 / $4.Sourcechecked 2026-10-25

Terms on this page: Token · Prompt caching · Context window · Batch API

Estimator

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.

Token split (%)

100M tokens a month costs from $58.60 (grok-build-0.1) to $133.00 (grok-4.6).

ModelPer monthPer 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.

Speech to text

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.

xAI speech to text prices in USD, checked 2026-10-25
ModelPrice as listedPer hourNotesSource
Speech to Text (REST)$0.10 per hour$0.10Sourcechecked 2026-10-25
Speech to Text (Streaming)$0.20 per hour$0.20Sourcechecked 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)).

ModelPer monthPer 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.

Text to speech

xAI text to speech prices

Prices as the vendor lists them, with a per-1M-characters column so rows compare.

xAI text to speech prices in USD, checked 2026-10-25
ModelPrice as listedPer 1M charactersNotesSource
Text to Speech$15.00 per 1M characters$15.00Sourcechecked 2026-10-25
Image generation

xAI image generation prices

Prices per image where the vendor lists one. Rows billed per megapixel or per token show how they bill instead.

xAI image generation prices in USD, checked 2026-10-25
ModelPrice as listedPer imageNotesSource
grok-imagine-image$0.02 per image$0.02Sourcechecked 2026-10-25
grok-imagine-image-2.0$0.04 per image$0.04Sourcechecked 2026-10-25
grok-imagine-image-quality$0.05 per image$0.05Docs 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).

ModelPer monthPer 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.

Billing

How the bill is worked out

Long prompts cost double

For models with two rows, a request whose prompt reaches 200k tokens is billed at the higher rate for all tokens in that request.

Batch and priority

Batch API is 20% off for grok-4.7, 4.6, 4.5, 4.3 and the grok-4.20-0309 models, usually done within 24 hours. Priority processing costs 2x standard rates.

US region premium

The US regional endpoint (us.api.x.ai) bills tokens at 1.1x global rates. Only grok-4.7 and grok-4.6 are available there.

Tool fees

Server-side tools add per-call fees: Web Search $5 per 1k calls, Code Execution $5 per 1k, Collections Search $2.50 per 1k, X Search $5 per 1k posts and $10 per 1k profiles. A request blocked for usage-guideline violation before generation is charged $0.05.
FAQ

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.

Related

Compare and plan

LLM API cost calculatorPrice one workload across every vendor and model at once.Prompt caching savingsSee what caching a long system prompt saves each month.Voice agent costSpeech to text, an LLM and text to speech, priced per call.LLM API pricing comparedEvery model from 18 vendors in one sortable table.Speech to text pricing comparedEvery speech to text price we track, side by side.Text to speech pricing comparedEvery text to speech price we track, side by side.Image generation pricing comparedEvery image generation price we track, side by side.All pricing pagesEvery vendor we track, with the day each was checked.OpenAI API pricing10 models and 20 other prices, checked 2026-10-25.Claude API pricing9 models, checked 2026-10-25.Gemini API pricing9 models and 9 other prices, checked 2026-10-25.DeepSeek API pricing2 models, checked 2026-10-25.MiniMax API pricing2 models, checked 2026-10-25.Qwen API pricing10 models and 2 other prices, checked 2026-10-25.Amazon Bedrock pricing10 models and 7 other prices, checked 2026-10-25.Azure OpenAI pricing9 models and 7 other prices, checked 2026-10-25.Cohere API pricing5 models and 2 other prices, checked 2026-10-25.Fireworks AI API pricing10 models and 3 other prices, checked 2026-10-25.Vertex AI pricing10 models and 4 other prices, checked 2026-10-25.Groq API pricing4 models and 4 other prices, checked 2026-10-25.Mistral API pricing9 models and 6 other prices, checked 2026-10-25.OpenRouter API pricing10 models, checked 2026-10-25.Perplexity API pricing6 models and 4 other prices, checked 2026-10-25.Replicate API pricing10 models and 12 other prices, checked 2026-10-25.Together AI API pricing10 models and 11 other prices, checked 2026-10-25.

Building with the Grok API? OceanLab builds AI into business workflows, with people kept in charge. AI automation →

START YOUR CONVERSATION

Your Next Mission-Critical
System Starts Here

Speak with a senior engineer about your requirements. No sales process, just a direct technical conversation about what you need to build.

OceanLab

Enterprise Software Engineering - Human + AI

Languages

Locations

Global Headquarters

21 Merchant Road, 3rd Floor, Singapore 058267

Main corporate office and leadership operations

North America Office

548 Market Street, PMB 12472, San Francisco, CA 94104

Client operations and business development

India Office

402 Shivalik Shilp II, SG Highway, Ahmedabad 380015

Engineering and delivery center

© 2026 - Copyright. All Rights reserved OceanLab