Skip to content

Gemini 3.7 Flash

Gemini 3.7 Flash is a multimodal model from Google for fast agentic workflows, coding, and complex multi-step reasoning.

Pricing

Input
$0.7875per 1M tokens
Output
$3.94per 1M tokens
Cache read
$0.0788per 1M tokens
Cache write
$0.0438per 1M tokens
Max output
65,536tokens

OpenRouter's price plus OpenRouter's 5% platform fee. Deference adds no markup.

opencode.json

{
  "provider": {
    "deference": {
      "npm": "@ai-sdk/openai-compatible",
      "options": { "baseURL": "https://deference.si/v1", "apiKey": "{env:DEFERENCE_API_KEY}" },
      "models": { "google/gemini-3.7-flash": { "limit": { "context": 1048576, "output": 65536 } } }
    }
  }
}
OpenCode, set up for Gemini 3.7 Flash

Find us on