- Model
gemini-3-flash- Provider
opencode- API
google-generative-ai- Base URL
https://opencode.ai/zen/v1- Input
- text, image
- Reasoning
- Yes
- Context window
- 1,048,576
- Max tokens
- 65,536
- Cost / million input
- $0.5
- Cost / million output
- $3
- Cost / million cache read
- $0.05
- Cost / million cache write
- $0
Model config JSON
{
"providers": {
"opencode": {
"apiKey": "YOUR_API_KEY",
"models": [
{
"id": "gemini-3-flash",
"name": "Gemini 3 Flash",
"reasoning": true,
"input": [
"text",
"image"
],
"contextWindow": 1048576,
"maxTokens": 65536,
"cost": {
"input": 0.5,
"output": 3,
"cacheRead": 0.05,
"cacheWrite": 0
}
}
],
"api": "google-generative-ai",
"baseUrl": "https://opencode.ai/zen/v1"
}
}
}