Back to all models

Pricing and availability as of

Grok Code Fast 1

Model Deactivated

Grok optimized for code generation tasks.

grok-code-fast-1
Context
256,000
tokens
Max output
10,000
tokens
Input from
$0.20
per 1M tokens
Output from
$1.50
per 1M tokens
Providers
1
one route
Released
Aug 28, 2025
  • Streaming
  • Tools
  • JSON Output
No ratings yetSign in to rate

Providers for Grok Code Fast 1

Compare price, limits and live performance side by side. LLM Gateway routes each request to the best provider that can handle your prompt size and parameters.

1 provider

ProviderActions
Deactivated
256k10k$0.20$1.50$0.02

Prices are per provider at standard rates; open a row for regions, tiers and cache pricing. Throughput, latency and uptime come from LLM Gateway traffic over the last 24 hours and are hidden under 1,000 requests.

Grok Code Fast 1 API pricing

Grok Code Fast 1 API pricing starts at $0.20 per 1M input tokens and $1.50 per 1M output tokens through LLM Gateway. Cached input starts at $0.02 per 1M tokens.

ProviderInput / 1M tokensOutput / 1M tokensCached input / 1M tokensContext window
xAI$0.20$1.50$0.02256,000 tokens

What Grok Code Fast 1 costs at volume

Monthly usageCost on xAI
1M input + 250K output tokens$0.575
10M input + 2.5M output tokens$5.75
100M input + 25M output tokens$57.50

Grok Code Fast 1 cost calculator

Estimated monthly cost
$9.50
Cost per request
$0.001

Frequently asked questions

What is Grok Code Fast 1?

Grok optimized for code generation tasks. You can access it through LLM Gateway's OpenAI-compatible API with automatic provider routing, fallback, and cost analytics.

How much does Grok Code Fast 1 cost?

Pricing for Grok Code Fast 1 on LLM Gateway starts at $0.20 per million input tokens and $1.50 per million output tokens, depending on the provider. The pricing table above always reflects the current per-provider rates.

What is the context length of Grok Code Fast 1?

Grok Code Fast 1 supports a context window of up to 256,000 tokens on its largest provider deployment.

Which providers serve Grok Code Fast 1?

Grok Code Fast 1 is served by xAI through LLM Gateway. Requests are automatically routed to the best available provider, with fallback when a provider has issues.

Does Grok Code Fast 1 support tool calling and structured outputs?

Grok Code Fast 1 supports tool (function) calling and soft JSON output, but NOT strict JSON output schema (its upstream provider does not enforce it).

When was Grok Code Fast 1 released?

Grok Code Fast 1 was released on August 28, 2025.