google logo
google

Google: Gemini 3.1 Pro Preview

Source description (English)

Gemini 3.1 Pro Preview is Google’s frontier reasoning model, delivering enhanced software engineering performance, improved agentic reliability, and more efficient token usage across complex workflows. Building on the multimodal foundation...

Overview

Model specifications

Context
1,048,576 tokens
Maximum output
65,536 tokens
Architecture
text+image+file+audio+video->text
Tokenizer
Gemini
Knowledge cutoff
Not provided
Moderated
No
OPENROUTER

Complete pricing

Synchronized OpenRouter rates. Token prices are shown per one million tokens.

Input
$2
per 1M tokens
  • ≤200K$2
  • >200K$4
Output
$12
per 1M tokens
  • ≤200K$12
  • >200K$18
Cache read
$0.2
per 1M tokens
  • ≤200K$0.2
  • >200K$0.4
Cache write
$0.375
per 1M tokens
Image input
$2
per 1M tokens
Audio input
$2
per 1M tokens
  • ≤200K$2
  • >200K$4
Input Audio Cache
$0.2
per 1M tokens
  • ≤200K$0.2
  • >200K$0.4
Web search
$14
per 1,000 calls
API

Model configuration

Reasoning

Reasoning required
Yes
Default parameters
medium
Capabilities
high, medium, low
API

Quick start

Set OPENROUTER_API_KEY locally. Python requires requests; JavaScript runs in Node.js. Keep the key on the server.

API documentation

curl --fail-with-body https://openrouter.ai/api/v1/chat/completions \
  -H "Authorization: Bearer $OPENROUTER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"google/gemini-3.1-pro-preview","messages":[{"role":"user","content":"Hello!"}]}'
Capabilities

InputOutput

Input
audiofileimagetextvideo
Output
text
Reasoning

No · high · medium · low

API

Supported API parameters

include_reasoningmax_tokensreasoningreasoning_effortresponse_formatseedstopstructured_outputstemperaturetool_choicetoolstop_p
Available providers

6 providers

Checked: September 7, 2026

Live providers on OpenRouter

Provider availability, latency, throughput and routing can change continuously. Open the source page for current operational data.

OpenRouter

Google

Not provided
Context
1.0M
Maximum output
66K
Input
$1
Output
$6
Cache read
$0.1
Cache write
$0.1875

Google AI Studio

Not provided
Context
1.0M
Maximum output
66K
Input
$1
Output
$6
Cache read
$0.1
Cache write
$0.1875

Google

Not provided
Context
1.0M
Maximum output
66K
Input
$2
Output
$12
Cache read
$0.2
Cache write
$0.375

Google AI Studio

Not provided
Context
1.0M
Maximum output
66K
Input
$2
Output
$12
Cache read
$0.2
Cache write
$0.375

Google

Not provided
Context
1.0M
Maximum output
66K
Input
$3.6
Output
$21.6
Cache read
$0.36
Cache write
$0.675

Google AI Studio

Not provided
Context
1.0M
Maximum output
66K
Input
$3.6
Output
$21.6
Cache read
$0.36
Cache write
$0.675
google

4 models

All models