xAI · Cheap + Fast
Grok Code Fast 1
xai/grok-code-fast-1 — xAI's cheap + fast model, accessible through Leanroute's OpenAI-compatible AI Gateway. Pay provider list price with zero per-request markup; flat $15/mo BYOK subscription covers the platform fee.
Pricing snapshot: September 2026. Re-validated monthly against the upstream xAI pricing page.
Pricing
| Type | USD per 1M tokens |
|---|---|
| Input tokens | $0.200 |
| Cached input (25% off) | $0.150 |
| Output tokens | $1.50 |
Leanroute's markup: $0. You pay the provider list price above, plus a flat $15/mo BYOK subscription (or 5% at top-up for prepaid credits). Compare pricing at /calculator.
Capabilities
Example request
curl https://api.leanroute.dev/v1/chat/completions \
-H "Authorization: Bearer $LEANROUTE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "xai/grok-code-fast-1",
"messages": [
{ "role": "user", "content": "Hello, Grok Code Fast 1!" }
]
}'OpenAI-wire-compatible — point any OpenAI SDK at api.leanroute.dev/v1 and set model: "xai/grok-code-fast-1". Full endpoint reference at /docs/api.
Other xAI models
- Grok 4$3.00/$7.50 · Flagship
- Grok 4 3$1.25/$2.50 · Flagship
- Grok 4 5$2.00/$6.00 · Flagship
- Grok 4 6$2.00/$6.00 · Flagship
- Grok Build 0 1$1.00/$2.00 · Cheap + Fast
- Grok 4 20 0309 Reasoning$1.25/$2.50 · Flagship
- Grok 4 20 0309 Non Reasoning$1.25/$2.50 · Flagship
- Grok 4 20 Multi Agent 0309$1.25/$2.50 · Flagship
Same-tier alternatives across providers
- GPT 4o Mini$0.150/$0.600 · OpenAI
- GPT 5 Nano$0.050/$0.400 · OpenAI
- GPT 5 Mini$0.250/$2.00 · OpenAI
- GPT 5.6 Luna$0.200/$1.20 · OpenAI
- GPT 5.3 Codex$1.75/$14.00 · OpenAI
- Claude Haiku 4 5$1.00/$5.00 · Anthropic
- Gemini 2.5 Flash$0.300/$2.50 · Google
- Gemini 2.5 Flash Lite$0.150/$1.25 · Google
Leanroute's router picks the cheapest same-tier model automatically when cheaper-model routing is on. Config at /dashboard/settings.
See also: Full model catalog · API reference · Savings calculator · Leanroute pricing