Last refreshed 2026-05-20. Next refresh: weekly.
Why use Grok Code Fast 1 on OpenRouter?
OpenRouter offers Grok Code Fast 1 with pay-as-you-go pricing at $0.20/1M input tokens. OpenRouter is a multi-provider LLM aggregator offering unified API access to 300+ models from all major labs and emerging providers, with automatic failover for reliability.
Compare Grok Code Fast 1 across 3 providers to find the best fit for your use caseSetup recipe
Docs fallbackUse the provider REST API or SDKCreate a provider API keymodel: x-ai/grok-code-fast-1x-ai/grok-code-fast-1Request example
x-ai/grok-code-fast-1.Gotchas
- Use provider model ID "x-ai/grok-code-fast-1", not the LLMReference slug "grok-code-fast-1".
Compare Grok Code Fast 1 Across Providers
| Provider | Input (per 1M) | Output (per 1M) |
|---|---|---|
| OpenRouter | $0.20 | $1.50 |
| Microsoft Foundry | — | — |
| xAI Console | $1.25 | $2.50 |
Pricing
| Type | Price (per 1M) |
|---|---|
| Input tokens | $0.20 |
| Output tokens | $1.50 |
Capabilities
About Grok Code Fast 1
xAI's Grok Code Fast 1 is a code-specialized Mixture-of-Experts model released August 27, 2025. It was retired on May 15, 2026; xAI lists grok-build-0.1 as its direct replacement for current coding-agent work.
FAQ
What does Grok Code Fast 1 cost on OpenRouter?
On OpenRouter, Grok Code Fast 1 costs $0.2 per 1M input tokens and $1.5 per 1M output tokens.
What is the context window for Grok Code Fast 1 on OpenRouter?
Grok Code Fast 1 supports a 256k token context window on OpenRouter.
How does OpenRouter compare to other Grok Code Fast 1 providers?
Grok Code Fast 1 is available from 3 providers. The cheapest input pricing is $0.2/1M tokens from OpenRouter.
What API model ID do I use for Grok Code Fast 1 on OpenRouter?
Use the model ID x-ai/grok-code-fast-1 when calling OpenRouter's API.
Who created Grok Code Fast 1?
Grok Code Fast 1 was created by xAI as part of the Grok 4 model family.
Is Grok Code Fast 1 open source?
Grok Code Fast 1 is not open source; the seed data lists it as proprietary.