- Model
anthropic/claude-sonnet-4- Provider
openrouter- API
openai-completions- Base URL
https://openrouter.ai/api/v1- Input
- text, image
- Reasoning
- Yes
- Context window
- 1,000,000
- Max tokens
- 64,000
- Cost / million input
- $3
- Cost / million output
- $15
- Cost / million cache read
- $0.3
- Cost / million cache write
- $3.75
Model config JSON
{
"providers": {
"openrouter": {
"apiKey": "YOUR_API_KEY",
"models": [
{
"id": "anthropic/claude-sonnet-4",
"name": "Anthropic: Claude Sonnet 4",
"reasoning": true,
"input": [
"text",
"image"
],
"contextWindow": 1000000,
"maxTokens": 64000,
"cost": {
"input": 3,
"output": 15,
"cacheRead": 0.3,
"cacheWrite": 3.75
}
}
],
"api": "openai-completions",
"baseUrl": "https://openrouter.ai/api/v1"
}
}
}