Gemini 1.5 Flash

Model details

Gemini 1.5 Flash

Model
gemini-1.5-flash
Provider
google
API
google-generative-ai
Base URL
https://generativelanguage.googleapis.com/v1beta
Input
text, image
Reasoning
No
Context window
1,000,000
Max tokens
8,192
Cost / million input
$0.075
Cost / million output
$0.3
Cost / million cache read
$0.01875
Cost / million cache write
$0
Model config JSON
{
  "providers": {
    "google": {
      "apiKey": "YOUR_API_KEY",
      "models": [
        {
          "id": "gemini-1.5-flash",
          "name": "Gemini 1.5 Flash",
          "reasoning": false,
          "input": [
            "text",
            "image"
          ],
          "contextWindow": 1000000,
          "maxTokens": 8192,
          "cost": {
            "input": 0.075,
            "output": 0.3,
            "cacheRead": 0.01875,
            "cacheWrite": 0
          }
        }
      ],
      "api": "google-generative-ai",
      "baseUrl": "https://generativelanguage.googleapis.com/v1beta"
    }
  }
}