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.
Читать далее- Цена входа
- $1.70
$2.00USD / 1 млн токенов - Цена выхода
- $10.20
$12.00USD / 1 млн токенов - Чтение из кэша
- $0.17
$0.20USD / 1 млн токенов - Окно контекста
- 1M
- Макс. выход
- 65.5K
Характеристики
- Вход
- Текст, изображение, аудио
- Выход
- Текст
Об этой модели
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.
Попробовать модель
Песочница
Введите prompt, чтобы попробовать эту модель. Использование тарифицируется по указанным ценам.
Попробуйте запрос
Добавить изображение (необязательно)
Ваш ответ появится здесь
Выберите пример или напишите запрос, затем нажмите «Запустить».
Начните разработку
Отправьте свой первый запрос
Выберите любой поддерживаемый API с единообразной аутентификацией и учётом использования.
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
}'Поля ниже описывают Chat Completions API. Gemini generateContent API использует собственный формат запроса и ответа поставщика, как показано в примере выше.
Схема ввода
10 параметров · 1 обязательных · 9 необязательных
| Параметр | Тип | Обязательный | Описание |
|---|---|---|---|
messages | object[] | Обязательный | Conversation so far, as an ordered list of messages with a role (system, user or assistant) and content. |
seed | integer | Необязательный | Best-effort deterministic sampling: repeated requests with the same seed and parameters should return similar results. |
stop | string[] | Необязательный | Sequences where the model stops generating. The stop sequence is not included in the output. |
tools | array | Необязательный | Functions the model may call. Each tool declares a name, description and JSON Schema parameters. |
top_p | number | Необязательный | Nucleus sampling: only tokens within this cumulative probability are considered. · Мин.: 0 · Макс.: 1 |
stream | boolean | Необязательный | Stream the response as server-sent events instead of returning it in one piece. · По умолчанию: false |
max_tokens | integer | Необязательный | Maximum number of tokens to generate in the response. · Макс.: 65536 |
temperature | number | Необязательный | Sampling temperature. Higher values make output more random; lower values make it more focused. · Мин.: 0 · Макс.: 2 · По умолчанию: 1 |
tool_choice | string | Необязательный | Controls tool use: "auto", "none", "required", or a specific function. |
response_format | object | Необязательный | Output format, for example { "type": "json_object" } or a JSON Schema for structured output. |
Схема вывода
| Поле | Тип | Описание |
|---|---|---|
id | string | Уникальный идентификатор завершения |
object | string | Тип объекта, например "chat.completion" |
model | string | Модель, использованная для завершения |
choices | array | Список вариантов завершения |
choices[].message.content | string | Сгенерированный текст |
choices[].finish_reason | string | Причина остановки генерации |
usage.prompt_tokens | integer | Количество токенов в запросе |
usage.completion_tokens | integer | Количество токенов в завершении |
usage.total_tokens | integer | Общее количество использованных токенов |
Вопросы
FAQ
Как вызвать Google Gemini 3.1 Pro Preview Custom Tools через SandBase?
Создайте API key SandBase, затем отправляйте запросы с идентификатором модели "google/gemini-3.1-pro-preview-customtools" на Chat Completions API (/v1/chat/completions) или Gemini generateContent API (/v1beta/models/google/gemini-3.1-pro-preview-customtools:generateContent) по адресу https://api.sandbase.ai. Примеры запросов на этой странице показывают точный payload.
Сколько стоит Google Gemini 3.1 Pro Preview Custom Tools?
$1.70 за 1 млн входных токенов и $10.20 за 1 млн выходных токенов с текущей скидкой 15% (базовая цена $2 / $12), списывается за каждый запрос с баланса SandBase.
Каково контекстное окно Google Gemini 3.1 Pro Preview Custom Tools?
1M токенов контекста и до 65.5K выходных токенов на ответ.
Какие возможности поддерживает Google Gemini 3.1 Pro Preview Custom Tools?
Google Gemini 3.1 Pro Preview Custom Tools поддерживает зрение (вход изображений), рассуждение, вызов функций, структурированный вывод. Полный список см. выше в разделе Specifications.
Нужен ли мне отдельный аккаунт Google?
Нет. Один API key SandBase и один баланс дают вам доступ к Google Gemini 3.1 Pro Preview Custom Tools и другим моделям в каталоге; отдельно регистрироваться в Google не нужно.
