Deprecated on May 15, 2026. 1 provider still lists it at the prices below.
Context
256K
Max output
256K
Serving providers
1
Cheapest input
$1.00 /1M
On-demand listed rates, OpenRouter routed quotes and Vercel reseller quotes. Enterprise commitments (committed-use discounts, provisioned throughput, negotiated rates) can be materially lower.

Pricing by serving provider

standard tier · per 1M tokens · click a provider to expand
Serving providerInput /1MOutput /1MEndpoints
xAICheapest$1.00$2.001
Standardxai/grok-code-fast
ComponentUnitStandard
Text cached in/1M tok$0.20
Text input/1M tok$1.00
Text output/1M tok$2.00

Price history

listed seller prices, input and output per 1M tokens
Input Output
$0.00$0.50$1.00$1.50$2.00Aug 29Jun 22Aug 12$2.00$1.00

Cost calculator

estimate your monthly spend on this model
$360
estimated / month

Model IDs

copy the exact identifier for your platform
xai/grok-code-fast

Frequently asked questions

Grok Code Fast pricing, context and availability

Is Grok Code Fast still available?

Grok Code Fast was deprecated on 2026-05-15, but 1 serving provider still list it.

How much does Grok Code Fast cost?

Grok Code Fast costs $1.00 per 1M input tokens from xAI, and $2.00 per 1M output tokens from xAI.

What is the context window of Grok Code Fast?

Grok Code Fast accepts up to 256K tokens of context and can return up to 256K output tokens.

What can Grok Code Fast do?

Grok Code Fast supports image input (vision), tool use, reasoning, prompt caching and structured output.

Other xAI models

compare pricing across the xAI lineup
Listed prices from LiteLLM, OpenRouter and Vercel · last checked Oct 14, 2026

Every weekday

AI moves fast. Here's your debrief.

News, analysis, tools, and more.

For people who build with AI