xAI Grok API pricing

xAI Grok API pricing: current per-token rates

Short answer

xAI Grok's current API rates per 1M tokens, input / output / cached-read, verified 2026-07-23. Every rate links to its official source.

Current xAI Grok model prices

ModelInput ($/1M)Output ($/1M)Cached in ($/1M)Context
Grok 4.20$1.25$2.50$0.202M
Grok 4.3$1.25$2.50$0.201M
Grok 4.5$2$6$0.30500K

Non-official data by OpenRouter (passthrough pricing — the provider’s own rate, no markup); verify against the provider's own page before relying on it.

Common questions

Can I use the xAI Grok API for free?

No — API access is metered per token at the rates above. Subscriptions (where offered) bundle usage into a flat monthly price; the API itself is pay-as-you-go.

Which model is cheapest?

The lowest input/output rate in the table above for light work; match the model to the task rather than defaulting to the cheapest — routing the hard steps up and the cheap steps down usually beats a single choice.

Sources & provenance

Prices change. Verified 2026-07-23 — re-check the source before relying on them. Corrections: hello@aiarch.dev.