xAI: Grok Code Fast 1
Grok Code Fast 1 is a reasoning model from xAI released on Aug 25, 2024. It reads text and writes text, with a 256K token context window and up to 128K tokens per reply.
Show moreShow less
It costs $0.20 per million input tokens and $1.50 per million output tokens. Cached input bills at $0.02, 90% less than fresh input.
It supports tool calling, structured JSON output and prompt caching.
6 providers serve it, including Jiekou.AI, Abacus and FrogBot. The lowest input price is $0.18 per million tokens at Jiekou.AI.
- Modalities
- In / out price
- $0.20 / $1.50 per 1M
- Context
- 256K
- Max output
- 128K
- Released
- Aug 25, 2024
- Knowledge cutoff
- n/a
- Tool calling
- Structured output
- Reasoning
- Prompt caching
- Open weights
- Free to use
Grok Code Fast 1 pricing
USD, as listed on Oct 15, 2026. Most bills are input heavy, so the cached input rate matters as much as the headline price.
| Input | $0.20 / 1M tokens | |
|---|---|---|
| Output | $1.50 / 1M tokens | |
| Cached input (read) | $0.02 / 1M tokens | 90% off input |
Grok Code Fast 1 providers
6 providers serve it, including Jiekou.AI, Abacus and FrogBot. The lowest input price is $0.18 per million tokens at Jiekou.AI. Each host sets its own price and limits, so the cheapest one is not always the one with the longest context.
| Provider | Input /M | Output /M | Cache read /M | Context | Max output |
|---|---|---|---|---|---|
| Jiekou.AI | $0.18 | $1.35 | – | 256K | 256K |
| Abacus | $0.20 | $1.50 | – | 256K | 16K |
| FrogBot | $0.20 | $1.50 | $0.02 | 256K | 128K |
| Helicone | $0.20 | $1.50 | $0.02 | 256K | 10K |
| Poe | $0.20 | $1.50 | $0.02 | 256K | 128K |
| Qiniu | n/a | n/a | – | 256K | 10K |
What Grok Code Fast 1 costs per month
Pick a workload close to yours or type your own volumes.
Supported request parameters
What you can set when you call Grok Code Fast 1 through an OpenAI compatible API.
- Tools
tools - Structured outputs
structured_outputs - Reasoning
reasoning
Alternatives to Grok Code Fast 1
Models that take the same inputs and call tools, closest in price, cheaper ones first.
- Index 29.2
Reads text, images and video. Tool calling, structured output, reasoning. Served by 42 providers.
by minimaxMay 31, 20261M context$0.30/M input tokens$1.20/M output tokens42 providers
- 1.05M context
Reads text, images and files. Tool calling, structured output, reasoning. Served by 39 providers.
by openaiJul 9, 2026$0.20/M input tokens$1.20/M output tokens39 providers
- 524K context
Reads text. Tool calling, structured output, reasoning. Served by 5 providers.
by upstageAug 6, 2026$0.30/M input tokens$1.20/M output tokens5 providers
- 512K context
Reads text. Tool calling, structured output, reasoning. Served by 3 providers.
by minimaxMay 3, 2026$0.30/M input tokens$1.20/M output tokens3 providers
- 205K context
Reads text. Tool calling, structured output, reasoning. Served by 35 providers.
by minimaxMar 18, 2026$0.30/M input tokens$1.20/M output tokens35 providers
- 205K context
Reads text. Tool calling, structured output, reasoning. Served by 17 providers.
by minimaxDec 22, 2025$0.30/M input tokens$1.20/M output tokens17 providers
More from xAI
- 1K context
Generates video from text, images and files. Served by 2 providers.
by x-aiOct 1, 20262 providers
- Index 46.5
Reads text, images and files. Tool calling, structured output, reasoning. Served by 22 providers.
by x-aiSep 16, 2026500K context$2/M input tokens$6/M output tokens22 providers
- 500K context
Reads text, images and files. Tool calling, structured output, reasoning. Served by 29 providers.
by x-aiAug 10, 2026$2/M input tokens$6/M output tokens29 providers
- 66K context
Generates images from text and images. Served by 3 providers.
by x-aiAug 7, 2026$0/M input tokens$0/M output tokens3 providers
Grok Voice STT 1.0
Transcription15K contextTurns speech into text.
by x-aiAug 4, 2026
Grok Voice TTS 1.0
Speech15K contextTurns text into spoken audio.
by x-aiJul 31, 2026
Grok Code Fast 1 questions
How much does the Grok Code Fast 1 API cost?
$0.20 per million input tokens and $1.50 per million output tokens, with cached input at $0.02. The estimator on this page turns that into a monthly bill for your own workload.
What is the context window of Grok Code Fast 1?
256,000 tokens of input, and it can write up to 128,000 tokens in one reply. As a rough guide, a million tokens is around 750,000 English words.
Which providers serve Grok Code Fast 1?
6 providers serve it, including Jiekou.AI, Abacus and FrogBot. The lowest input price is $0.18 per million tokens at Jiekou.AI. Prices differ by host, so the Providers table on this page lists each one with its input and output price.
Does Grok Code Fast 1 support tool calling?
Yes. It accepts tool definitions and can return JSON that matches a schema, which is what an agent needs to call your APIs.
Is Grok Code Fast 1 open source?
No. xAI serves it through an API only, so you cannot download the weights or host it yourself.
When was Grok Code Fast 1 released?
Aug 25, 2024.
Catalog data from models.dev (MIT licensed), refreshed daily, last on Oct 15, 2026. The summary is written from these facts.
Building on Grok Code Fast 1?
I test your real tasks on it and the two closest alternatives, then ship the agent on whichever wins on cost and accuracy.
Book Meeting