---
last_updated: 2026-11-20
source_url: https://opper.ai/google/gemini-3-1-pro-preview-customtools
title: "Gemini 3.1 Pro Preview Custom Tools by Google"
description: "Gemini 3.1 Pro Preview Custom Tools by Google is a Gemini 3.1 Pro variant tuned for reliable tool selection in agentic workflows, with 1M token context."
---

# Gemini 3.1 Pro Preview Custom Tools

By [Google](https://opper.ai/google).

Released 19 Feb 2026 · [Announcement](https://ai.google.dev/gemini-api/docs/changelog) · [All Google releases](https://opper.ai/model-releases/google)

Gemini 3.1 Pro Preview Custom Tools is a specialized variant of Google's Gemini 3.1 Pro designed to improve tool use in complex agentic workflows. It increases function calling reliability and steers the model toward registered custom functions instead of defaulting to a generic bash tool, which makes it well suited to coding agents and multi-tool systems where the model must pick the right tool for each task.

With a 1M token context window and strong reasoning, the model retains Gemini 3.1 Pro's multimodal understanding across text, images, video, audio, and code. It is aimed at developers building agents that orchestrate many custom tools and APIs, where consistent and accurate tool selection matters more than raw breadth.

## Available routes

Gemini 3.1 Pro Preview Custom Tools runs on 1 route through the Opper gateway. Prices are per 1M tokens. Its routes and prices, live from the catalogue, are public JSON with no API key needed at https://api.opper.ai/v3/models?q=gemini%2Fgemini-3.1-pro-preview-customtools.

| Provider | Model id | Region | Zero data retention | Training | Input | Output | Cache read |
| --- | --- | --- | --- | --- | --- | --- | --- |
| [Google Cloud](https://opper.ai/provider/google) | `gemini/gemini-3.1-pro-preview-customtools` | US (United States) | Abuse monitoring | No | $2.00 | $12.00 | Input price |

## Key info

- Model id: `gemini/gemini-3.1-pro-preview-customtools`
- Input: Text, Image, Audio, Video, Files
- Output: Text
- Features: Reasoning, Tools, Structured output
- Context window: 1M
- Max output: 66K
- Input price: $2.00 per 1M tokens
- Output price: $12.00 per 1M tokens
- Released: 19 Feb 2026
- US residency available
- Zero data retention with abuse monitoring
- No training by default

## Data handling per route

Each route hosting Gemini 3.1 Pro Preview Custom Tools has its own privacy posture, residency, and GDPR terms. Postures are maintained by Opper with a last-verification timestamp.

### Google Cloud — United States

Zero data retention with abuse monitoring: prompts and outputs are kept for abuse monitoring only, for a window the provider does not state, and are not used for training. No training on customer data. US; SCCs.

- Zero data retention: With abuse monitoring, window not stated.
- Training: No training on customer data.
- Logging: Abuse monitoring
- Abuse monitoring: On by default, holds flagged content, 55 days, a person can view samples
- Transfer mechanism: SCCs

Verified by Opper on 2026-09-17.

## Get started

Call Gemini 3.1 Pro Preview Custom Tools through the Opper gateway with one API key. Opper is drop-in compatible with the OpenAI, Anthropic and Google AI SDKs.

Gemini 3.1 Pro Preview Custom Tools is a premium model on Opper. Sign up needs no credit card: you get an API key straight away and the free models work in the playground and the API. Add a card to use premium models, pay-as-you-go with no minimum.

### Set it up with your agent

Paste this into a coding agent like Claude Code, Cursor or Codex and it will wire up Opper for you:

```text
Use curl to download, read and follow: https://skills.opper.ai Call Gemini 3.1 Pro Preview Custom Tools
```

### Or call it directly

OpenAI:

```javascript
import OpenAI from "openai";

const client = new OpenAI({
  apiKey: process.env.OPPER_API_KEY,
  baseURL: "https://api.opper.ai/v3/compat",
});

const completion = await client.chat.completions.create({
  model: "gemini/gemini-3.1-pro-preview-customtools",
  messages: [{ role: "user", content: "Hello" }],
});
console.log(completion.choices[0].message.content);
```

Anthropic:

```javascript
import Anthropic from "@anthropic-ai/sdk";

const client = new Anthropic({
  apiKey: process.env.OPPER_API_KEY,
  baseURL: "https://api.opper.ai/v3/compat",
});

const message = await client.messages.create({
  model: "gemini/gemini-3.1-pro-preview-customtools",
  max_tokens: 1024,
  messages: [{ role: "user", content: "Hello" }],
});
console.log(message.content);
```

Gemini:

```javascript
import { GoogleGenAI } from "@google/genai";

const ai = new GoogleGenAI({
  apiKey: process.env.OPPER_API_KEY,
  httpOptions: { baseUrl: "https://api.opper.ai/v3/compat" },
});

const response = await ai.models.generateContent({
  model: "gemini/gemini-3.1-pro-preview-customtools",
  contents: "Hello",
});
console.log(response.text);
```

cURL:

```bash
curl https://api.opper.ai/v3/compat/chat/completions \
  -H "Authorization: Bearer $OPPER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gemini/gemini-3.1-pro-preview-customtools",
    "messages": [{ "role": "user", "content": "Hello" }]
  }'
```

## Use Gemini 3.1 Pro Preview Custom Tools in your apps

Pick your tool to see how to run it on Gemini 3.1 Pro Preview Custom Tools through Opper.

- [Claude Code](https://opper.ai/apps/claude-code/gemini-3-1-pro-preview-customtools)
- [Claude Cowork](https://opper.ai/apps/claude-cowork/gemini-3-1-pro-preview-customtools)
- [Codex](https://opper.ai/apps/codex/gemini-3-1-pro-preview-customtools)
- [DeepSeek Harness](https://opper.ai/apps/deepseek-harness/gemini-3-1-pro-preview-customtools)
- [GitHub Copilot CLI](https://opper.ai/apps/github-copilot-cli/gemini-3-1-pro-preview-customtools)
- [Aider](https://opper.ai/apps/aider/gemini-3-1-pro-preview-customtools)
- [Goose](https://opper.ai/apps/goose/gemini-3-1-pro-preview-customtools)
- [Droid](https://opper.ai/apps/droid/gemini-3-1-pro-preview-customtools)
- [OpenCode](https://opper.ai/apps/opencode/gemini-3-1-pro-preview-customtools)
- [Pi](https://opper.ai/apps/pi/gemini-3-1-pro-preview-customtools)
- [OpenClaw](https://opper.ai/apps/openclaw/gemini-3-1-pro-preview-customtools)
- [Hermes](https://opper.ai/apps/hermes/gemini-3-1-pro-preview-customtools)
- [Copilot for Obsidian](https://opper.ai/apps/obsidian-copilot/gemini-3-1-pro-preview-customtools)
- [OmniRoute](https://opper.ai/apps/omniroute/gemini-3-1-pro-preview-customtools)
- [Cursor](https://opper.ai/apps/cursor/gemini-3-1-pro-preview-customtools)
- [Cline](https://opper.ai/apps/cline/gemini-3-1-pro-preview-customtools)
- [Continue](https://opper.ai/apps/continue/gemini-3-1-pro-preview-customtools)
- [Kilo Code](https://opper.ai/apps/kilo-code/gemini-3-1-pro-preview-customtools)
- [GitHub Copilot](https://opper.ai/apps/github-copilot/gemini-3-1-pro-preview-customtools)
- [Zed](https://opper.ai/apps/zed/gemini-3-1-pro-preview-customtools)
- [JetBrains AI Assistant](https://opper.ai/apps/jetbrains-ai-assistant/gemini-3-1-pro-preview-customtools)
- [Voidleap Code](https://opper.ai/apps/voidleap-code/gemini-3-1-pro-preview-customtools)
- [n8n](https://opper.ai/apps/n8n/gemini-3-1-pro-preview-customtools)
- [LibreChat](https://opper.ai/apps/librechat/gemini-3-1-pro-preview-customtools)
- [Open WebUI](https://opper.ai/apps/open-webui/gemini-3-1-pro-preview-customtools)
- [See all apps](https://opper.ai/apps)

## Other models from Google

- [Gemini 4 Argon](https://opper.ai/google/gemini-4-argon)
- [Gemini 3.8 Flash](https://opper.ai/google/gemini-3-8-flash)
- [Gemini 3.5 Flash-Lite](https://opper.ai/google/gemini-3-5-flash-lite)
- [Gemini 3.7 Flash](https://opper.ai/google/gemini-3-7-flash)
- [Gemini 3.6 Flash](https://opper.ai/google/gemini-3-6-flash)
- [Gemini 3.5 Flash](https://opper.ai/google/gemini-3-5-flash)
