Back to catalog
Publisher : GoogleFamily : GeminiAvailableNo subscription

Gemini 3.1 Pro API

Model ID : gemini-3.1-pro

Model ID

gemini-3.1-pro

OpenAI-compatible API

Context window

1,048,576 tokens

Maximum output

65,536 tokens

Input / 1M tokens

2.00 USD

Output / 1M tokens

12.00 USD

Cache read / 1M tokens

$0.20

Cache write / 1M tokens

$2.00

Cache reads reuse stored tokens; cache writes create the provider cache.

Access to this model

Authorized plans : gold, bronze, silver, pro, business

This model is also available with credits without a subscription.

Published capabilities

  • Vision
  • Tool calling
  • Streaming
  • Reasoning

Minimal request

curl https://api.routerlab.ch/v1/chat/completions \
  -H "Authorization: Bearer $ROUTERLAB_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"gemini-3.1-pro","max_tokens":128,"messages":[{"role":"user","content":"Hello RouterLab"}]}'

Audience measurement

Allow Google Analytics and RouterLab to measure public visits and link campaign sources to your signup? This is optional and can be changed at any time. If you decline, only anonymous visit totals are kept.