LLMPrice.io

Grok Code Fast API pricing

Published on-demand rates for xAI's xai/grok-code-fast, captured 2026-08-10 from public pricing data and committed to our archive. Context window 256k tokens; first observed in our archive 2025-09-01.

MeterUSD per 1M tokens
Input$0.200
Output$1.50
Cached input$0.020

Standard on-demand rates. Excludes batch endpoints and negotiated pricing; confirm on xAI's pricing page before committing.

What it costs on a real workload

The four frozen profiles the LLMPrice indices price, per 1M tokens processed, at the rates above. Where no cache-read rate is published, the whole input bills at the standard rate.

ProfileIn / out mixCached shareCost
Retrieval800k / 200k70%$0.359
Chat500k / 500k30%$0.823
Content200k / 800k20%$1.23
Agent900k / 100k85%$0.192

Profile definitions are frozen and published on the methodology page. Compare every model on these profiles →

Observed rate history

No repricing observed since this model entered our archive on 2025-09-01. When a rate moves, the change appears here and on the sitewide ticker.

Priced near this one

The models closest to Grok Code Fast on a retrieval workload, cheaper and more expensive alike. We publish no quality score, so this is what they cost and nothing more.

ModelProviderInputOutputvs Grok Code Fast
Gemini 3.1 Flash LiteGoogle$0.250$1.504% more
GPT 5.4 NanoOpenAI$0.200$1.2514% less
GPT 5.6 LunaOpenAI$0.200$1.2017% less
CodestralMistral$0.300$0.90017% more

Compared on the retrieval profile: 800k input, 200k output, 70% of input cached where the model offers a cache rate.

Price your own prompt on it Estimate a whole project Plain rate card xAI's console →

No affiliate or referral arrangements: the console link carries no parameters and nothing on this page is paid placement. Grok Code Fast is a trademark of its owner; LLMPrice.io is independent and unaffiliated.