Pricing and availability as of
Grok optimized for code generation tasks.
grok-code-fast-1Compare 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
| Provider | Actions | ||||||||
|---|---|---|---|---|---|---|---|---|---|
Deactivated | 256k | 10k | $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 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.
| Provider | Input / 1M tokens | Output / 1M tokens | Cached input / 1M tokens | Context window |
|---|---|---|---|---|
| xAI | $0.20 | $1.50 | $0.02 | 256,000 tokens |
| Monthly usage | Cost 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 optimized for code generation tasks. You can access it through LLM Gateway's OpenAI-compatible API with automatic provider routing, fallback, and cost analytics.
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.
Grok Code Fast 1 supports a context window of up to 256,000 tokens on its largest provider deployment.
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.
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).
Grok Code Fast 1 was released on August 28, 2025.