Gemini 3.1 Pro Preview

15% OFFgoogle/gemini-3.1-pro-preview

Gemini 3.1 Pro Preview is the Pro-tier reasoning model of Google's Gemini 3 series, released in February 2026 to refine Gemini 3 Pro with better thinking, improved token efficiency and more grounded, factually consistent answers. Google optimizes it for software engineering and for agentic workflows that need precise tool use and reliable multi-step execution across real-world domains. It accepts text, image, video, audio and PDF input, remains a preview model, and is Google's recommended replacement for the retired Gemini 3 Pro Preview.

Input price
$1.70$2.00USD / 1M tokens
Output price
$10.20$12.00USD / 1M tokens
Context window
1M
Max output
65.5K
Production route

Try the model

Playground

Open playground
Input⌘ / Ctrl + Enter

Try a prompt

1M context65.5K max outputVision
Input$2.00/M$1.70/MOutput$12.00/M$10.20/MCache read$0.20/M$0.17/M
15% OFF
OutputReady

Your response will appear here

Choose an example or write a prompt, then click Run.

Model card

Specifications

Pricing

Input
$1.70 / 1M tokens
Output
$10.20 / 1M tokens
Cache read
$0.17 / 1M tokens

Context & modalities

Context window
1,048,576 tokens
Max output
65,536 tokens
Input
Text, image
Output
Text

Capabilities

Chat
Supported
Vision
Supported
Reasoning
Supported
Structured output
Supported
Function calling
Supported
Audio input
Supported

Access

Provider
Google
Model ID
google/gemini-3.1-pro-preview
Execution
sync
Base URL
https://api.sandbase.ai
API
Chat Completions API
Endpoint
/v1/chat/completions

Start building

Send your first request

OpenAI-compatible endpoint with unified authentication and usage tracking.

Production API
Chat Completions API endpoint
https://api.sandbase.ai/v1/chat/completions
Model ID
google/gemini-3.1-pro-preview
# The quoted heredoc keeps Unicode and shell metacharacters unchanged.
result=$(curl --fail-with-body --silent \
  -X POST "https://api.sandbase.ai/v1/chat/completions" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  --data-binary @- <<'SANDBASE_JSON'
{
  "model": "google/gemini-3.1-pro-preview",
  "messages": [
    {
      "role": "user",
      "content": "Hello"
    }
  ],
  "max_tokens": 2048
}
SANDBASE_JSON
)
printf '%s\n' "$result"

Choose your model

Compare models

All language models
ModelContextInput / 1MOutput / 1MReleased
Google1M$1.70$10.20Feb 19, 2026
Google1M$4.00$20.00Oct 13, 2026
Google64K$1.50$7.50Oct 8, 2026
Google1M$1.50$7.50Sep 2, 2026
Google1M$1.50$7.50Aug 13, 2026
Google1M$0.30$2.50Jul 21, 2026

Questions

FAQ

How do I call Google Gemini 3.1 Pro Preview through SandBase?

Create a SandBase API key, then send requests with the model ID "google/gemini-3.1-pro-preview" to Chat Completions API (/v1/chat/completions) at https://api.sandbase.ai. The request examples on this page show the exact payload.

How much does Google Gemini 3.1 Pro Preview cost?

$1.70 per 1M input tokens and $10.20 per 1M output tokens with the current 15% discount (list price $2 / $12), billed per request from your SandBase balance.

What is the context window of Google Gemini 3.1 Pro Preview?

1M tokens of context, with up to 65.5K output tokens per response.

Which features does Google Gemini 3.1 Pro Preview support?

Google Gemini 3.1 Pro Preview supports vision (image input), reasoning, function calling, structured output. See Specifications above for the full list.

Do I need a separate Google account?

No. One SandBase API key and balance gives you access to Google Gemini 3.1 Pro Preview and the other models in the catalog; you do not need to sign up with Google separately.