Gemini 3.1 Pro Preview

google/gemini-3.1-pro-preview

A chat model with a 1M-token context window, at $2.10 per million input tokens and $12.60 per million output tokens.

Details

Maker
google
Kind
Chat
Context window
1,000,000 tokens
Max output
64,000 tokens
Input
$2.10 per million tokens
Cached input
$0.21 per million tokens, 90% off
Cache write
Same as input
Output
$12.60 per million tokens
Capabilities
Reasoning, tool use, vision, file input, web search
Takes
Text, image, pdf
Returns
Text
Zero data retention
Not on every provider
No training on requests
Yes, on every provider
Released
2026-02-19
Newer model
google/gemini-4-argonReleased later by the same maker, costs no more, and lists the same capabilities. Compare the two

Description

This model improves upon Gemini 2.5 Pro and is catered towards challenging tasks, especially those involving complex reasoning or agentic workflows. Improvements highlighted include use cases for coding, multi-step function calling, planning, reasoning, deep knowledge tasks, and instruction following.

Call it

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

Set PHANTOM_KEY to your key. Any OpenAI client works with the base URL https://phantom.codes/v1.