googleVision
Google: Gemini 3.1 Pro Preview Custom Tools
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...
Context
1M tokens
Input / 1M tokens
$2
Output / 1M tokens
$12
Benchmark
—
Pricing
Input tokens$2 per 1M tokens
Output tokens$12 per 1M tokens
Cache read$0.20 per 1M tokens
Cache write$0.38 per 1M tokens
Image$2 per image
Technical details
Model IDgoogle/gemini-3.1-pro-preview-customtools
Context window1M tokens
Input modalitiestext, audio, image, video, file
Output modalitiestext
TokenizerGemini
Max output tokens65,536
Use with MegaBrain
import OpenAI from 'openai'
const client = new OpenAI({
baseURL: 'https://getmegabrain.com/api/gateway/v1',
apiKey: process.env.MEGABRAIN_API_KEY,
})
const response = await client.chat.completions.create({
model: 'google/gemini-3.1-pro-preview-customtools',
messages: [{ role: 'user', content: 'Hello!' }],
})Ready to use Google: Gemini 3.1 Pro Preview Custom Tools?
Get an API key and start making requests in minutes.
Get an API key