google/gemini-3.1-pro-preview-customtools

Google: Gemini 3.1 Pro Preview Custom Tools

Context length
1049K
Input / 1M tokens
$2.00
Output / 1M tokens
$12.00
Released
2026-02-25
Modality
text+image+file+audio+video->text

About 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...

Call Google: Gemini 3.1 Pro Preview Custom Tools

Via OpenRouter: one base URL for every provider.

curl https://openrouter.ai/api/v1/chat/completions \
  -H "Authorization: Bearer $OPENROUTER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "google/gemini-3.1-pro-preview-customtools",
    "messages": [{"role": "user", "content": "Say hello"}]
  }'

Direct on Google Gemini / AI Studio:

curl https://generativelanguage.googleapis.com/v1beta/chat/completions \
  -H "Authorization: Bearer $GEMINI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gemini-3.1-pro-preview-customtools",
    "messages": [{"role": "user", "content": "Say hello"}]
  }'

Google Gemini / AI Studio keys

OpenRouter keys

OpenRouter keys work for google/gemini-3.1-pro-preview-customtools regardless of the upstream provider.