xai/grok-code-fast

xAI text

xai/grok-code-fast

Input

$1.00

per 1M input tokens

Output

$2.00

per 1M output tokens

Cache read

$0.2000

per 1M cached read tokens

Cache write

n/a

per 1M cache write tokens

Context window

256,000

Max output

256,000

Effective date

Aug 12, 2026

Estimate a workload

Enter token counts to see the cost at this model's rates.

Estimated cost: $0.00

Price history

blended $ per 1M tokens (3:1)
$0.44 $0.74 $1.04 $1.34 Jun 15, 2026: $0.53 Aug 12, 2026: $1.25 Jun 15, 2026 Aug 12, 2026
Effective Input Output Blended
Aug 12, 2026 $1.00 $2.00 $1.25
Jun 15, 2026 $0.20 $1.50 $0.53

Source: litellm. Confirm against the provider's official pricing before relying on these figures.