macrostack

AI API price index · model maker · read 11 Nov 2026

xAI API pricing

22 prices as xAI publishes them — 16 text models, 2 speech to text, 1 text to speech, 1 voice agents, 2 images and documents — read on its own pricing page on 11 Nov 2026. Its current text models cost $2.00 to $6.00 per million output tokens.

Free tier No free tier or free credit is stated on the pricing page.

What to know before you build on xAI

  • Grok 4.7 costs $2.00 per 1M input tokens and $6.00 per 1M output; every listed model doubles all its rates once a prompt reaches 200k tokens.
  • The Batch API takes 20% off the Grok 4.x models; Priority Processing costs twice the standard rate.
  • The US regional endpoint costs 1.1x the global rate, and serves grok-4.7 and grok-4.6 only.
  • Server-side Web Search costs $5 per 1,000 calls, on top of the tokens the request uses.
  • The docs are now titled "SpaceXSI Docs"; the API is still served from api.x.ai.

Against the other 31

Across the index, 390 current text models run from $0.03 to $50.00 per million output tokens — 1667×. xAI’s cheapest, grok-build-0.1 at $2.00, has 218 cheaper text models elsewhere; its dearest, grok-4.7, costs $6.00. A cheaper model is a different model, not the same one for less — compare capability before price.

Speech to text across the index runs from $0.04 to $0.62 per audio hour; xAI’s Grok Speech to Text is $0.10.

Text to speech across the index runs from $11.00 to $100.00 per million characters; xAI’s cheapest ranked voice, Grok Text to Speech, is $15.00.

Text models

ModelInputCached inputOutputNote
grok-4.7$2.00$0.50$6.00—
grok-4.7$4.00$1.00$12.00Long context (prompt of 200k tokens or more) · Not ranked: long-prompt band; the index ranks the standard band.
grok-build-0.1$1.00$0.20$2.00—
grok-build-0.1$2.00$0.40$4.00Long context (prompt of 200k tokens or more) · Not ranked: long-prompt band; the index ranks the standard band.
grok-4.6$2.00$0.50$6.00—
grok-4.6$4.00$1.00$12.00Long context (prompt of 200k tokens or more) · Not ranked: long-prompt band; the index ranks the standard band.
grok-4.5$2.00$0.30$6.00—
grok-4.5$4.00$0.60$12.00Long context (prompt of 200k tokens or more) · Not ranked: long-prompt band; the index ranks the standard band.
grok-4.3$1.25$0.20$2.50—
grok-4.3$2.50$0.40$5.00Long context (prompt of 200k tokens or more) · Not ranked: long-prompt band; the index ranks the standard band.
grok-4.20-multi-agent-0309$1.25$0.20$2.50—
grok-4.20-multi-agent-0309$2.50$0.40$5.00Long context (prompt of 200k tokens or more) · Not ranked: long-prompt band; the index ranks the standard band.
grok-4.20-0309-reasoning$1.25$0.20$2.50—
grok-4.20-0309-reasoning$2.50$0.40$5.00Long context (prompt of 200k tokens or more) · Not ranked: long-prompt band; the index ranks the standard band.
grok-4.20-0309-non-reasoning$1.25$0.20$2.50—
grok-4.20-0309-non-reasoning$2.50$0.40$5.00Long context (prompt of 200k tokens or more) · Not ranked: long-prompt band; the index ranks the standard band.

Speech to text

ModelPriceNote
Grok Speech to Text$0.10 per hourREST (pre-recorded)
Grok Speech to Text (Streaming)$0.20 per hourStreaming

Text to speech

ModelPriceNote
Grok Text to Speech$15.00 per 1M characters—

Voice agents

ModelPriceNote
Speech to Speech (grok-voice-3.0)$0.08 per minutePlus $0.004 per text input

Images and documents

ModelPriceNote
grok-imagine-image$0.02 per image1K or 2K output
grok-imagine-image-2.0$0.04 per image1K, Low quality (up to $0.08 at 2K Medium)

11 of these 22 prices are ranked in the index; the rest say why in their note. Text and embeddings per 1M tokens unless the row says otherwise.

Discounts and surcharges, as published

  • Batch API: 20% off all token types (input, output, cached, reasoning) on grok-4.7, grok-4.6, grok-4.5, grok-4.3 and the three grok-4.20-0309 models; "Models not listed above have no batch discount." Most batch requests complete within 24 hours.
  • Cached input: grok-4.7 and grok-4.6 $0.50 per 1M tokens against $2.00 input; grok-4.5 $0.30; grok-4.3, grok-4.20 and grok-build-0.1 $0.20.
  • Priority Processing costs 2x standard rates on all token types (only when the response confirms "service_tier": "priority").
  • The US regional endpoint (us.api.x.ai) bills 1.1x the global rates; grok-4.7 and grok-4.6 only.

Where these numbers come from

Read on docs.x.ai/developers/pricing on 11 Nov 2026, checked against 1 more of xAI’s own pages. Macrostack measures nothing and is paid by no provider on this index. Prices change; the date is the claim.

The other providers in the index

Questions

How much does the xAI API cost?
On 11 Nov 2026, xAI's current text models cost $2.00 to $6.00 per million output tokens at the standard tier (grok-build-0.1 to grok-4.7). The full list, with input and cached-input prices, is on this page.
Does xAI have a free tier?
What xAI's own pages say: No free tier or free credit is stated on the pricing page.
Does xAI offer discounts?
Batch API: 20% off all token types (input, output, cached, reasoning) on grok-4.7, grok-4.6, grok-4.5, grok-4.3 and the three grok-4.20-0309 models; "Models not listed above have no batch discount." Most batch requests complete within 24 hours. Cached input: grok-4.7 and grok-4.6 $0.50 per 1M tokens against $2.00 input; grok-4.5 $0.30; grok-4.3, grok-4.20 and grok-build-0.1 $0.20. Priority Processing costs 2x standard rates on all token types (only when the response confirms "service_tier": "priority"). The US regional endpoint (us.api.x.ai) bills 1.1x the global rates; grok-4.7 and grok-4.6 only.
The Macrostack brief

New swaps, worth your inbox.

A short, occasional email when we add a high-intent alternative or ship a new head-to-head. No spam, no selling your address — unsubscribe in one click.