API pricing per million tokens
- Input
- $2
- per 1M, list
- Output
- $12
- per 1M tokens
- Cached input
- $0.2
- batch $1 / $6
- Context
- 1M
- 66K max output
Where to buy it (6)
Google Vertex AIglobal-flex-50%$1 / $6cached $0.1
Google Gemini APIflex-50%$1 / $6cached $0.1
Google Vertex AIglobal$2 / $12cached $0.2
Google Gemini API (list)the lab's own API$2 / $12cached $0.2
Google Vertex AIglobal-priority+80%$3.6 / $21.6cached $0.36
Google Gemini APIpriority+80%$3.6 / $21.6cached $0.36
Through a gateway
Your own numbers100M input and 20M output tokens a month: $440.00 direct.
Helicone$440.00+0%
Kong AI Gateway$440.00+0%
LiteLLM$440.00+0%
Vercel AI Gateway$440.00+0%
AWS Bedrock$440.00+0%
Azure AI Foundry$440.00+0%
Google Vertex AI$440.00+0%
Databricks Mosaic AI$440.00+0%
Hugging Face Inference$440.00+0%
Cloudflare AI Gateway$462.00+5%
Requesty$462.00+5%
Eden AI$464.20+5.5%
OpenRouter$464.20+5.5%
Snowflake Cortex AI$528.00+20%
Martian Gatewayn/a
Portkeyn/a
TrueFoundry AI Gatewayn/a
IBM watsonx.ain/a
OCI Generative AIn/a
BigQuery MLn/a
Cloudflare Workers AIn/a
NVIDIA NIMn/a
Related models
Gemini 3.8 FlashGoogle Gemini API · 1M$0.75 / $3.75in / out per 1M$0.75$3.75$0.0751MSep 2, 2026
Gemini 3.7 FlashGoogle Gemini API · 1M$0.75 / $3.75in / out per 1M$0.75$3.75$0.0751MAug 13, 2026
Gemini 3.5 Flash LiteGoogle Gemini API · 1M$0.3 / $2.5in / out per 1M$0.3$2.5$0.031MJul 21, 2026
Gemini 3.6 FlashGoogle Gemini API · 1M$0.75 / $3.75in / out per 1M$0.75$3.75$0.0751MJul 21, 2026
Claude Opus 5Anthropic · 1M$5 / $25in / out per 1M$5$25$0.51MJul 24, 2026
GPT-5.6 SolOpenAI · 1.05M$2 / $10in / out per 1M$2$10$0.21.05MJul 9, 2026
Claude Opus 4.6Anthropic · 1M$5 / $25in / out per 1M$5$25$0.51MFeb 4, 2026
Claude Opus 4.7Anthropic · 1M$5 / $25in / out per 1M$5$25$0.51MApr 16, 2026
About Gemini 3.1 Pro Preview
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.
Takes audio, files, image, text, video in and returns text. First listed Mar 3, 2026. Blended price $4.5 per 1M tokens at 3 input to 1 output. Overall score 15 on leadersboard.fru.dev (rank 14).
Questions
How much does Gemini 3.1 Pro Preview cost?
$2 per million input tokens and $12 per million output tokens, with cached input at $0.2, or $1 and $6 through the Batch API.
What is the context window of Gemini 3.1 Pro Preview?
1M tokens, with up to 66K tokens of output.
Where is Gemini 3.1 Pro Preview cheapest?
Of 6 routes tracked, Google Vertex AI is cheapest at $1 input and $6 output per million tokens.
List prices from providers' pages on the date shown; your contract may differ. Logos via logo.dev; trademarks belong to their owners.