Gemini 3.1 Pro Preview

LiveGoogleAliases: gemini-3.1-pro-preview-customtools
Model IDgemini-3.1-pro-preview

Gemini 3.1 Pro Preview by Google: 1M context, 64K max output, with Vision, Function Calling, Reasoning, Prompt Caching, Response Schema, Audio, Video, File Input, Streaming, Web Search. Via SoleAPI, Input (prompt) costs 3.2 Credits / M tokens, 76% below list price. 7-day uptime 90.1%. Compatible with Anthropic Messages / Gemini generateContent: swap the base URL and you are connected.

Context window
1Mtokens
1,048,576
Max output
64Ktokens
65,536
7-day uptime
90.1%
487 probes · 48 failed
Measured throughput
76.9tokens / s
Real traffic, last 7 days · output side

Capabilities

Listed exactly as the catalog flags them, including what this model does not support.

10 of 15 supported

Vision

Natively multimodal: captioning, classification, visual Q&A, chart and screenshot understanding. Images are converted to tokens at the input rate.

Function Calling

Connect the model to external tools and APIs: it decides when to call which function and with what arguments, your code runs it. Force or forbid calls with tool_choice.

Reasoning

The model thinks before answering, which markedly improves multi-step planning and reasoning for coding, math and data analysis. Thinking tokens bill at the output rate.

Prompt Caching

Repeated prefixes (system prompts, long documents) hit the cache: reads cost far less than input, writes are priced by retention time.

Response Schema

Constrain output to a JSON Schema you provide for predictable, type-safe results without parsing free text.

Audio

Audio input or speech output.

Video

Video input understanding or video generation.

File Input

Upload PDFs and other documents directly; the model reads the whole document with native vision.

Streaming

Tokens arrive over SSE as they are generated; the first frame is forwarded immediately with no buffering. Claude Code, Codex and similar tools depend on this.

Web Search

Vendor-hosted live web retrieval; the model decides when to search and cites sources.

RealtimeNot supported

Bidirectional low-latency voice / text sessions over WebSocket.

SessionNot supported

Server-side multi-turn context (e.g. previous_response_id in Responses) so you need not resend history.

MediaNot supported

Image / video / music generation endpoints.

Multipart FormNot supported

multipart/form-data file-upload requests.

Binary ResponseNot supported

Endpoints that return raw audio / image bytes.

Reliability & performance

SoleAPI probes this model through the real supply chain on a schedule — measured, not self-reported.

Last probe: 10/24/2026, 7:47:10 AM
90.1%487 probes in 7 days, 48 failed · automatic failover to backup channels
3.21 s✕ 10/23/2026, 11:57:04 AM3.08 s2.69 s2.76 s3.74 s3.72 s2.75 s3.80 s2.65 s5.54 s3.83 s3.81 s4.77 s7.20 s46.53 s7.04 s3.37 s2.94 s3.52 s4.34 s3.33 s2.59 s3.09 s3.55 s2.98 s2.64 s3.41 s2.77 s2.99 s3.64 s8.57 s2.67 s2.98 s3.21 s2.51 s3.12 s2.53 s2.73 s2.60 s4.21 s4.01 s2.62 s3.36 s2.67 s7.10 s3.39 s2.76 s4.03 s2.49 s7.82 s2.73 s4.39 s3.45 s2.74 s3.10 s3.20 s3.14 s2.96 s54.72 s
10/23/2026, 11:35:37 AMnow
successful probe, bar height = end-to-end latency (0–4 s)failed probegrid 1 s

Latency & throughput

Latest latency54.72s
Avg. of last 605.22s
P95 of last 608.57s
Output throughput76.9t/s
ProtocolsAnthropic Messages / Gemini generateContent

Protocols & code samples

Change the base URL to SoleAPI, keep everything else. Native protocols pass straight through; “adapted” ones are translated by the gateway.

Gemini CLI setup guide

Anthropic SDK or any Messages-protocol client: point base_url at https://api.soleapi.com and use a SoleAPI key.

curl https://api.soleapi.com/v1/messages \
  -H "x-api-key: $SOLEAPI_KEY" \
  -H "anthropic-version: 2023-06-01" \
  -H "content-type: application/json" \
  -d '{
    "model": "gemini-3.1-pro-preview",
    "max_tokens": 1024,
    "messages": [{"role": "user", "content": "Explain prompt caching in one sentence"}]
  }'

Full price list

List price → SoleAPI price per channel, every pricing dimension, nothing hidden.

1 Credit ≈ $0.151 · rate updated daily
ItemUnitGoogle list priceOfficial Gemini Group ×1.676% off
Input (prompt)per 1M tokens$2.003.2 Credits
Output (completion)per 1M tokens$12.0019.2 Credits
Cache readper 1M tokens$0.20.32 Credits
Web search (general)per 1K calls$14.0022.4 Credits

“Off” is computed at 1 Credit = ¥1 and today’s rate: 1 − channel multiplier × (1 Credit in the list currency). Priority: when request body field service_tier matches ^priority$, billed at Cache read ×1.8、Output (completion) ×1.8、Input (prompt) ×1.8、other items ×1.8; stacks with any channel. Standard(>200K): when input exceeds 200,000 tokens, billed at Cache read ×2、Output (completion) ×1.5、Input (prompt) ×2; stacks with any channel.

FAQ

How much does the Gemini 3.1 Pro Preview API cost?

Via SoleAPI, Input (prompt) costs 3.2 Credits / M tokens, with 1 Credit = ¥1. That is 76% below the Google list price.

What are the context window and output limit of Gemini 3.1 Pro Preview?

Context window 1M tokens, up to 64K tokens per response.

Does Gemini 3.1 Pro Preview support function calling and structured outputs?

Function calling with tool_choice control is supported; structured outputs (JSON Schema) are supported.

How do I use Gemini 3.1 Pro Preview in Claude Code?

Set ANTHROPIC_BASE_URL=https://api.soleapi.com, ANTHROPIC_API_KEY to your SoleAPI key and ANTHROPIC_MODEL=gemini-3.1-pro-preview, then run claude. No config files to edit.

How is the 90.1% uptime measured?

SoleAPI sends probe requests to this model through the real supply chain on a schedule and divides successful probes by total probes over the last 7 days. When one channel fails the gateway fails over to a backup, so the figure reflects what end users actually see.

One API key for Gemini 3.1 Pro Preview and 30+ models

Free credits on sign-up, pay as you go, no monthly fee.

Get an API Key