xAI

Grok Code Fast 1 API Pricing 2026

Compare pricing, benchmarks, and providers for Grok Code Fast 1. Find the best value for your use case.

8 Ways to Use Fewer Tokens
Last updated: November 21, 2026 at 08:43 AM

Overview

Grok Code Fast 1 was released on August 26, 2025. Pricing starts at $0.200 per million input tokens and $1.50 per million output tokens. The model supports a context window of up to 256K tokens. API access is available through xAI.

Context Window
256K
tokens
Pricing
Input$0.200
Output$1.50
per 1M tokens
Speed
Output-
TTFT-
median latency
Capabilities
ReasoningToolsCaching

Grok Code Fast 1 is priced at $0.200 per million input tokens and $1.50 per million output tokens. It has a context window of 256,000 tokens. It is available from 1 provider, with xAI the cheapest at $0.200 per million input tokens.

Pricing Comparison

Compare Grok Code Fast 1 with 10 similar models by price.

Current Pricing (per 1M tokens)

11 models

Sponsored The Grid | Spot Priced LLM API
The Grid | Spot Priced LLM API — Why pay list price when providers will bid for your API usage? Up to 80% off.
View spot prices
Provider
Model
Input $/M
Output $/M
Coding
MMLU
GPQA
Context
Actions
$0.200
$1.500
—
—
—
256,000
Try
$0.200
$0.200
—
—
—
4,096
Try
$0.200
$0.200
—
—
—
8,000
Try
$0.200
$0.200
—
—
—
4,096
Try
$0.200
$0.200
—
—
—
4,096
Try
$0.200
$0.200
—
—
—
32,768
Try
$0.200
$0.200
—
—
—
16,384
Try
$0.200
$0.200
—
—
—
32,768
Try
$0.200
$0.200
—
—
—
131,072
Try
$0.200
$0.200
—
—
—
131,072
Try
$0.200
$0.500
—
—
—
2,000,000
Try

* Some models use tiered pricing based on prompt length. Displayed prices are for prompts ≤ 200k tokens.

Compare Providers

Grok Code Fast 1 is available from multiple providers with different pricing and availability.

1
Providers
$0.200
Cheapest Input/M
$1.500
Cheapest Output/M
xAI
Best Price

Provider Pricing

1 models

Sponsored The Grid | Spot Priced LLM API
The Grid | Spot Priced LLM API — Why pay list price when providers will bid for your API usage? Up to 80% off.
View spot prices
Provider
Input $/M
Output $/M
Cache Read $/M
Cache Write $/M
Uptime
xAI
xAI
Best Price
$0.200
$1.500
-
-
-
Provider pricing data sourced from OpenRouter and Helicone

Community Rankings

How does Grok Code Fast 1 perform? Vote based on your experience.

Cost vs. Quality

Compare Grok Code Fast 1's benchmark performance against all models.

X-axis:
Y-axis:
Loading chart...
Other models

Try Grok Code Fast 1

Use our Calculator

Estimate your costs based on expected token usage.

Open Cost Calculator

Try in Playground

Test Grok Code Fast 1 directly in your browser.

Open Playground

Frequently Asked Questions

Grok Code Fast 1 costs $0.000200 per 1,000 input tokens and $0.001500 per 1,000 output tokens.
Grok Code Fast 1 is available from 1 provider. xAI offers the best price.
xAI offers Grok Code Fast 1 at $0.200 per million input tokens.
We compare Grok Code Fast 1 with 10 similarly-priced models. See the benchmark scatter plot above to compare quality vs cost.

All xAI Models

See pricing for all xAI models.

View all xAI models →