APIPod logoAPIPod
Google

Gemini 3.1 Pro Preview

Gemini 3.1 Pro Preview is Google's cutting-edge reasoning model. It can improve software engineering performance, enhance the reliability of intelligent agents, and use tokens more efficiently in complex workflows.

byGoogleInput TypetextimageaudiovideofileOutput TypetextContext Window1MMax Output66K

Providers

This model is available from multiple providers. Select one to see its pricing and sample code.

GoogleDefault
$0.8 / $4.8/ 1M tokens0.40× base price
Supported formatsOpenAI Chat CompletionsOpenAI ResponsesGoogle Gemini

Official Channels of Google AI Studio for Gemini

Gemini Mix
$1.2 / $7.2/ 1M tokens0.60× base price
Supported formatsOpenAI Chat CompletionsOpenAI ResponsesGoogle Gemini

Google Gemini Studio + Vertex Hybrid Channel

Pricing

Transparent pay-as-you-go pricing by token usage — no subscriptions or hidden fees.

Google
google/gemini-3.1-pro-preview
Prices forchange
Per 1M tokens
Input
Prompt and context tokens
$0.8
Output
Generated completion tokens
$4.8
Cache read
Reused or stored prompt context
$0.08
Cache write · 1h
Reused or stored prompt context
$1.8

Code

Copy an example below to start calling this model in minutes.

API / request example

Sample Code & API

Create API Key
from openai import OpenAI

client = OpenAI(
    base_url="https://api.apipod.ai/v1",
    api_key="<YOUR_API_KEY>",
)

# Chat Completions
completion = client.chat.completions.create(
    model="gemini-3.1-pro-preview",
    messages=[
        {
            "role": "user",
            "content": "What is the meaning of life?",
        }
    ],
)
print(completion.choices[0].message.content)