xAI: grok-code-fast-1Official docs

xAI: grok-code-fast-1

byxAI
Official docs

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 more

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

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.

ProviderInput /MOutput /MCache read /MContextMax output
Jiekou.AI$0.19$1.43$0.019256K10K
FrogBot$0.20$1.50$0.02256K128K
Helicone$0.20$1.50$0.02256K10K
Poe$0.20$1.50$0.02256K128K

What grok-code-fast-1 costs per month

Pick a workload close to yours or type your own volumes.

grok-code-fast-1 per month
$22.65
Without caching
$30.75
Per request
$0.0008

Supported request parameters

What you can set when you call grok-code-fast-1 through an OpenAI compatible API.

  • Toolstools
  • Structured outputsstructured_outputs
  • Reasoningreasoning
  • Temperaturetemperature

Alternatives to grok-code-fast-1

Models that take the same inputs and call tools, closest in price, cheaper ones first.

  • 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

  • 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

  • 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

  • Reads text and images. Tool calling, structured output, reasoning.

    by fireworksOct 17, 2026$0.30/M input tokens$1.20/M output tokens

  • 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

  • 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

    Transcription

    Turns speech into text.

    by x-aiSep 17, 2026

  • 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

  • Generates images from text and images. Served by 3 providers.

    by x-aiAug 7, 20263 providers

  • 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

All xAI models

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.