Models

Gemini 3.1 Pro

tools vision

gemini-3.1-proNewest pro model from Google's Gemini series

+100% credit with a usage package. $100 buys $200 of usage on this model — from $10. Cached input tokens are not discounted.

Input / 1M tokens

$2

$0.000002 / token

Output / 1M tokens

$12

$0.000012 / token

Cached input / 1M

$0.2

Uptime · 24h

—

No traffic yet

Details

Type
Chat
Input
audio, file, image, text, video
Output
text
Context
1,048,576 tokens

Supported parameters

max_tokenstemperaturetop_pstopseedpresence_penaltyfrequency_penaltyresponse_formatpluginstoolstool_choiceparallel_tool_calls

Last 24 hours

Requests per hour; red = provider errors.

Avg latency
—
Avg first token
—
Throughput
—

Endpoints

Requests go to these routes in order and fail over between them. Pick or exclude them by label with provider.order / only / ignore, or reorder with provider.sort.

LabelInput / output per 1MFirst tokenThroughputStatus
primary$2 / $12——Available
backup$2 / $12——Available

Use it

curl https://api.ultragpt.pro/v1/chat/completions \
  -H "Authorization: Bearer $ULTRAGPT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gemini-3.1-pro",
    "messages": [{ "role": "user", "content": "Hello!" }]
  }'

Anthropic SDK / Claude Code

curl https://api.ultragpt.pro/v1/messages \
  -H "x-api-key: $ULTRAGPT_API_KEY" \
  -H "anthropic-version: 2023-06-01" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gemini-3.1-pro",
    "max_tokens": 1024,
    "messages": [{ "role": "user", "content": "Hello!" }]
  }'

More Google models

All Gemini API models and prices

Compare Gemini 3.1 Pro

FAQ

How much does the Gemini 3.1 Pro API cost?

$2 input / $12 output per 1M tokens; cached input $0.2 per 1M tokens. You pay per use from a prepaid balance - no subscription, and every response reports its exact cost in usage.cost.

How do I call Gemini 3.1 Pro through the API?

Create an UltraGPT API key, point the official OpenAI SDK (or any OpenAI-compatible client) at https://api.ultragpt.pro/v1 and pass "gemini-3.1-pro" as the model. Anthropic SDKs and Claude Code work too, through /v1/messages.

What is the context window of Gemini 3.1 Pro?

Gemini 3.1 Pro accepts up to 1,048,576 tokens of context on UltraGPT.

Does Gemini 3.1 Pro support tools, vision and reasoning?

Tool / function calling: yes. Image input (vision): yes. Reasoning: no. Input: audio, file, image, text, video; output: text.