← All models
Gemini 3.1 Pro (Preview)
google/gemini-3.1-pro-preview
Google's most capable Gemini API model, with multimodal input and a 1M-token context window.
Context
1M
Input
$2/M
Output
$12/M
Released
—
Prompts over 200K tokens: $4 in / $18 out.
Price source: ai.google.dev · list price checked Oct 2026
textimageaudiovideoGoogle
Use this model
from openai import OpenAI
client = OpenAI(base_url="https://magicai.lol/v1", api_key="<MAGICAI_API_KEY>")
resp = client.chat.completions.create(
model="gemini-3.1-pro-preview",
messages=[{"role": "user", "content": "Hello!"}],
)
print(resp.choices[0].message.content)Performance
Latency (TTFT)
— (collecting)
Throughput
— (collecting)
Uptime
— (collecting)
Live performance stats appear once the model has traffic on MagicAI. Prices shown are catalog list prices and may differ from final gateway pricing.