All prices › xAI › Grok Code Fast 1

Grok Code Fast 1 API pricing

As of October 16, 2026, Grok Code Fast 1 costs $1.00 per million input tokens and $2.00 per million output tokens on the xAI API. Cached input is $0.20 per million.

New Sep 22

It is the 2nd cheapest of 7 Grok models tracked here, by blended price. The closest Standard-tier model from another provider is Mistral Large 4 (Mistral) at $0.68 / $2.09; Grok Code Fast 1 is 21% more expensive. Same list price as Grok Build 0.1. First listed in the LiteLLM price data on August 28, 2025. Prompts longer than 200K tokens are billed at $2.00 input / $4.00 output.

Input / 1M tokens$1.00
Output / 1M tokens$2.00
Context window256K
Max output256K

Every published rate

RatePer 1M tokens
Input (standard)$1.00
Output (standard)$2.00
Cached input (read)$0.20
Input, prompts over 200K tokens$2.00
Output, prompts over 200K tokens$4.00

What it costs in practice

TaskTokensPer requestPer 1,000 requests
Chatbot reply1,000 in / 500 out$0.002$2.00
Summarize a long document20,000 in / 1,000 out$0.02$22.00
Coding agent step50,000 in / 2,000 out$0.05$54.00

Standard rates, no caching or batch discount; prompts over 200K tokens are billed at the higher long-prompt rate. Compare your own numbers across all models →

Price history

DateModelChange
2026-09-22Grok Code Fast 1New model listed: $1 in / $2 out source
2026-08-20Grok Code Fast 1Removed from listings source
2026-08-10Grok Code Fast 1New model listed: $1 in / $2 out source
2026-06-05Grok Code Fast 1Removed from listings source
2025-08-28Grok Code Fast 1New model listed: $0.2 in / $1.5 out source

Dates are when each change first appeared in the LiteLLM price data, usually within days of the provider's announcement.

Details

ProviderxAI
Price tierStandard
FeaturesVision, Reasoning, Prompt caching, Tool use
API model namesgrok-code-fast, grok-code-fast-1, grok-code-fast-1-0825
Official pricingapi.x.ai

Models at a similar price

ModelInput / 1MOutput / 1M
Mistral Large 4$0.68$2.09
Grok Build 0.1$1.00$2.00
Gemini 3.6 Flash$0.75$3.75
Gemini 3.7 Flash$0.75$3.75
Gemini 3.8 Flash$0.75$3.75
Grok 4.20$1.25$2.50

Other xAI models

ModelInput / 1MOutput / 1M
Grok 4.5$2.00$6.00
Grok 4.6$2.00$6.00
Grok 4.7$2.00$6.00
Grok 4.20$1.25$2.50
Grok 4.3$1.25$2.50
Grok Build 0.1$1.00$2.00