Back to models
Google

Gemini 3.1 Pro Preview

Gemini 3.1 Pro Preview delivers advanced intelligence, complex problem-solving, and powerful agentic and vibe coding capabilities.

Quick Stats

Context

1049K

Max Output

66K

Provider

Google

Specs

1

Modalities

in audioin filein imagein textin videoout text

Specs & List Price (per 1M tokens)

Value
Input $2Output $12Cache read $0.2

Recommended Plan

Gemini 3.1 Pro Preview Starter Plan

Pay-as-you-go after top-up; $1 free credit for new users.

Buy Plan

API Endpoint

Model IDgoogle/gemini-3.1-pro-preview

cURL

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

Python

from openai import OpenAI

client = OpenAI(
    base_url="https://intertoken.ai/v1",
    api_key="$TOKENPORTAL_API_KEY",
)

resp = client.chat.completions.create(
    model="google/gemini-3.1-pro-preview",
    messages=[{"role": "user", "content": "Hello!"}],
)
print(resp.choices[0].message.content)

Start using this model

Sign up free, get an API key, and make your first call in 30 seconds.

Gemini 3.1 Pro Preview · TokenPortal