Gemini 3.1 Pro (Preview) pricing
Google · API id gemini-3.1-pro-preview · verified 2026-10-18
| Input | $2.00 |
| Cached input (cache hit) | $0.20 |
| Cache write | — |
| Output | $12.00 |
| Batch discount | 50% |
| Context window | 1,048,576 tokens |
| Max output | 65,536 tokens |
| Above 200K prompt tokens | $4.00 in / $18.00 out |
USD per 1M tokens unless noted. Official source
Estimate your workload on Gemini 3.1 Pro (Preview) →
What Gemini 3.1 Pro (Preview) costs for real workloads
| Workload | Gemini 3.1 Pro (Preview) | Mistral Large 4 | DeepSeek V4 Pro | Grok 4.7 | Gemini 4 Argon |
|---|---|---|---|---|---|
| 10,000 chatbot replies 2,000 input + 400 output tokens each, 50% of the prompt cached | $70.00 | $15.86 | $29.48 | $49.00 | $61.00 |
| One 30-step coding agent run 12K system + tools prompt, 1K output and 3K tool result per step, caching on | $1.03 | $0.29 | $0.38 | $1.45 | $0.76 |
| 1M documents classified (batch) 600 input + 20 output tokens each, batch API where available | $720 | $225 | $871 | $1,320 | $700 |
Compared with the cheapest other flagship models. Change the numbers in the calculator.
Billing notes
Preview. Tiered above 200K-token prompts. Cache storage $4.50/1M tok/hr. released = model page "Latest update" month. Output price includes thinking tokens. Explicit context caching also bills storage per 1M tokens/hour; Google has no separate cache-write price.
Where Gemini 3.1 Pro (Preview) ranks by use case
Position by cost among all models that fit each workload (1 = cheapest).
- Cheapest LLM for coding agents: #24 of 36 (Per run (cached): $1.03)
- Cheapest LLM for RAG chatbots: #27 of 36 (Per 1,000 answers: $14.10)
- Cheapest LLM for batch classification and extraction: #25 of 36 (Classify 1M docs: $720)
- Long-context document analysis (400K tokens): #20 of 29 (10 questions, cached: $3.41)
- Cheapest LLM for high-volume customer support: #27 of 36 (Per 1,000 replies: $5.90)
Counting tokens for a prompt? The token counter estimates Gemini 3.1 Pro (Preview) tokens (Gemini tokenizer, estimated) and input cost.
Other Google models
- Gemini 4 Argon: $2.00 / $10.00
- Gemini 3.8 Flash: $0.75 / $3.75
- Gemini 3.6 Flash: $0.75 / $3.75
- Gemini 3.5 Flash-Lite: $0.30 / $2.50
- Gemini 2.5 Flash: $0.30 / $2.50
- Gemini 3.1 Flash-Lite: $0.25 / $1.50
FAQ
How much does Gemini 3.1 Pro (Preview) cost per 1M tokens?
Gemini 3.1 Pro (Preview) costs $2.00 per 1M input tokens and $12.00 per 1M output tokens at standard rates (verified 2026-10-18).
Does Gemini 3.1 Pro (Preview) support prompt caching?
Yes. Cached input is billed at $0.20 per 1M tokens.
Is there a batch discount for Gemini 3.1 Pro (Preview)?
Yes. The batch API is 50% cheaper than standard requests.
What is the context window of Gemini 3.1 Pro (Preview)?
1,048,576 tokens, with up to 65,536 output tokens. Prompts over 200,000 tokens are billed at $4.00 input and $18.00 output for the whole request.