The short answer
xAI Grok API is billed per token. It has no free tier (Pay-as-you-go; periodic free-credit / data-sharing promos (no guaranteed standing free tier)). The paid plans we list start at $1.25 / $2.50 per 1M (grok-4.3 (flagship)).
Plans and prices
| Plan | Price | What it covers |
|---|---|---|
| grok-4.3 (flagship) | $1.25 / $2.50 per 1M | Input / output per million tokens; cached input ~$0.20/1M. 1M-token context. |
| grok-4.20 reasoning / non-reasoning | $1.25 / $2.50 per 1M | Reasoning and standard variants on the 4.20 series, 1M context. |
| grok-build-0.1 (coding agent) | $1.00 / $2.00 per 1M | Lower-cost SKU aimed at the Grok Build terminal coding agent, 256k context. |
| Grok 4 (legacy / launch) | $3.00 / $15.00 per 1M | Original July 2025 flagship pricing; now legacy/enterprise as newer SKUs supersede it. |
| Grok Imagine API | $0.02–$0.05 / image, $0.05–$0.08 / sec video | Image and video generation pricing. |
| Grok Voice API | $0.05/min realtime; $15/1M chars TTS; ~$0.10/hr STT | Realtime audio, text-to-speech, and speech-to-text endpoints. |
How xAI Grok API bills you
The pricing model is per token. Frontier Grok models with large context and OpenAI/Anthropic-compatible SDKs, self-serve from a single key. Best suited to: frontier models, x-integrated.
What to watch for on the bill
- Model and pricing catalog churns fast, models get renamed, retired, or moved to legacy, breaking durable integrations
The pricing page we read

Source: https://x.ai/api. Prices change, so confirm there before you commit.
Compare xAI Grok API with alternatives
Other llm apis: OpenAI API, Anthropic Claude API, Google Gemini API, Mistral La Plateforme, Groq.
Looking at quality rather than price? See the xAI Grok API score on APIbenchmarks. Full entry: xAI Grok API pricing.