Gemini 3.1 Pro Preview Custom Tools

GoogleMCP Tool CallReasoning
google/gemini-3.1-pro-preview-customtoolsClosed API

Advanced Gemini model for complex reasoning, coding, and multimodal analysis

Benchmark Pricing$2.00 / 1M in$12.00 / 1M out$0.20 cache read
Context: 1,048,576 tokens•Max Output: 65,536 tokens•Knowledge: 2025-01•Released: 2026-02-19

TECHNICAL SPECIFICATIONS

Context Window1,048,5761M tokens
Max Output65,53665.5K tokens
LicenseProprietaryCloud API only
Input Modalities
TextVisionPDFAudioVideo
Function / Tool CallingSupported (MCP Ready)
Structured OutputsGuaranteed Schema

MODEL CONTEXT PROTOCOL (MCP) READINESS

✓ Gemini 3.1 Pro Preview Custom Tools natively supports OpenAI / Anthropic format tool calling and is fully compatible with MCP servers and agent loops.

MCP Context Window Recommendations

With a context capacity of 1,048,576 tokens, this model can handle extremely large MCP resource manifests, complete database schemas, and multiple active server tool definitions simultaneously without degradation.

API CALL INVOCATION EXAMPLE

// Example: Calling Gemini 3.1 Pro Preview Custom Tools via OpenAI SDK
import OpenAI from "openai";

const client = new OpenAI({
  apiKey: process.env.GOOGLE_API_KEY,
});

const response = await client.chat.completions.create({
  model: "google/gemini-3.1-pro-preview-customtools",
  messages: [{ role: "user", content: "Hello! Can you inspect MCP tools?" }],
});

console.log(response.choices[0].message.content);

PRICING BY PROVIDER

12 providers
Googlegemini-3.1-pro-preview-customtools
$2.00 / $12.00$0.20 cache
NanoGPTgoogle/gemini-3.1-pro-preview-customtools
$2.00 / $12.00$0.20 cache
Tempr Gatewaygoogle/gemini-3.1-pro-preview-customtools
$2.00 / $12.00$0.20 cache
AI/ML APIgoogle/gemini-3.1-pro-preview-customtools
$2.75 / $16.50$0.28 cache
AIHubMixgemini-3.1-pro-preview-customtools
$2.00 / $12.00$0.20 cache
Eden AIgoogle/gemini-3.1-pro-preview-customtools
$2.00 / $12.00$0.20 cache
Merge Gatewaygoogle/gemini-3.1-pro-preview-customtools
$2.00 / $12.00$0.20 cache
Kilo Gatewaygoogle/gemini-3.1-pro-preview-customtools
$2.00 / $12.00$0.20 cache
Vertexgemini-3.1-pro-preview-customtools
$2.00 / $12.00$0.20 cache
Neongemini-3-1-pro
$2.00 / $12.00$0.20 cache
OpenRoutergoogle/gemini-3.1-pro-preview-customtools
$2.00 / $12.00$0.20 cache
OrcaRoutergoogle/gemini-3.1-pro-preview-customtools
$4.00 / $18.00$0.40 cache

Rates in USD per 1M tokens. Rates synchronized from models.dev public catalog.

Prompt Caching Active

This model supports prompt caching at $0.20 / 1M tokens, saving up to 90% on repetitive MCP tool definitions and system instructions.

MODEL RESOURCES