Gemini 3.1 Pro Preview Custom Tools
google/gemini-3.1-pro-preview-customtoolsGemini 3.1 Pro Preview Custom Tools is a separate endpoint of Google's Gemini 3.1 Pro Preview, the Pro-tier reasoning model of the Gemini 3 series, tuned for agentic workflows that mix bash with custom tools. Google says it is better at prioritizing user-defined functions, such as file viewing or code search tools, over a general bash tool. Pick it for coding agents built on custom tools; Google notes quality may fluctuate in use cases that do not benefit from such tools, where the standard 3.1 Pro Preview fits better.
En savoir plus- Prix d'entrée
- $1.70
$2.00USD / 1 M tokens - Prix de sortie
- $10.20
$12.00USD / 1 M tokens - Lecture du cache
- $0.17
$0.20USD / 1 M tokens - Fenêtre de contexte
- 1M
- Sortie max
- 65.5K
Spécifications
- Entrée
- Texte, image, audio
- Sortie
- Texte
À propos de ce modèle
Gemini 3.1 Pro Preview Custom Tools is a separate endpoint of Google's Gemini 3.1 Pro Preview, the Pro-tier reasoning model of the Gemini 3 series, tuned for agentic workflows that mix bash with custom tools. Google says it is better at prioritizing user-defined functions, such as file viewing or code search tools, over a general bash tool. Pick it for coding agents built on custom tools; Google notes quality may fluctuate in use cases that do not benefit from such tools, where the standard 3.1 Pro Preview fits better.
Essayer le modèle
Bac à sable
Rédigez un prompt pour tester ce modèle. L'utilisation est facturée aux tarifs affichés.
Essayez une invite
Ajouter une image (facultatif)
Votre réponse apparaîtra ici
Choisissez un exemple ou rédigez une invite, puis cliquez sur Exécuter.
Commencer à construire
Envoyez votre première requête
Choisissez l'une des APIs prises en charge avec authentification unifiée et suivi de l'utilisation.
curl -X POST "https://api.sandbase.ai/v1/chat/completions" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "google/gemini-3.1-pro-preview-customtools",
"messages": [
{
"role": "user",
"content": "Hello"
}
],
"max_tokens": 2048
}'Les champs ci-dessous décrivent l’API Chat Completions. Gemini generateContent API utilise le format natif de requête et de réponse du fournisseur, comme indiqué dans l’exemple ci-dessus.
Schéma d'entrée
10 paramètres · 1 obligatoires · 9 facultatifs
| Paramètre | Type | Obligatoire | Description |
|---|---|---|---|
messages | object[] | Obligatoire | Conversation so far, as an ordered list of messages with a role (system, user or assistant) and content. |
seed | integer | Facultatif | Best-effort deterministic sampling: repeated requests with the same seed and parameters should return similar results. |
stop | string[] | Facultatif | Sequences where the model stops generating. The stop sequence is not included in the output. |
tools | array | Facultatif | Functions the model may call. Each tool declares a name, description and JSON Schema parameters. |
top_p | number | Facultatif | Nucleus sampling: only tokens within this cumulative probability are considered. · Min : 0 · Max : 1 |
stream | boolean | Facultatif | Stream the response as server-sent events instead of returning it in one piece. · Par défaut : false |
max_tokens | integer | Facultatif | Maximum number of tokens to generate in the response. · Max : 65536 |
temperature | number | Facultatif | Sampling temperature. Higher values make output more random; lower values make it more focused. · Min : 0 · Max : 2 · Par défaut : 1 |
tool_choice | string | Facultatif | Controls tool use: "auto", "none", "required", or a specific function. |
response_format | object | Facultatif | Output format, for example { "type": "json_object" } or a JSON Schema for structured output. |
Schéma de sortie
| Champ | Type | Description |
|---|---|---|
id | string | Identifiant unique de la complétion |
object | string | Type d'objet, par exemple « chat.completion » |
model | string | Modèle utilisé pour la complétion |
choices | array | Liste des choix de complétion |
choices[].message.content | string | Contenu textuel généré |
choices[].finish_reason | string | Raison de l'arrêt de la génération |
usage.prompt_tokens | integer | Nombre de tokens dans le prompt |
usage.completion_tokens | integer | Nombre de tokens dans la complétion |
usage.total_tokens | integer | Nombre total de tokens utilisés |
Questions
FAQ
Comment appeler Google Gemini 3.1 Pro Preview Custom Tools via SandBase ?
Créez une clé API SandBase, puis envoyez des requêtes avec l’identifiant de modèle "google/gemini-3.1-pro-preview-customtools" à Chat Completions API (/v1/chat/completions) ou Gemini generateContent API (/v1beta/models/google/gemini-3.1-pro-preview-customtools:generateContent) sur https://api.sandbase.ai. Les exemples de requêtes sur cette page montrent la charge utile exacte.
Combien coûte Google Gemini 3.1 Pro Preview Custom Tools ?
$1.70 pour 1 M de tokens d’entrée et $10.20 pour 1 M de tokens de sortie avec la remise actuelle de 15% (prix catalogue $2 / $12), facturé à la requête depuis votre solde SandBase.
Quelle est la fenêtre de contexte de Google Gemini 3.1 Pro Preview Custom Tools ?
1M tokens de contexte, avec jusqu’à 65.5K tokens de sortie par réponse.
Quelles fonctionnalités Google Gemini 3.1 Pro Preview Custom Tools prend-il en charge ?
Google Gemini 3.1 Pro Preview Custom Tools prend en charge vision (entrée d’image), raisonnement, appel de fonction, sortie structurée. Consultez les spécifications ci-dessus pour la liste complète.
Ai-je besoin d’un compte Google distinct ?
Non. Une seule clé API SandBase et un seul solde vous donnent accès à Google Gemini 3.1 Pro Preview Custom Tools et aux autres modèles du catalogue ; vous n’avez pas besoin de créer un compte Google séparément.
