Home/xAI/Grok 4
xAI pricing

Grok 4 Cost Calculator

Grok 4 is xAI's flagship with native X (Twitter) integration for real-time information and reasoning. 256K context, strong at current-events queries that other models can't answer.

Input
$3.00
per 1M tokens
Output
$15.00
per 1M tokens
Context window
256K
tokens
Released
2025-07
Cutoff 2025-04
≈ Estimated tokenizer·$3.00 in·$15.00 out (per 1M)
Quick start with a use case
Total cost per call$0.0105
Input$0.003000
Output$0.007500
Cost comparison
Standard
$0.0105
With Caching
Not supported
With Batch
Not supported
Detailed pricing

Grok 4 pricing breakdown

All pricing dimensions including caching and batch discounts.

TypePrice (per 1M tokens)
Input$3.0000
Output$15.0000

Last verified 2026-05-12 · xAI official pricing · ⚠️ Spotted a wrong price? Report in 30s →

How it compares

Grok 4 vs alternatives

Single-call cost (1000 input + 500 output tokens) ranked from cheapest.

ModelPer call
Grok 4
xAI · this page
$0.0105
DeepSeek V3.2
DeepSeek
$0.000480
GPT-5 mini
OpenAI
$0.001250
Mistral Large 3
Mistral
$0.001250
Gemini 3 Flash
Google
$0.002000
o4-mini
OpenAI
$0.003300
Recommended use

When to choose Grok 4

Grok 4 shines for general-purpose tasks, complex multi-step reasoning, tasks needing real-time information, and image and document understanding. Token counts are estimated within ~10-20% margin.

Context window of 256K tokens handles long conversations and large documents.
Prompt caching available — significant savings for repeated system prompts.
Tool / function calling supported.
FAQ

Frequently asked questions

Grok 4 costs $3.00 per 1M input tokens and $15.00 per 1M output tokens. A typical chat call (1000 input + 500 output tokens) costs approximately $0.0105. Use the calculator above to estimate your specific use case.