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.
Baca selengkapnya- Harga input
- $1.70
$2.00USD / 1M token - Harga output
- $10.20
$12.00USD / 1M token - Pembacaan cache
- $0.17
$0.20USD / 1M token - Jendela konteks
- 1M
- Output maks
- 65.5K
Spesifikasi
- Input
- Teks, gambar, audio
- Output
- Teks
Tentang model ini
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.
Coba model ini
Playground
Tulis prompt untuk mencoba model ini. Penggunaan ditagihkan sesuai harga yang ditampilkan.
Coba prompt
Tambahkan gambar (opsional)
Respons Anda akan muncul di sini
Pilih contoh atau tulis prompt, lalu klik Jalankan.
Mulai membangun
Kirim permintaan pertama Anda
Pilih salah satu API yang didukung dengan autentikasi dan pelacakan penggunaan terpadu.
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
}'Field di bawah menjelaskan Chat Completions API. Gemini generateContent API menggunakan format request dan response native vendor, seperti ditunjukkan pada contoh di atas.
Skema Input
10 parameter · 1 wajib · 9 opsional
| Parameter | Tipe | Wajib | Deskripsi |
|---|---|---|---|
messages | object[] | Wajib | Conversation so far, as an ordered list of messages with a role (system, user or assistant) and content. |
seed | integer | Opsional | Best-effort deterministic sampling: repeated requests with the same seed and parameters should return similar results. |
stop | string[] | Opsional | Sequences where the model stops generating. The stop sequence is not included in the output. |
tools | array | Opsional | Functions the model may call. Each tool declares a name, description and JSON Schema parameters. |
top_p | number | Opsional | Nucleus sampling: only tokens within this cumulative probability are considered. · Min: 0 · Maks: 1 |
stream | boolean | Opsional | Stream the response as server-sent events instead of returning it in one piece. · Bawaan: false |
max_tokens | integer | Opsional | Maximum number of tokens to generate in the response. · Maks: 65536 |
temperature | number | Opsional | Sampling temperature. Higher values make output more random; lower values make it more focused. · Min: 0 · Maks: 2 · Bawaan: 1 |
tool_choice | string | Opsional | Controls tool use: "auto", "none", "required", or a specific function. |
response_format | object | Opsional | Output format, for example { "type": "json_object" } or a JSON Schema for structured output. |
Skema Output
| Field | Tipe | Deskripsi |
|---|---|---|
id | string | Pengidentifikasi unik untuk completion |
object | string | Jenis objek, mis. "chat.completion" |
model | string | Model yang digunakan untuk completion |
choices | array | Daftar pilihan completion |
choices[].message.content | string | Konten teks yang dihasilkan |
choices[].finish_reason | string | Alasan generasi berhenti |
usage.prompt_tokens | integer | Jumlah token dalam prompt |
usage.completion_tokens | integer | Jumlah token dalam completion |
usage.total_tokens | integer | Total token yang digunakan |
Pertanyaan
FAQ
Bagaimana cara memanggil Google Gemini 3.1 Pro Preview Custom Tools melalui SandBase?
Buat kunci API SandBase, lalu kirim permintaan dengan model ID "google/gemini-3.1-pro-preview-customtools" ke Chat Completions API (/v1/chat/completions) atau Gemini generateContent API (/v1beta/models/google/gemini-3.1-pro-preview-customtools:generateContent) di https://api.sandbase.ai. Contoh permintaan di halaman ini menunjukkan payload yang tepat.
Berapa biaya Google Gemini 3.1 Pro Preview Custom Tools?
$1.70 per 1 juta token input dan $10.20 per 1 juta token output dengan diskon 15% saat ini (harga daftar $2 / $12), ditagihkan per permintaan dari saldo SandBase Anda.
Berapa jendela konteks Google Gemini 3.1 Pro Preview Custom Tools?
1M token konteks, dengan hingga 65.5K token output per respons.
Fitur apa saja yang didukung Google Gemini 3.1 Pro Preview Custom Tools?
Google Gemini 3.1 Pro Preview Custom Tools mendukung vision (input gambar), penalaran, function calling, output terstruktur. Lihat Specifications di atas untuk daftar lengkap.
Apakah saya memerlukan akun Google terpisah?
Tidak. Satu kunci API dan saldo SandBase memberi Anda akses ke Google Gemini 3.1 Pro Preview Custom Tools dan model lain di katalog; Anda tidak perlu mendaftar ke Google secara terpisah.
