Grok Code Fast 1 pricing

Grok Code Fast 1 is an API model from xAI. It costs $1.00 per million input tokens and $2.00 per million output tokens, with a 256K-token context window. At a blended $1.25 per million tokens it ranks #14 cheapest of 46 tracked models (mid-range band).

Input / 1M tokens
$1.00
Output / 1M tokens
$2.00
Cached input / 1M
$0.20
Blended (3:1)
$1.25
Context window
256K
Max output
256K
Vision · Tools · Reasoning
Yes · Yes · Yes
Listed since
Aug 30, 2025

What it costs

WorkloadPer 1,000 requests
Chatbot reply2,000 input + 500 output tokens$3.00
RAG / search answer8,000 input + 700 output tokens$9.40
Long-document summary100,000 input + 2,000 output tokens$104.00

Price history

InputOutput
$0$0.600$1.20$1.80$2.40Oct 25Jan 26Apr 26Jul 26Oct 26$1.00$2.00
First observedInputOutputChange
Aug 16, 2026$1.00$2.00+138% blended
Aug 30, 2025$0.20$1.50listed

Dates are the week a price first appeared in the public price list we track, not necessarily the provider's announcement date.

Compare

Similarly priced

Prices are the provider's list prices for its own API (USD), taken daily from LiteLLM's public model price list. Discounts for batch processing, caching or committed use, and regional or cloud-marketplace pricing, aren't reflected. Check the provider before estimating production costs. See also the TW Model Price Index.