#### Models

# Gemini 3.1 Pro

* Model ID: gemini-3.1-pro

* Context window: 200k

* Max context: 1M

* Provider: Google

* Capabilities: agent, thinking, images

* Speed: medium

* Cost: medium

* Intelligence: frontier

Gemini 3.1 Pro is Google's latest model. It processes images alongside code, making it strong for UI/UX work from design mockups. It supports context windows up to 1M tokens.

## Strengths

* Processes images alongside code. Strong for UI/UX coding from design mockups, frontend development, and visual code understanding.
* Up to 1M tokens of context for whole-codebase analysis.
* Strong capabilities at $2/1M input tokens.

## Tools

Gemini 3.1 Pro has access to all agent tools in the Agents Window including:

* Search files and folders: Find files by name, read directory structures, and grep for patterns.

* Web: Generate search queries and fetch results from the web.

* Read files: Read file contents, including images for vision-capable models.

* Edit files: Suggest edits and apply them automatically.

* Run shell commands: Execute terminal commands and monitor output.

* Browser: Control a browser to take screenshots, test applications, and verify visual changes.

* Image generation: Generate images from text descriptions or reference images.

* Ask questions: Ask clarifying questions while continuing to work in the background.

* Fetch rules: Retrieve rules based on type and description.

Learn more about [how tools work](/build/agents-window/agent/overview#tools) and [tool calling fundamentals](/build/agents-window/learn/tool-calling).

## Pricing

Gemini 3.1 Pro is a third-party model, so it isn't part of the usage included with your [plan](/build/agents-window/models-and-pricing#third-party-models). On The X Subscription it's billed at the rates below from your prepaid credit. On legacy plans it draws from the **Other Models** pool. All prices are per million tokens.

* Gemini 3.1 Pro (Google): input $2/M, cache write -, cache read $0.2/M, output $12/M

When input exceeds 200k tokens (long context), input and output pricing increases. See the pricing table above for the long context rates.
