xAIUpdated 2h ago

xAI: Grok Code Fast 1 API Pricing

Live token cost for xAI: Grok Code Fast 1 from xAI. Use the figures below for budgeting, then tune your exact request mix in the interactive calculator. Prices refresh every 24 hours from OpenRouter.

Input
$0.200
/ 1M tokens
Output
$1.50
/ 1M tokens
Cached input
$0.020
/ 1M tokens

Capabilities

256K context10K max outputPrompt caching

xAI: Grok Code Fast 1 cost at scale

Estimated monthly cost across common production volumes. Assumes 30-day months and the request shapes shown.

TierRequests / dayIn / out tokens$ / month
Hobby1,000500 / 200$12.00
Startup10,0001,500 / 500$315.00
Growth100,0003,000 / 800$5,400.00
Enterprise1,000,0008,000 / 2,000$138,000.00
Open xAI: Grok Code Fast 1 in interactive calculator →

Compare xAI: Grok Code Fast 1 vs.

Frequently asked questions

How much does xAI: Grok Code Fast 1 cost?

xAI: Grok Code Fast 1 costs $0.20 per 1M input tokens and $1.50 per 1M output tokens, with cached input at $0.02 per 1M tokens. A typical 1,500-token in / 500-token out request costs $0.00105.

Does xAI: Grok Code Fast 1 support cached input?

Yes. xAI: Grok Code Fast 1 supports prompt caching at $0.02 per 1M cached input tokens. Reuse the same system prompt or context across requests to cut input cost dramatically.

What is the xAI: Grok Code Fast 1 context window?

xAI: Grok Code Fast 1 supports a context window of 256,000 tokens (256K). Max output per response is 10,000 tokens.

What is xAI: Grok Code Fast 1 good for?

xAI: Grok Code Fast 1 is a good fit for general-purpose LLM tasks via the xAI API — chat, code, writing, summarization. For other use cases, run your specific input/output mix through the interactive calculator to compare against alternative models.