Grok Code Fast 1
Pricing & Specs

xAI · $0.2 input / $1.5 output per 1M tokens · 256K context window

$0.2
per 1M input tokens
$1.5
per 1M output tokens
256K
context window (tokens)

The per-token price never tells the full story. A typical task (1K input + 500 output tokens) on Grok Code Fast 1 costs about $0.0009 — roughly $0.95 per 1,000 runs. But if it needs 3x the tokens of a cheaper model to match quality on YOUR task, the economics flip. The only way to know is to benchmark it on your actual workload.

Grok Code Fast 1 API Pricing

TokensPrice
Input$0.2 / 1M tokens
Output$1.5 / 1M tokens
Cached input$0.02 / 1M tokens

Cached input tokens are billed when caching is enabled.

What that means in practice

1x One typical task (1K input + 500 output tokens): $0.0009
1K 1,000 runs of that task: $0.95
💡 Real cost depends on how verbose the model is on YOUR prompts — benchmark to measure actual tokens, not estimates.

Grok Code Fast 1 Specs

SpecValue
Context window256K tokens
Input modalitiestext, image
Output modalitiestext
Latency (measured by OpenMark)~6.4s median response
Reasoning modelYes
Tool / function callingYes
JSON modeYes
StreamingYes
Prompt cachingYes
Batch APINo

FAQ

How much does Grok Code Fast 1 cost?

Grok Code Fast 1 costs $0.2 per 1M input tokens and $1.5 per 1M output tokens ($0.02 per 1M cached input tokens).

What is Grok Code Fast 1's context window?

Grok Code Fast 1 has a 256K-token context window.

Can I test Grok Code Fast 1 on my own task?

Yes. OpenMark lets you benchmark Grok Code Fast 1 against 100+ models on your own task with real API calls — no API keys needed, free tier available.

Is Grok Code Fast 1 the right model for YOUR task?

Pricing tables can't answer that. Benchmark it against 100+ models
on your actual workload — real API calls, real costs. Free tier available.

Benchmark Grok Code Fast 1 — Free →