Home / Model Explorer / Gemini 3.1 Pro Preview
Gemini 3.1 Pro Preview API
Multimodal preview · Programming and complex reasoning
Overview
About this model
Gemini 3.1 Pro official preview model, designed for complex reasoning, code development, long document analysis, and multimodal understanding. Supports text and image input, tool calling, and 100K Token long context. When the input context exceeds 20K Token, billing is based on the long-context tier, and the actual cost is subject to the price of the selected route.
Capabilities
Capability matrix
Pricing and groups
Routes and pricing
Google Vertex Direct Connection, balancing stability and response speed
Input
$0.72 / 1M
Output
$4.32 / 1M
Cache read
$0.072 / 1M
Cache write
—
Prices in USD per 1M tokens. Rates follow provider adjustments; live prices in Model Explorer as the reference.
Snapshot: 2026-10-07 23:09. Availability reflects active probes over the past 24 hours; performance reflects actual calls.
API
Integration example
All models share one OpenAI-compatible endpoint. To switch models, change the model field. One key accesses every model.
# pip install openai
from openai import OpenAI
client = OpenAI(
base_url="https://api.yomiapi.com/v1",
api_key="sk-your-yomi-key",
)
resp = client.chat.completions.create(
model="gemini-3.1-pro-preview",
messages=[{"role": "user", "content": "Hello"}],
)
print(resp.choices[0].message.content)curl https://api.yomiapi.com/v1/chat/completions \
-H "Authorization: Bearer sk-your-yomi-key" \
-H "Content-Type: application/json" \
-d '{
"model": "gemini-3.1-pro-preview",
"messages": [{"role": "user", "content": "Hello"}]
}'Connect to Gemini 3.1 Pro Preview now
Receive credits on registration, access every model with one key, and connect through low-latency global nodes.
Get a free API key
Yomi API