Google: Gemini 3.1 Pro

google/gemini-3.1-pro

Google Gemini 3.1 Pro API pricing

Gemini 3.1 Pro costs $0.800 per million input tokens and $4.80 per million output tokens on Oxyy. These are the pay-as-you-go prices after the current 60% discount (Launch Promo; standard price $2.00 input and $12.00 output), and cached input tokens are billed at $0.080 per million. It accepts text, images, video, audio and files and returns text, with a 1.05M-token context window and up to 66K output tokens per response. A cheaper Google option is Gemini 4 Argon at $0.800 / $4.00 per 1M tokens; for every model and rate, see Gemini API pricing.

Third-generation Pro model built for multimodal understanding, agentic capability, and vibe-coding; improved thinking, token efficiency, and factual grounding over Gemini 3 Pro.

ModalitiesTextImageVideoAudioFileText
Price$0.800 / $4.80 per 1M tokens in / outAll Gemini API pricing
Context1.05M
ReleasedFeb 1, 2026

Providers

Where this model runs, and what each route costs. Requests are sent to a healthy provider automatically; if one errors, the gateway retries against another serving the same model.

ProviderInput /MOutput /MCache read /MLatencyThroughput
Google$0.800$4.80$0.08017.92s145 tps

Capabilities (22)

StreamingTool callingParallel tool callsStructured outputReasoningThinkingSystem promptVisionVideo InputAudio InputPDF inputPrompt cachingCode executionComputer useFile SearchSearch GroundingMaps GroundingUrl ContextBatchFlex InferencePriority InferenceStop sequences

Supported parameters (11)

max_output_tokensstop_sequencesstreamtoolstool_configresponse_mime_typeresponse_schemathinking_levelmedia_resolutionsafety_settingsresponse_format

A parameter not listed here may be removed before the request reaches the model. When it is, the request still succeeds and the response names it, with the reason, in provider_specific_fields.dropped_params.

Pricing

What this model costs on Oxyy, pay as you go. "Charged" is the rate a request is billed at; the standard price is shown beside it for reference.

Input price
$0.800
per 1M input tokens · standard price $2.00
Output price
$4.80
per 1M output tokens · standard price $12.00
RateStandard priceChargedUnit
Input$2.00$0.800per 1M input tokens
Output$12.00$4.80per 1M output tokens
Cached input$0.200$0.080per 1M cached input tokens
Cache write$2.00$0.800per 1M cache-write tokens

Discount. Charged rates include the current "Launch Promo" discount of 60% on every rate.

UTC

Specifications

Model ID
gemini-3.1-pro
Developer
Google
Type
Text
Input
Text, images, video, audio and files
Output
Text
Context window
1,048,576 tokens
Max output
65,536 tokens
Released
Feb 1, 2026
Image input
Up to 20 MB each · PNG, JPEG, WebP, HEIC, HEIF
File input
Up to 100 MB each · PDF
Audio input
Up to 50 MB each · WAV, MP3, AIFF, AAC, OGG, FLAC
Video input
Up to 100 MB each · MP4, MPEG, MOV, AVI, WEBM
Endpoint
/v1/chat/completions

Quickstart

Call gemini-3.1-pro with a POST to /v1/chat/completions on https://api.oxyy.ai, using your Oxyy API key from the OXYY_API_KEY environment variable. The same key works for every model in the catalog.

import os
from openai import OpenAI

client = OpenAI(
    base_url="https://api.oxyy.ai/v1",
    api_key=os.environ["OXYY_API_KEY"],
)

response = client.chat.completions.create(
    model="gemini-3.1-pro",
    messages=[
        {"role": "user", "content": "Explain unified AI APIs in one sentence."},
    ],
)
print(response.choices[0].message.content)

Performance

Throughput is how fast the model writes (tokens per second — higher is better). Latency is total round-trip time (lower is better). TTFT is time-to-first-token — how long before you see anything appear (lower is better). Throughput and TTFT are measured on streaming requests, which are the only ones with a first-token moment to time.

Throughput
145tok/s
P50, streaming requests
Latency
17.92s
P50, end to end
UTC

Throughput

P992448 tok/s
P95387 tok/s
P50137 tok/s

Latency

P5025.0s
P7537.7s
P9588.2s
P99129.5s

Time to first token

P505084ms
P9558.6s

Cache hit rate

4.25%
Share of input tokens served from the prompt cache over the window.

Apps

Public apps that send the most traffic to this model. Good signal for what real production workloads look like — and a hint at which use cases this model is best suited for.

  1. 1.Z Code@electron 2.1M tokens

Activity

Token volume and request traffic to this model over time. Daily totals, UTC.

Prompt719.7M
Reasoning56.7M
Completion (excl. reasoning)33.7M

Prompt tokens measure input size. Reasoning tokens show internal thinking before a response. They are part of the output, so the completion bars show the rest of it and each day’s bar is its total.

Frequently asked questions

What is Gemini 3.1 Pro?
Third-generation Pro model built for multimodal understanding, agentic capability, and vibe-coding; improved thinking, token efficiency, and factual grounding over Gemini 3 Pro.
How much does Gemini 3.1 Pro cost?
Gemini 3.1 Pro costs $0.800 per million input tokens and $4.80 per million output tokens on Oxyy. These are the pay-as-you-go prices after the current 60% discount (Launch Promo; standard price $2.00 input and $12.00 output), and cached input tokens are billed at $0.080 per million. You pay per request, with no subscription.
What is the context length of Gemini 3.1 Pro?
Gemini 3.1 Pro has a context window of 1,048,576 tokens, and can return up to 65,536 tokens in one response.
Does Gemini 3.1 Pro support tool calling and structured outputs?
Yes — Gemini 3.1 Pro supports both tool calling and structured outputs.
What inputs and outputs does Gemini 3.1 Pro support?
Gemini 3.1 Pro accepts text, images, video, audio and files as input and returns text.
Which API endpoint does Gemini 3.1 Pro use?
Send a POST request to https://api.oxyy.ai/v1/chat/completions with "model": "gemini-3.1-pro", authenticated with your Oxyy API key. It is also served on /v1beta/models/gemini-3.1-pro:generateContent (Google Gemini SDK) and /v1/responses (Responses API).
When was Gemini 3.1 Pro released?
Gemini 3.1 Pro was released on Feb 1, 2026.
What other models does Google have?
Google also offers Gemini 2.5 Flash, Gemini 2.5 Flash-Lite, Gemini 2.5 Pro and Gemini 3.1 Flash-Lite through Oxyy.

Alternatives to Gemini 3.1 Pro

Models of the same kind from other vendors, closest in price first. Prices are pay-as-you-go on Oxyy, through the same API key.

Explore more models

More models from Google