Grok optimized for code generation tasks.
OffRail routes requests to the best providers that are able to handle your prompt size and parameters.
Grok optimized for code generation tasks. You can access it through OffRail's OpenAI-compatible API with automatic provider routing, fallback, and cost analytics.
Pricing for Grok Code Fast 1 on OffRail 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 OffRail. 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.
Grok Imagine Image 2.0
2,000 context$0.00 in / $0.00 out per 1M
Grok 4.6
500,000 context$2.00 in / $6.00 out per 1M
Grok STT 1.0
$0.00 in / $0.00 out per 1M
Grok 4.5
500,000 context$2.00 in / $6.00 out per 1M
Grok Imagine Video 1.5
2,000 context$0.00 in / $0.00 out per 1M
Grok Imagine Video 1.5 Preview
2,000 context$0.00 in / $0.00 out per 1M