Gemini 3.1 Flash Lite Preview

Model details

Gemini 3.1 Flash Lite Preview

Model
gemini-3.1-flash-lite-preview
Provider
google
API
google-generative-ai
Base URL
https://generativelanguage.googleapis.com/v1beta
Input
text, image
Reasoning
Yes
Context window
1,048,576
Max tokens
65,536
Cost / million input
$0.25
Cost / million output
$1.5
Cost / million cache read
$0.025
Cost / million cache write
$1
Model config JSON
{
  "providers": {
    "google": {
      "apiKey": "YOUR_API_KEY",
      "models": [
        {
          "id": "gemini-3.1-flash-lite-preview",
          "name": "Gemini 3.1 Flash Lite Preview",
          "reasoning": true,
          "input": [
            "text",
            "image"
          ],
          "contextWindow": 1048576,
          "maxTokens": 65536,
          "cost": {
            "input": 0.25,
            "output": 1.5,
            "cacheRead": 0.025,
            "cacheWrite": 1
          }
        }
      ],
      "api": "google-generative-ai",
      "baseUrl": "https://generativelanguage.googleapis.com/v1beta"
    }
  }
}