- Model
google/gemma-4-31b-it- Provider
openrouter- API
openai-completions- Base URL
https://openrouter.ai/api/v1- Input
- text, image
- Reasoning
- Yes
- Context window
- 262,144
- Max tokens
- 16,384
- Cost / million input
- $0.13
- Cost / million output
- $0.38
- Cost / million cache read
- $0
- Cost / million cache write
- $0
Model config JSON
{
"providers": {
"openrouter": {
"apiKey": "YOUR_API_KEY",
"models": [
{
"id": "google/gemma-4-31b-it",
"name": "Google: Gemma 4 31B",
"reasoning": true,
"input": [
"text",
"image"
],
"contextWindow": 262144,
"maxTokens": 16384,
"cost": {
"input": 0.13,
"output": 0.38,
"cacheRead": 0,
"cacheWrite": 0
}
}
],
"api": "openai-completions",
"baseUrl": "https://openrouter.ai/api/v1"
}
}
}