- Model
openai/gpt-4-0314- Provider
openrouter- API
openai-completions- Base URL
https://openrouter.ai/api/v1- Input
- text
- Reasoning
- No
- Context window
- 8,191
- Max tokens
- 4,096
- Cost / million input
- $30
- Cost / million output
- $60
- Cost / million cache read
- $0
- Cost / million cache write
- $0
Model config JSON
{
"providers": {
"openrouter": {
"apiKey": "YOUR_API_KEY",
"models": [
{
"id": "openai/gpt-4-0314",
"name": "OpenAI: GPT-4 (older v0314)",
"reasoning": false,
"input": [
"text"
],
"contextWindow": 8191,
"maxTokens": 4096,
"cost": {
"input": 30,
"output": 60,
"cacheRead": 0,
"cacheWrite": 0
}
}
],
"api": "openai-completions",
"baseUrl": "https://openrouter.ai/api/v1"
}
}
}