gemini-3.1-pro-preview-customtools

by Google

gemini-3.1-pro-preview-customtools For users who build applications mixing bash and custom tools, the Gemini 3.1 Pro preview provides a separate endpoint accessible via the API call gemini-3.1-pro-preview-customtools. This endpoint is better at prioritizing your custom tools (for example, view_file or search_code). Please note that while gemini-3.1-pro-preview-customtools is optimized for agent workflows that use custom tools and Bash, you may experience quality fluctuations in some use cases that cannot benefit from these tools.

API Pricing

Input$2 / 1M tokens
Output$12 / 1M tokens
Cache read$0.5 / 1M tokens

Specifications

Context window1,000,000 tokens
Modalitiestext, image, audio, video
Featuresthinking, tool calling, function calling, structured outputs, web, deepsearch, long context
Endpointschat_completions, gemini_api, claude_api

FAQ

What is gemini-3.1-pro-preview-customtools?

gemini-3.1-pro-preview-customtools For users who build applications mixing bash and custom tools, the Gemini 3.1 Pro preview provides a separate endpoint accessible via the API call gemini-3.1-pro-preview-customtools. This endpoint is better at prioritizing your custom tools (for example, view_file or search_code). Please note that while gemini-3.1-pro-preview-customtools is optimized for agent workflows that use custom tools and Bash, you may experience quality fluctuations in some use cases that cannot benefit from these tools.

What is the context length of gemini-3.1-pro-preview-customtools?

gemini-3.1-pro-preview-customtools has a 1,000,000 token context window.

How much does gemini-3.1-pro-preview-customtools cost?

On AIHubMix, gemini-3.1-pro-preview-customtools costs $2 per million input tokens and $12 per million output tokens. Cached input reads are billed at $0.5 per million tokens.

What modalities does gemini-3.1-pro-preview-customtools support?

gemini-3.1-pro-preview-customtools accepts text, image, audio and video input.

What features does gemini-3.1-pro-preview-customtools support?

gemini-3.1-pro-preview-customtools supports thinking, tool calling, function calling, structured outputs, web, deepsearch and long context. Per-protocol parameter support is listed in the capability table on this page.

How do I call gemini-3.1-pro-preview-customtools via API?

gemini-3.1-pro-preview-customtools is available through the AIHubMix unified API. The API is OpenAI-compatible: point your OpenAI SDK at https://aihubmix.com/v1, use your AIHubMix API key, and set the model name to gemini-3.1-pro-preview-customtools — no other code changes needed.

Who develops gemini-3.1-pro-preview-customtools?

gemini-3.1-pro-preview-customtools is developed by Google. AIHubMix aggregates it alongside models from other providers behind one API and one bill.

More from Google

gemini-3.6-flash

by Google

Gemini 3.6 Flash provides sustained frontier-level intelligence optimized for real-world…

$1.5/1M in · $7.5/1M out
1,048,576 tokens context

gemini-3.1-flash-lite-image

by Google

Google's newest, most compact, and most cost-effective image generation and editing…

$0.25/1M in · $1.5/1M out

gemini-3.5-flash-lite

by Google

Gemini 3.5 Flash-Lite is a low-latency, cost-effective multimodal model optimized for…

$0.3/1M in · $2.5/1M out
1,048,576 tokens context

gemini-3.5-flash-lite-free

by Google

Gemini 3.5 Flash-Lite free version: Free model resources are limited and provided only…

1,048,576 tokens context

gemini-3.6-flash-free

by Google

Gemini 3.6 Flash free version: fFree model resources are limited and provided only for…

1,000,000 tokens context

gemini-3.5-flash

by Google

Gemini 3.5 Flash provides sustained frontier-level intelligence optimized for real-world…

$1.5/1M in · $9/1M out
1,000,000 tokens context

Use gemini-3.1-pro-preview-customtools via the AIHubMix unified API — one interface for every major LLM.