This model was retired on 2026-05-15. The pricing below is the last-known rate, kept for migration reference.

Grok 4 LatestDeprecated

xAI
Tool usePrompt cachingWeb search
Context
256K
Max output
256K
Serving providers
1
Cheapest input
$3.00 /1M
Prices are on-demand list rates. Enterprise commitments (committed-use discounts, provisioned throughput, negotiated rates) can be materially lower.

Pricing by serving provider

last-known · per 1M tokens · click a provider to expand
Serving providerInput /1MOutput /1MEndpoints
xAI$3.00$15.001

Price history

input + output $/1M since we started tracking
Input Output
$0.000$5.00$10.00$15.00Jul 10Jun 22$15.00$3.00

Cost calculator

estimate your monthly spend on this model
$1,800
estimated / month

Model IDs

copy the exact identifier for your platform
xai/grok-4-latest

Frequently asked questions

Grok 4 Latest pricing, context and availability

Is Grok 4 Latest still available?

Grok 4 Latest was retired on 2026-05-15. The pricing on this page is the last-known rate, kept for migration reference.

How much did Grok 4 Latest cost?

Grok 4 Latest's last-known pricing, before it was retired on 2026-05-15, was $3.00 per 1M input tokens and $15.00 per 1M output tokens.

What was the context window of Grok 4 Latest?

Grok 4 Latest had a 256K token context window and could return up to 256K output tokens.

What could Grok 4 Latest do?

Grok 4 Latest supported tool use, prompt caching and web search.

Other xAI models

compare pricing across the xAI lineup
Pricing verified against LiteLLM + OpenRouter + provider pages · refreshed daily

Every weekday

AI moves fast. Here's your debrief.

News, analysis, tools, and more.

For people who build with AI