Skip to main content
standardVery Cheap

Grok Code Fast 1

by xAI

xAI's specialized fast coding model with reasoning, optimized for code generation and debugging

Try xAI

Input Price

$0.2

per 1M tokens

Output Price

$1.5

per 1M tokens

Context Window

256K

tokens (32.768K max output)

Specifications

Release Date2026-02-01
Categorystandard
Context Window256,000 tokens
Max Output32,768 tokens
ProviderxAI
Input Cost$0.2 / 1M tokens
Output Cost$1.5 / 1M tokens
Price TierVery Cheap

Capabilities

textcodereasoning

Related Use Cases

Monthly Cost Estimates

Usage LevelDaily TokensDailyMonthlyYearly
Light~50 requests/day100K in / 20K out$0.05$1.50$18
Medium~200 requests/day500K in / 100K out$0.25$7.50$91
Heavy~1K requests/day2,000K in / 500K out$1.15$34.50$420
Enterprise~5K requests/day10,000K in / 2,000K out$5.00$150.00$1825

Cost Calculator

Alternatives to Grok Code Fast 1

Frequently Asked Questions

How much does Grok Code Fast 1 API cost per million tokens?
Grok Code Fast 1 costs $0.2 per million input tokens and $1.5 per million output tokens as of 2026. These are the standard API rates from xAI.
What is the Grok Code Fast 1 context window?
Grok Code Fast 1 supports a 256K context window (256,000 tokens), which means you can process up to 256K tokens in a single API call.
How much does Grok Code Fast 1 cost per month?
At medium usage (~200 requests/day with 500K input and 100K output tokens/day), Grok Code Fast 1 costs approximately $7.50/month. Light usage runs about $1.50/month, and heavy usage (~1K requests/day) around $34.50/month.
Is there a cheaper alternative to Grok Code Fast 1?
Yes — GPT-5.4 nano by OpenAI is a cheaper option at $0.2/M input tokens vs $0.2/M for Grok Code Fast 1. Other budget alternatives include models in the efficient tier.
Is Grok Code Fast 1 good for ai agent / agentic workflows?
Grok Code Fast 1 is a standard model with support for text, code, reasoning. For ai agent / agentic workflows, it offers 256K context and costs $0.2/M input tokens — a budget-friendly choice for this use case.

Grok Code Fast 1 Comparisons

Ready to use Grok Code Fast 1?

Get started with xAI's API — free tier available for most models.

Try xAI API →