Google: Gemini Flash Latest

Models

Model details

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
Show configuration
{
  "providers": {
    "openrouter": {
      "apiKey": "YOUR_API_KEY",
      "models": [
        {
          "id": "~google/gemini-flash-latest",
          "name": "Google: Gemini Flash Latest",
          "reasoning": true,
          "input": [
            "text",
            "image"
          ],
          "thinkingLevelMap": {
            "off": null,
            "minimal": null,
            "low": "low",
            "medium": "medium",
            "high": "high",
            "xhigh": null,
            "max": null
          },
          "contextWindow": 1048576,
          "maxTokens": 65536,
          "cost": {
            "input": 0.75,
            "output": 3.75,
            "cacheRead": 0.075,
            "cacheWrite": 0.041667
          },
          "compat": {
            "supportsDeveloperRole": false,
            "thinkingFormat": "openrouter",
            "supportsStrictMode": true,
            "sendSessionAffinityHeaders": true
          }
        }
      ],
      "api": "openai-completions",
      "baseUrl": "https://openrouter.ai/api/v1"
    }
  }
}

Pricing

USD per million tokens. A tier is selected from the total input tokens in each request and applies to that entire request.

Pricing rates for Google: Gemini Flash Latest
Request inputInputOutputCache readCache write
All requests$0.75$3.75$0.075$0.041667

Session cost calculator

Estimate the requests made during an agent session. A user turn can make several model calls while using tools, so costs are calculated per model request.

Session shape
Rounded median shapes from recent Pi agent sessions.
Warm-request cache reuse
Effective token reuse combines partial hits and occasional complete misses.
Estimated session$0.00
Uncached input
—
Cache reads
—
Uncached prefixes
—
Cache writes
—
Output
—
Without caching
—

The first request starts cold unless marked otherwise. Output is billed separately from context growth because reasoning tokens are not always retained. This remains a directional estimate: providers differ in eligibility, rounding, and retention.

Compatibility flags

Effective values after applying Pi's API defaults and model overrides.

Effective compatibility flags for Google: Gemini Flash Latest
FeatureValue
supportsStoreYes
supportsDeveloperRoleNo
supportsReasoningEffortYes
supportsUsageInStreamingYes
maxTokensFieldmax_completion_tokens
requiresToolResultNameNo
requiresAssistantAfterToolResultNo
requiresThinkingAsTextNo
requiresReasoningContentOnAssistantMessagesNo
thinkingFormatopenrouter
openRouterRoutingEmpty
vercelGatewayRoutingEmpty
chatTemplateKwargsEmpty
zaiToolStreamNo
supportsStrictModeYes
cacheControlFormatNone
sendSessionAffinityHeadersYes
supportsLongCacheRetentionYes