Grok 4
Pricing & Specs

xAI · $3 input / $15 output per 1M tokens · 256K context window

$3
per 1M input tokens
$15
per 1M output tokens
256K
context window (tokens)

The per-token price never tells the full story. A typical task (1K input + 500 output tokens) on Grok 4 costs about $0.0105 — roughly $10.50 per 1,000 runs. But if it needs 3x the tokens of a cheaper model to match quality on YOUR task, the economics flip. The only way to know is to benchmark it on your actual workload.

Grok 4 API Pricing

TokensPrice
Input$3 / 1M tokens
Output$15 / 1M tokens
Cached input$0.75 / 1M tokens

Cached tokens pricing is available for this model.

What that means in practice

1x One typical task (1K input + 500 output tokens): $0.0105
1K 1,000 runs of that task: $10.50
💡 Real cost depends on how verbose the model is on YOUR prompts — benchmark to measure actual tokens, not estimates.

Grok 4 Specs

SpecValue
Context window256K tokens
Input modalitiestext, image
Output modalitiestext
Latency (measured by OpenMark)~5.2s median response
Reasoning modelYes
Tool / function callingYes
JSON modeYes
StreamingYes
Prompt cachingYes

Capabilities

text generation vision reasoning function calling structured outputs streaming live search

FAQ

How much does Grok 4 cost?

Grok 4 costs $3 per 1M input tokens and $15 per 1M output tokens ($0.75 per 1M cached input tokens).

What is Grok 4's context window?

Grok 4 has a 256K-token context window.

Can I test Grok 4 on my own task?

Yes. OpenMark lets you benchmark Grok 4 against 100+ models on your own task with real API calls — no API keys needed, free tier available.

Is Grok 4 the right model for YOUR task?

Pricing tables can't answer that. Benchmark it against 100+ models
on your actual workload — real API calls, real costs. Free tier available.

Benchmark Grok 4 — Free →