xAI: grok-code-fast-1
grok-code-fast-1 is a reasoning model from xAI released on Aug 28, 2025. It reads text and writes text, with a 256K token context window and up to 10K 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.
4 providers serve it, including Jiekou.AI, FrogBot and Helicone. The lowest input price is $0.19 per million tokens at Jiekou.AI.
- Modalities
- In / out price
- $0.20 / $1.50 per 1M
- Context
- 256K
- Max output
- 10K
- Released
- Aug 28, 2025
- 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 Dec 1, 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
4 providers serve it, including Jiekou.AI, FrogBot and Helicone. The lowest input price is $0.19 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.19 | $1.43 | $0.019 | 256K | 10K |
| 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 |
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 - Temperature
temperature
Alternatives to grok-code-fast-1
Models that take the same inputs and call tools, closest in price, cheaper ones first.
- Index 17.5
Reads text and images. Tool calling, structured output, reasoning. Served by 15 providers.
by metaAug 10, 2026131K context$0.30/M input tokens$1.20/M output tokens15 providers
- Index 29.2
Reads text, images and video. Tool calling, structured output, reasoning. Served by 52 providers.
by minimaxJun 1, 20261M context$0.30/M input tokens$1.20/M output tokens52 providers
- 1.05M context
Reads text, images and files. Tool calling, structured output, reasoning. Served by 53 providers.
by openaiJul 9, 2026$0.20/M input tokens$1.20/M output tokens53 providers
- 1.05M context
Reads text and images. Tool calling, structured output, reasoning. Served by 4 providers.
by meituanNov 2, 2026$0.30/M input tokens$1.20/M output tokens4 providers
- 1.05M context
Reads text and images. Tool calling, structured output, reasoning.
by fireworksOct 17, 2026$0.30/M input tokens$1.20/M output tokens
- 1.05M context
Reads text and images. Tool calling, structured output, reasoning.
by mistralaiOct 17, 2026$0.30/M input tokens$1.20/M output tokens
More from xAI
- 1K context
Generates video from text and images. 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 37 providers.
by x-aiSep 21, 2026500K context$2/M input tokens$6/M output tokens37 providers
Grok Voice STT 1.0
Transcription15K contextTurns speech into text.
by x-aiSep 17, 2026
- 500K context
Reads text, images and files. Tool calling, structured output, reasoning. Served by 34 providers.
by x-aiAug 12, 2026$2/M input tokens$6/M output tokens34 providers
- 66K context
Generates images from text and images. Served by 3 providers.
by x-aiAug 7, 20263 providers
- 500K context
Reads text, images and files. Tool calling, structured output, reasoning. Served by 26 providers.
by x-aiJul 8, 2026$2/M input tokens$6/M output tokens26 providers
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 10,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?
4 providers serve it, including Jiekou.AI, FrogBot and Helicone. The lowest input price is $0.19 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 28, 2025.
Catalog data from models.dev (MIT licensed), refreshed daily, last on Dec 1, 2026. The summary is written from these facts.