gemini-3.1-pro-preview API

Call gemini-3.1-pro-preview through StarseaAPI's single OpenAI-compatible endpoint — no separate account, no multi-key setup.

36.7
Intelligence index
68.8
Coding index
10.4
Agentic index

Pricing

Input$0.014 / 1M tokens
Output$0.09 / 1M tokens
Output multiplier×6.00

Use gemini-3.1-pro-preview with any OpenAI SDK

from openai import OpenAI
client = OpenAI(
  base_url="https://starseaapi.com/v1",
  api_key="sk-your-key"
)
resp = client.chat.completions.create(
  model="gemini-3.1-pro-preview",
  messages=[{"role":"user","content":"Explain quantum computing in one paragraph"}]
)
print(resp.choices[0].message.content)

In Claude Code / Cursor

Point base_url to https://starseaapi.com/v1 and select gemini-3.1-pro-preview as your model. Everything else stays the same.

Why gemini-3.1-pro-preview via StarseaAPI?

Get your API key → Compare all models