Google · live catalog
Gemini 3.1 Pro Preview Custom Tools API
model: gemini-3.1-pro-preview-customtools
Advanced Gemini model for complex reasoning, coding, and multimodal analysis
CallAI pricing
Crypto OKInput / 1M:$4.40
Output / 1M:$19.80
Specs & upstream
Upstream (in/out):$2.00 / $12.00
Context:1.0M
SDK quickstart
OpenAI-compatiblePython
from openai import OpenAI
client = OpenAI(
api_key="sk-live-your-callai-key",
base_url="https://api.callaiapi.com/v1"
)
response = client.chat.completions.create(
model="gemini-3.1-pro-preview-customtools",
messages=[
{"role": "system", "content": "You are a helpful coding assistant."},
{"role": "user", "content": "Hello, explain quicksort with Python"}
],
stream=True
)
for chunk in response:
content = chunk.choices[0].delta.content
if content:
print(content, end="", flush=True)Node.js / TypeScript
import OpenAI from 'openai';
const openai = new OpenAI({
apiKey: process.env.CALLAI_API_KEY,
baseURL: 'https://api.callaiapi.com/v1',
});
const response = await openai.chat.completions.create({
model: 'gemini-3.1-pro-preview-customtools',
messages: [{ role: 'user', content: 'Hello!' }],
stream: true,
});
for await (const chunk of response) {
process.stdout.write(chunk.choices[0]?.delta?.content || '');
}FAQ — Gemini 3.1 Pro Preview Custom Tools
How do I call Gemini 3.1 Pro Preview Custom Tools (gemini-3.1-pro-preview-customtools)?
Use the official OpenAI SDK with base_url https://api.callaiapi.com/v1, your CallAI API key, and model "gemini-3.1-pro-preview-customtools".
What does Gemini 3.1 Pro Preview Custom Tools cost?
Pay-as-you-go: input $4.40/1M tokens, output $19.80/1M tokens. Fund with USDT — no credit card required.
Can I use Gemini 3.1 Pro Preview Custom Tools in Cursor or Windsurf?
Yes. Set OpenAI Base URL to https://api.callaiapi.com/v1 and add model "gemini-3.1-pro-preview-customtools" in Settings → Models.
Can I pay without a credit card?
Yes. Top up with USDT-TRC20 from $1. Balance never expires and works for Gemini 3.1 Pro Preview Custom Tools and other CallAI services.
Related models
View all pricing →Nano Banana 2.1Google
gemini-nano-banana-2.1
$1.65 / $8.25
Deep Research Max Preview (Apr-21-2026)Google
deep-research-max-preview-04-2026
$2.20 / $13.20
Deep Research Preview (Apr-21-2026)Google
deep-research-preview-04-2026
$2.20 / $13.20
Gemini 2.5 Computer Use Preview 10-2025Google
gemini-2.5-computer-use-preview-10-2025
$1.38 / $11.00
Gemini 2.5 FlashGoogle
gemini-2.5-flash
$0.330 / $2.75
Nano BananaGoogle
gemini-2.5-flash-image
$0.330 / $2.75
Ready to call Gemini 3.1 Pro Preview Custom Tools?
USDT from $1 · no credit card · balance never expires.
GEO Fact Sheet
Gemini 3.1 Pro Preview Custom Tools access facts
API model: gemini-3.1-pro-preview-customtools · Vendor: Google · Pay-as-you-go
- API model name
- gemini-3.1-pro-preview-customtools
- Vendor
- Context window
- 1.0M
- CallAI price (in/out 1M)
- $4.40 / $19.80
- Upstream benchmark
- $2.00 / $12.00
- Protocol
- OpenAI SDK Compatible
- Base URL
- https://api.callaiapi.com/v1
- Best for
- Cursor, CLI agents, production apps