Google Gemini Flash Latest

Model details

Google Gemini Flash Latest

Model
~google/gemini-flash-latest
Provider
openrouter
API
openai-completions
Base URL
https://openrouter.ai/api/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.083333
Model config JSON
{
  "providers": {
    "openrouter": {
      "apiKey": "YOUR_API_KEY",
      "models": [
        {
          "id": "~google/gemini-flash-latest",
          "name": "Google Gemini Flash Latest",
          "reasoning": true,
          "input": [
            "text",
            "image"
          ],
          "contextWindow": 1048576,
          "maxTokens": 65536,
          "cost": {
            "input": 0.5,
            "output": 3,
            "cacheRead": 0.049999999999999996,
            "cacheWrite": 0.08333333333333334
          }
        }
      ],
      "api": "openai-completions",
      "baseUrl": "https://openrouter.ai/api/v1"
    }
  }
}