Frontier 2M context Pro model with state-of-the-art multimodal reasoning and coding depth
| Scenario | Input Tokens | Output Tokens | Uncached Cost | With Prompt Caching |
|---|---|---|---|---|
| Short Chat Query | 1,000 | 500 | $0.00800 | $0.00620 |
| Document Summarization | 10,000 | 2,000 | $0.0440 | $0.0260 |
| Codebase & Context Analysis | 100,000 | 20,000 | $0.4400 | $0.2600 |
| Batch Corpus Processing | 1,000,000 | 100,000 | $3.20 | $1.40 |
Ideal for production workloads demanding flagship capabilities, deep context depth (2.10M tokens), and reliability from Google. Excellent when predictable tokenomics and prompt caching support are paramount.
If your use-case requires sub-second streaming latency or ultra-high frequency classification at micro-cent pricing, consider lighter budget options such as Gemini Flash-Lite or Claude Haiku. For deep formal logic, consider dedicated reasoning models like o3.
For Gemini 3.1 Pro, 1 million input tokens costs $2.00, while 1 million output tokens costs $12.00. If using prompt caching, repetitive input prefixes are discounted to $0.20 per million.
Gemini 3.1 Pro features a maximum context window of 2,097,152 tokens (~1,572,864 words), with a maximum output limit of 16,384 tokens per completion.
Gemini 3.1 Pro utilizes the Google Gemini SentencePiece (256k vocabulary). Token counting on TokenMath runs client-side to ensure maximum privacy.
Yes. Gemini 3.1 Pro supports prompt caching with a cached input rate of $0.20/1M (saving up to 90% on repeated input context).