Eliminating the 4 Hidden Taxes: AI Tokens, Manual Work, SaaS Cliffs & AI Scrapers Sponsor this header →

Google: Gemini 3.1 Pro Preview Custom Tools API Pricing & Cost Breakdown

Gemini 3.1 Pro Preview Custom Tools is a variant of Gemini 3.1 Pro that improves tool selection behavior by preventing overuse of a general bash tool when more efficient third-party...

google/gemini-3.1-pro-preview-customtools
Vision
Last checked: Nov 21, 2026
Input / 1M Tokens
$2.00
Prompt & context tokens
Output / 1M Tokens
$12.00
Generated completion tokens
Blended (3:1) / 1M
$4.50
Tier: balanced
Context Window
1.05M
Max output: 66K

Technical Specifications

Canonical IDgoogle/gemini-3.1-pro-preview-customtools
ProviderGoogle
Input Modalitiestext, audio, image, video, file
Output Modalitiestext
Open-WeightNo (Proprietary API)
Reasoning OptimizedStandard
Vision SupportYes

Estimated Monthly API Spend

StageMonthly TokensEst. Cost
Prototype / MVP
500 req/day
22.5M in / 6.0M out $117.00/mo
Growing SaaS
10,000 req/day
600.0M in / 150.0M out $3,000/mo
Scale Production
100,000 req/day
7500.0M in / 1800.0M out $36,600/mo
Simulate Custom Volume → Cut Cost via 3-Tier Cascade →

Deploy or Route Google: Gemini 3.1 Pro Preview Custom Tools

Multi-Provider Gateway

OpenRouter

Unified API gateway for 300+ LLMs with automatic fallbacks and unified billing.

Call via OpenRouter →
Edge AI Gateway

Cloudflare Workers AI

Global edge AI gateway with response caching, rate-limiting, and serverless workers.

Build on Cloudflare →
Multimodal API

Replicate

Pay-per-second cloud API for multimodal, vision, audio, and open-weight models.

Run on Replicate →

Some outbound infrastructure and API gateway links on KostoZero are partner referrals that help keep this observatory free and independent at no extra cost to you.

Cheaper Alternatives to Google: Gemini 3.1 Pro Preview Custom Tools

ModelProviderInput / 1MOutput / 1MBlendedContext
OpenAI: GPT-4o OpenAI $2.50 $10.00 $4.38 128K
OpenAI: GPT-4o (2024-08-06) OpenAI $2.50 $10.00 $4.38 128K
OpenAI: GPT-4o (2024-11-20) OpenAI $2.50 $10.00 $4.38 128K
Anthropic: Claude Sonnet 5 Anthropic $2.00 $10.00 $4.00 1M
Anthropic: Claude Sonnet 5.5 Anthropic $2.00 $10.00 $4.00 1M
Anthropic: Claude Sonnet Latest Anthropic $2.00 $10.00 $4.00 1M

Frequently Asked Questions

How much does Google: Gemini 3.1 Pro Preview Custom Tools API cost per 1M tokens?

Google: Gemini 3.1 Pro Preview Custom Tools costs $2.00 per 1M input tokens and $12.00 per 1M output tokens ($4.50 blended at a 3:1 ratio).

What is the maximum context window of Google: Gemini 3.1 Pro Preview Custom Tools?

Google: Gemini 3.1 Pro Preview Custom Tools supports up to 1,048,576 tokens (1.05M) of input context and up to 65,536 output completion tokens.

What are cheaper alternatives to Google: Gemini 3.1 Pro Preview Custom Tools?

Lower-cost options tracked right now include OpenAI: GPT-4o ($4.38/1M), OpenAI: GPT-4o (2024-08-06) ($4.38/1M), OpenAI: GPT-4o (2024-11-20) ($4.38/1M).

Get Instant Price-Drop (>10%), New AI Bot & SaaS Cliff Alerts

Every 6 hours our autonomous sync checks 40+ LLMs, AI crawlers, and SaaS pricing cliffs—alerting you when prices drop >10% or new scrapers appear.