Gemini 3.1 Pro (Preview)

google/gemini-3.1-pro-preview

Sign up to try it

Overview

Chat

Google's third-generation Pro model, built for multimodal understanding, agentic work and coding. A preview: Google may change it before it is stable.

Made by Google · released Feb 2026

Input

Text · Images · Audio · Video · File

Output

Text
Context
1.048.576
Input, maximum
983.040
Output, maximum
65.536
Default output
4.096
  • Reasoning Supported
  • Tool calling Supported
  • Prompt caching Supported
  • Automatic fallback routes Not supported

Routes and pricing

Providers are tried in the order listed below. We try these providers in order. If one fails, we move on to the next, and you pay the rate of the one that answers.

Google

primary
Input
Rp37.000per million tokens$2
Output
Rp222.000per million tokens$12
Cache read
Rp3.700per million tokens$0.2

Per-part units

Max tokens per input image
2.240 Gemini media-resolution guide, 2026-09-07
Tokens per document page
2.240 Gemini document processing, 2026-09-07
Document pages, maximum
1.000
Tokens per second of audio
32 Gemini API pricing and token guide, 2026-09-07
Tokens per second of video
300 Gemini API token guide, 2026-09-07

Prompts from 200.001 tokens

  • Input: Rp74.000 per million tokens
  • Output: Rp333.000 per million tokens
  • Cache read: Rp7.400 per million tokens

Today's reference rate: Rp18.500/USD

Prices exclude the 5,5% service fee

Data and privacy

Google Gemini API Additional Terms

Used to train models
No Under the Gemini API terms for paid use.
Retention
Logged for a limited period, only to detect abuse and meet legal duties.
Processing location
Any country where Google has facilities.
At indoRouter
We don't store your prompts or responses. Files you upload, batches, and responses you send with store: true are kept encrypted for up to 30 days.

Code samples

Use this model ID with any OpenAI SDK. The base URL is the same for every model.

curl https://api.indorouter.ai/v1/chat/completions \
  -H "authorization: Bearer $INDOROUTER_API_KEY" \
  -H "content-type: application/json" \
  -d '{"model": "google/gemini-3.1-pro-preview",
       "messages": [{"role": "user", "content": "halo"}]}'