Skip to content

Gemini 3.8 Flash

Gemini 3.8 Flash is Google's most intelligent Flash model with significant gains from 3.7 Flash across software engineering, agentic tasks, and multi-step reasoning.

Pricing

Input
$0.8663per 1M tokens
Output
$4.33per 1M tokens
Cache read
$0.0866per 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.8-flash": { "limit": { "context": 1048576, "output": 65536 } } }
    }
  }
}
OpenCode, set up for Gemini 3.8 Flash

Find us on