Skip to content

Gemini 2.5 Flash

Per 1M tokens
$0.315 · $2.63
Context
1Mtokens
Supports
  • Reads images
  • Calls tools
  • Thinks before it answers
opencode.json
{
  "provider": {
    "deference": {
      "npm": "@ai-sdk/openai-compatible",
      "options": { "baseURL": "https://deference.si/v1", "apiKey": "{env:DEFERENCE_API_KEY}" },
      "models": { "google/gemini-2.5-flash": { "limit": { "context": 1048576, "output": 65535 } } }
    }
  }
}
Needs an API keyGet one

Pricing and limits

  • Cache read$0.0315per 1M tokens
  • Cache write$0.0875per 1M tokens
  • Max output65,535tokens

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