At a glance

Grok Code Fast 1 from xAI is a budget model priced at US$0.20 per 1M input tokens and US$1.50 per 1M output tokens. For a typical solo-developer workload (8 hours/day, 22 days/month — 1 medium feature, 5 small bug fixes, 4 PR reviews, 2 stack-trace debugs, ~1500 lines of TypeScript, 1 large-doc read, with prompt caching at the default mix) Grok Code Fast 1 costs about US$5/month. The 256K-token context window covers most monorepo scans without truncation.

What does your monthly budget buy?

Move the slider or switch task mix — values update live.

Monthly budget

US$100 / month

≈ $23/wk · ≈ $4.55/day

on Grok Code Fast 1

Task mix

Input tokens

680.0M

Output tokens

10.0M

Total tokens

690.0M

Per month this budget delivers

  • Medium feature (10–15 files)1,045
  • PR review14,814
  • Lines of TypeScript3,278,688
  • Small bug fix18,018
  • Work email235,294
  • Unit test file10,928
Open in the full calculator

How does this model compare on price?

Input vs output per 1M tokens

Hover a row to compare input vs output rates.
  • Grok Code Fast 1
    US$0.20
    US$1.50
  • Budget median (other budget models)
    US$0.30
    US$1.10
  • Cheapest in catalog (Gemini 2.0 Flash)
    US$0.10
    US$0.40
Input per 1MOutput per 1M

Cost per task

At the default coding-agent mix with 50% cache hits.

USD per single task

Hover a bar to see per-task cost detail.
  • Lines of TypeScript
    US$0.0000
  • Small bug fix
    US$0.0056
  • PR review
    US$0.0068
  • Read a large doc
    US$0.0085
  • Debug from stack trace
    US$0.0111
  • Refactor a module (8–12 files)
    US$0.0683
  • Onboard to a new repo
    US$0.0840
  • Medium feature (10–15 files)
    US$0.0956

Typical developer day

The 22-day month is based on the median working-day count across DE/US.

ActivityCountPer taskDailyMonthly
Medium feature (10–15 files)1US$0.10US$0.10US$2.10
Small bug fix5US$0.01US$0.03US$0.61
PR review4US$0.01US$0.03US$0.59
Debug from stack trace2US$0.01US$0.02US$0.49
Read a large doc1US$0.01US$0.01US$0.19
Micro-interaction (explain / lint fix)30US$0.00US$0.01US$0.28
Lines of TypeScript1,500US$0.00US$0.05US$1.01
TotalUS$0.24US$5.27

The 1500-lines-of-TS row models ~1000 lines read (cache-hit) + ~500 lines written. Headline figures are precise to ~5% — see the FAQ.

Monthly cost matrix

What each monthly budget buys on this model (typical solo-developer day, 22 working days).

Monthly budgetMedium featuresPR reviewsDebug sessionsLines of TS
Typical (≈ $5)55780476172,736
$50/month5227,4074,5241,639,344
$200/month2,09129,62918,0996,557,377
$500/month5,22874,07445,24816,393,442
$2000/month20,915296,296180,99565,573,770

Typical mix: coding-agent (85% input, 50% cache hits). Values show the maximum count of each task type at that budget.

What this model can do

  • Coding

    Trained or post-trained for code generation tasks.

  • Reasoning

    Not supported

  • Multimodal

    Not supported

  • Prompt cache

    Cache reads billed at ~10% of input price — cuts agent costs sharply.

  • Batch API

    Not supported

  • Tool use

    Native function-calling / tool-use API support.

  • Long context

    ≥ 200K-token context window.

  • Extended thinking

    Not supported

When does this model fit?

Best for

  • IDE-style fast edits at minimal cost
  • High-volume code completions with 256K context
  • Cost-sensitive cron-driven code analysis

Watch out for

  • Not a reasoning model — escalate Grok 4 for architectural depth
  • Newer model — track record shorter than Anthropic/OpenAI

xAI in the catalog

Total models

2

Median input/1M

US$1.60

Median output/1M

US$8.25

Input range

US$0.20–US$3.00

Related models

Sources

Frequently asked questions about Grok Code Fast 1

What does a typical month on Grok Code Fast 1 cost?

Running the realistic solo-developer day (1 medium feature + 5 small bug fixes + 4 PR reviews + 2 debug sessions + ~1500 lines of TypeScript + 1 large-doc read, 22 working days) on Grok Code Fast 1 costs about US$5/month. Heavier workloads scale proportionally; lighter workloads cost less.

How big is Grok Code Fast 1's context window?

256K tokens total, with up to 16K of output. That fits whole repository snapshots, tests included in a single call.

Why is Grok Code Fast 1 output priced so much higher than input?

Providers charge US$1.50 per 1M output tokens against US$0.20 per 1M input — output requires real compute, input comes mostly from cache. Coding agents read many files (input-heavy) and emit compact diffs (low output), so total spend is usually input-driven.

How much does prompt caching save on Grok Code Fast 1?

Cache reads typically cost only 10% of the regular input rate. On a coding-agent mix with 50% cache hits, that saves roughly 45% on input — which is about 38% off your total bill on input-heavy workloads. Anthropic models charge a one-time cache-write surcharge (25% over input) that pays for itself after 2–3 hits.

Try Grok Code Fast 1 pricing live

Open the full calculator with your own budget, task mix and region (US or DE with 19% VAT).

Open calculator