---
title: "Gemini 3.1 Pro Preview API pricing: ⁨$2⁩ in, ⁨$12⁩ out · DotsAgent"
description: "Gemini 3.1 Pro Preview by Google: price per million input, cached and output tokens, context window, agent features and what a real agent task costs on it."
url: https://dotsagent.io/models/gemini-3-1-pro-preview
---

[Google](https://dotsagent.io/providers/google)

· Flagship

preview

# Gemini 3.1 Pro Preview API pricing and specs

The newest Pro model in the Gemini API, still in preview, with a separate endpoint that favours custom tools over built-in ones.

Input

$2

Cached input

$0.20

Output

$12

US dollars per million tokens, standard tier, short-prompt rate

Gemini 3.5 Pro was announced in May but has no API model string yet. Computer use is not listed for this model, and there is no free tier.

Prompts over 200K tokens are billed at $4 input, $0.40 cached and $18 output per million, and the higher rate applies to the whole request.

## Spec sheet

- **API model string**: `gemini-3.1-pro-preview`
- **Provider**: [Google](https://dotsagent.io/providers/google)
- **Context**: 1.05M tokens
- **Max output**: 66K tokens
- **Released**: February 19, 2026
- **Batch API**: 50% off, results within hours
- **Documented agent features**: Tool callingStructured outputBuilt-in web searchAdjustable reasoning

## What a task costs

Four reference workloads priced at this model's list rates, with caching applied after the first call. Your numbers will differ; the calculator lets you change every assumption.

| Workload | Per task | Per 1,000 tasks |
| --- | --- | --- |
| Support bot 4 calls, short tool lookups | $0.061 | $61 |
| Coding agent 30 calls, files and test output | $2.05 | $2,049 |
| Browser agent 25 calls, screenshots and page text | $1.42 | $1,417 |
| Research agent 15 calls, long search results | $1.37 | $1,368 |

[Change the assumptions](https://dotsagent.io/cost#model=gemini-3-1-pro-preview)

## Other Google models

- [Gemini 3.8 Flash](https://dotsagent.io/models/gemini-3-8-flash): $0.75 / $3.75

- [Gemini 3.5 Flash](https://dotsagent.io/models/gemini-3-5-flash): $1.50 / $9

- [Gemini 3.5 Flash-Lite](https://dotsagent.io/models/gemini-3-5-flash-lite): $0.30 / $2.50

## Similar cost elsewhere

Models from other providers whose cost on the 30-step coding workload is closest to this one.

- [Claude Sonnet 5.5](https://dotsagent.io/models/claude-sonnet-5-5): $1.98 per coding task

- [GPT-6.1 Sol](https://dotsagent.io/models/gpt-6-1-sol): $1.69 per coding task

- [GLM-5.3](https://dotsagent.io/models/glm-5-3): $1.63 per coding task

- [Qwen3.8-Max](https://dotsagent.io/models/qwen3-8-max): $1.63 per coding task

## Sources

1. [ai.google.dev](https://ai.google.dev/gemini-api/docs/pricing)/gemini-api/docs/pricing
2. [ai.google.dev](https://ai.google.dev/gemini-api/docs/models/gemini-3.1-pro-preview)/gemini-api/docs/models/gemini-3.1-pro-preview
3. [ai.google.dev](https://ai.google.dev/gemini-api/docs/changelog)/gemini-api/docs/changelog

Independent reference for people who build AI agents. Not affiliated with any vendor named here.

© 2026 DotsAgent · Facts checked October 1, 2026
