Grok-Code-Fast-1
xAI · Mid-tier
Rates per million tokens
Input
$0.20
Output
$1.50
Cache read
$0.02
A new account opens on 16% off these rates, so input runs at $0.168 per million tokens.
Model id
Pass this as model in any OpenAI-compatible request.
Call it
from openai import OpenAI
client = OpenAI(
base_url="https://api.routedly.ai/v1",
api_key="sk-sr-cli-..."
)
response = client.chat.completions.create(
model="xai-grok-code-fast-1",
messages=[{"role": "user", "content": "Say hello"}],
)
print(response.choices[0].message.content)Start calling Grok-Code-Fast-1
One key works across every model in the catalog. No per-provider accounts.