xAI Grok API API pricing
Frontier Grok models with large context and OpenAI/Anthropic-compatible SDKs, self-serve from a single key.
No free tierBilled per token·Verified Jun 27, 2026
Free tier
Pay-as-you-go; periodic free-credit / data-sharing promos (no guaranteed standing free tier)
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. |
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, as we saw it

Source: https://x.ai/api. Prices change. Confirm on the vendor page before you commit.
Other LLM APIs
OpenAI API · Anthropic Claude API · Google Gemini API · Mistral La Plateforme · Groq · DeepSeek API