Google: Gemini 3.1 Pro Preview

LLM -72.5%
gemini-3.1-pro-preview by Google

Google Gemini 3.1 Pro Preview model (-72.5% off official $2/$12 list) with 1.05M context and 90% prompt cache read savings.

Context Window 1.05M Max output 66K · Agent budget 232K
In / Out Price
$2 / $12$0.55 / $3.3
USD / 1M · OpenDesign Go -72.5%
Cache Read
$0.2$0.055 (-90%)
No cache write surcharge
Modalities & Effort Text + Image + Audio + Video + File → Text Reasoning effort: high

Pricing & Cost Calculator

Per-1M token pricing on OpenDesign Go (-72.5% off list).

Estimate Request Cost
Input cost10,000 × $0.55/1M $0.0055
Output cost2,000 × $3.3/1M $0.0066
Cache read0 × $0.055/1M $0
Estimated cost (OpenDesign Go -72.5%) $0.044$0.0121
Standard tier
Input$2$0.55 / 1M
Output$12$3.3 / 1M
Cache read$0.2$0.055 / 1M
Input LengthInputOutputCache ReadCache Write
≤ 200,000$2$0.55$12$3.3$0.2$0.055—
> 200,000$4$1.1$18$4.95$0.4$0.11—
1,000 Quick Chats
$20$5.5
4K input + 1K output tokens each
100 Coding Agent Turns
$7.6$2.09
10K fresh + 40K cached + 4K output each
10 Long-Context Reviews
$3.48$0.957
150K input + 4K output per review
Total input (including cached tokens) above 200,000 selects the long-context tier for the entire request.

Specs & Parameters

Context Window1.05M (budget 232K)
Max Output65,536
Reasoning EffortDefault: high
Prompt Caching$0.055/1M (-90%)
ParameterTypeValue / Support
modelstringgemini-3.1-pro-preview
messages / inputarraytext, image, audio, video, file
max_tokensinteger≤ 65,536
streambooleanSSE token streaming
reasoning_effortstringlow / medium / high (default: high)
tools / response_formatobjectFunction calling & JSON schema

Routing, Reliability & Privacy

Managed upstream routing with automatic failover, locked public pricing, and zero data retention.

Upstream Routing Multi-Route Failover Automatic priority routing and upstream failover managed continuously by OpenDesign Go Link.
Price Consistency Locked Public Rate Rates stay fixed across upstream failover.
Auto-Availability 5xx Circuit Breaker Unhealthy backends automatically enter cooldown/probation while traffic shifts to healthy routes.
Data Policy (ZDR) Zero Payload Storage Logs only member, model, token/media units, and usage cost — never prompts, outputs, or media bytes.

API

Call gemini-3.1-pro-preview using OpenAI Compatible (Chat / Responses).

1

Set your OpenDesign Go API key

export COROUTER_API_KEY="YOUR_API_KEY" # Base URL: https://amr-link.open-design.ai/v1
2

Make your first request

Chat Completionshttps://amr-link.open-design.ai/v1/chat/completions
curl https://amr-link.open-design.ai/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $COROUTER_API_KEY" \
  -d '{
    "model": "gemini-3.1-pro-preview",
    "max_tokens": 1024,
    "messages": [
      { "role": "user", "content": "Refactor this API handler for streaming responses." }
    ]
  }'
3

Inspect response payload & HTTP errors

HTTP 200 OKgemini-3.1-pro-preview
{
  "id": "chatcmpl_od_01j9x7k2m8",
  "object": "chat.completion",
  "model": "gemini-3.1-pro-preview",
  "choices": [
    {
      "index": 0,
      "message": {
        "role": "assistant",
        "content": "Here is the streaming handler implementation..."
      },
      "finish_reason": "stop"
    }
  ],
  "usage": {
    "prompt_tokens": 50000,
    "completion_tokens": 4000,
    "total_tokens": 54000,
    "prompt_tokens_details": {
      "cached_tokens": 40000
    }
  }
}

Coding Agents

Pre-filled configurations for Gemini 3.1 Pro Preview across supported coding tools.

OpenAI Compatibleopencode.json
{
  "$schema": "https://opencode.ai/config.json",
  "provider": {
    "corouter": {
      "npm": "@ai-sdk/openai-compatible",
      "name": "OpenDesign Go",
      "options": {
        "baseURL": "https://amr-link.open-design.ai/v1",
        "apiKey": "{env:COROUTER_API_KEY}"
      },
      "models": {
        "gemini-3.1-pro-preview": {
          "name": "Gemini 3.1 Pro Preview"
        }
      }
    }
  },
  "model": "corouter/gemini-3.1-pro-preview"
}

Compare Models

Side-by-side pricing, context window, and 50K-token coding turn estimate.

ModelProviderContextInputOutputCache Read50K Turn
Gemini 3.1 Pro Preview Current
Google1.05M$2$0.55$12$3.3$0.2$0.055(-90%)$0.076$0.0209
Google1.05M$3$0.825$15$4.125$0.15$0.04125(-95%)$0.096$0.0264
Google1.05M$2$0.55$10$2.75$0.1$0.0275(-95%)$0.064$0.0176
OpenAI1.05M$8$1.2$40$6$0.4$0.06(-95%)$0.256$0.0384
OpenAI1.05M$2$0.3$10$1.5$0.1$0.015(-95%)$0.064$0.0096

Frequently Asked Questions

Gemini 3.1 Pro Preview (gemini-3.1-pro-preview) is priced at $0.55/1M input and $3.3/1M output on OpenDesign Go (-72.5% off official list of $2/$12), with prompt cache reads at $0.055/1M ($0.2 list, -90%).

Gemini 3.1 Pro Preview supports Text + Image + Audio + Video + File → Text with a 1.05M context window and up to 65,536 output tokens. Prompts exceeding 200,000 total input tokens switch to the long-context tier ($1.1/$4.95 per 1M).

Yes. Gemini 3.1 Pro Preview supports reasoning_effort levels (low / medium / high) with a default of high.

Cached prompt reads on Gemini 3.1 Pro Preview are billed at $0.055/1M tokens (-90% vs standard input) with no cache write surcharge.

Yes. Copy the pre-filled configuration in the Coding Agents section above, set model to "gemini-3.1-pro-preview", and replace YOUR_API_KEY with your OpenDesign Go key.

No. OpenDesign Go enforces Zero Data Retention and records only account, model, token counts, and usage cost — never prompt or response bodies.

More models from Google

View provider page

Explore more models

Full directory