- Model
x-ai/grok-code-fast-1- Provider
openrouter- API
openai-completions- Base URL
https://openrouter.ai/api/v1- Input
- text
- Reasoning
- Yes
- Context window
- 256,000
- Max tokens
- 10,000
- Cost / million input
- $0.2
- Cost / million output
- $1.5
- Cost / million cache read
- $0.02
- Cost / million cache write
- $0
Model config JSON
{
"providers": {
"openrouter": {
"apiKey": "YOUR_API_KEY",
"models": [
{
"id": "x-ai/grok-code-fast-1",
"name": "xAI: Grok Code Fast 1",
"reasoning": true,
"input": [
"text"
],
"contextWindow": 256000,
"maxTokens": 10000,
"cost": {
"input": 0.19999999999999998,
"output": 1.5,
"cacheRead": 0.02,
"cacheWrite": 0
}
}
],
"api": "openai-completions",
"baseUrl": "https://openrouter.ai/api/v1"
}
}
}