Home / Model Explorer / Gemini 3.1 Pro

Gemini 3.1 Pro API

Google·1M contextChatReasoningTool callingVision

Multimodal Flagship · Deep Reasoning

Overview

About this model

Google the latest multimodal flagship (official preview version), 1M ultra-long context, with comprehensive leadership in deep reasoning, image understanding, and tool calling capabilities.

Capabilities

Capability matrix

TextSupported
VisionSupported
Audio—
ToolsSupported
JSONSupported
ReasoningSupported

Pricing and groups

Routes and pricing

GeminiSpecial Offer Routes0.14× official price (save 86%)Collecting data

Third-party reverse-engineered channel. gemini cache hit rate is low!

Input

$0.28 / 1M

Output

$1.68 / 1M

Cache read

$0.028 / 1M

Cache write

— / 1M

All pricing tiers and conditions

Standard

Input length ≤ 200,000 tokens

Input

$0.28 / 1M

Output

$1.68 / 1M

Cache read

$0.028 / 1M

Cache write

— / 1M

Long context

Input length > 200,000 tokens

Input

$0.56 / 1M

Output

$2.52 / 1M

Cache read

$0.056 / 1M

Cache write

— / 1M

Recent availabilityPast 24 hours · Active probes—
24h ago16h ago8h agoNow

Prices are in USD per million tokens. This page shows a public price snapshot. Before sending a request, check the Model Explorer for current prices. The console shows account-specific routes and charges.

How to compare prices · How to interpret performance metrics

Snapshot: . Availability reflects active probes over the past 24 hours; performance reflects actual calls.

API

Integration example

Use a Yomi API key that can access this model and route. Check the endpoint and request parameters when switching models or protocols.

Set the environment variable YOMI_API_KEY.

Quick start · Pricing and billing · Protocol reference · Chat Completions · Native Gemini API

Python · OpenAI SDK
# pip install openai
import os
from openai import OpenAI

client = OpenAI(
    base_url="https://api.yomiapi.com/v1",
    api_key=os.environ["YOMI_API_KEY"],
)

resp = client.chat.completions.create(
    model="gemini-3.1-pro",
    messages=[{"role": "user", "content": "Hello"}],
)
print(resp.choices[0].message.content)
curl · OpenAI compatible
curl 'https://api.yomiapi.com/v1/chat/completions' \
  -H "Authorization: Bearer $YOMI_API_KEY" \
  -H "Content-Type: application/json" \
  --data '{
  "model": "gemini-3.1-pro",
  "messages": [
    {
      "role": "user",
      "content": "Hello"
    }
  ]
}'
curl · Gemini
curl 'https://api.yomiapi.com/v1beta/models/gemini-3.1-pro:generateContent' \
  -H "x-goog-api-key: $YOMI_API_KEY" \
  -H "Content-Type: application/json" \
  --data '{
  "contents": [
    {
      "role": "user",
      "parts": [
        {
          "text": "Hello"
        }
      ]
    }
  ]
}'

Connect to Gemini 3.1 Pro now

Create an API key in the console and select an available route.

Get an API key