Open API PricingOpen API Pricing

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
xAI Grok API API pricing at a glance: grok-4.3 (flagship) $1.25 / $2.50 per 1M, grok-4.20 reasoning / non-reasoning $1.25 / $2.50 per 1M, grok-build-0.1 (coding agent) $1.00 / $2.00 per 1M, Grok 4 (legacy / launch) $3.00 / $15.00 per 1M
Free tier

Pay-as-you-go; periodic free-credit / data-sharing promos (no guaranteed standing free tier)

Plans and prices

PlanPriceWhat it covers
grok-4.3 (flagship)$1.25 / $2.50 per 1MInput / output per million tokens; cached input ~$0.20/1M. 1M-token context.
grok-4.20 reasoning / non-reasoning$1.25 / $2.50 per 1MReasoning and standard variants on the 4.20 series, 1M context.
grok-build-0.1 (coding agent)$1.00 / $2.00 per 1MLower-cost SKU aimed at the Grok Build terminal coding agent, 256k context.
Grok 4 (legacy / launch)$3.00 / $15.00 per 1MOriginal 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 videoImage and video generation pricing.
Grok Voice API$0.05/min realtime; $15/1M chars TTS; ~$0.10/hr STTRealtime audio, text-to-speech, and speech-to-text endpoints.

What to watch for on the bill

The pricing page, as we saw it

xAI Grok API pricing page, captured for reference
Capture of x.ai. Captured from Germany, so some vendors show local prices or currency. Listed prices are verified Jun 27, 2026. The live page may differ.

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

Read the xAI Grok API pricing guideQuality score on APIbenchmarks →