Google route

gemini-3.1-pro

Gemini 3.1 Pro API pricing.

One OpenAI-compatible route at the vendor list price with 0% markup, billed per token from one prepaid balance. No subscription required.

Route status Available

#27

Cost rank / 39

premium

Cost band

Published route economicsUSD / 1M tokens

Input / 1M tokens

$2.00

Output / 1M tokens

$12.00

Context window

1M

Provider

Google

Workload calculator

Put the token rate into context.

These examples apply the published input and output rates directly. Actual cost follows the exact tokens your client sends and the model returns.

This route is the 27th cheapest of 39 comparable text models and cheaper than 11 on the same key. Its context window ranks 15th of 39.

Cost simulationPublished base rate

Short request

$0.032

10K input + 1K output

Agent turn

$0.32

100K input + 10K output

Exact token billing

No request minimum

One model ID change

OpenAI compatible

Cost neighbourhood

Nearby routes, same workload.

Every comparison uses the same 100K-input / 10K-output turn. Changing route is a one-line model ID edit.

Price does not measure task quality. Check Gemini 3.1 Pro benchmark evidence before optimizing on cost alone. For generation routes, see GPT Image 2.

First request

Route it in one call.

Use any OpenAI SDK or tool. Keep the request shape, point the base URL at RouterPlex, and set the model ID shown here.

Read the quickstart
curl /chat/completions
curl https://api.routerplex.com/v1/chat/completions \
-H "Authorization: Bearer $ROUTERPLEX_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "gemini-3.1-pro",
"messages": [{"role": "user", "content": "Hello!"}]
}'

Route notes

Questions before production traffic.

Same endpoint, every route
01How much does the Gemini 3.1 Pro API cost?+

Through RouterPlex, Gemini 3.1 Pro costs $2.00 per 1M input tokens and $12.00 per 1M output tokens — the vendor list price with 0% markup, billed per token from a prepaid balance you top up from $5.

02What does one Gemini 3.1 Pro agent turn cost?+

A 100K-token input with a 10K-token reply costs about $0.32 on Gemini 3.1 Pro. That makes it the 27th cheapest of 39 comparable text models on RouterPlex, roughly 29.6× the cost of the cheapest option (DeepSeek V4 Flash).

03What is a cheaper alternative to Gemini 3.1 Pro?+

Claude Sonnet 5 from Anthropic is the closest cheaper model on RouterPlex — $0.30 per agent turn against $0.32 for Gemini 3.1 Pro, at $2.00/1M input and $10.00/1M output. Both run on the same key and the same endpoint, so switching is a one-line model ID change.

04Is Gemini 3.1 Pro cheaper than Qwen3.7 Max?+

Yes. Per agent turn, Gemini 3.1 Pro costs about $0.32 against $0.33 for Qwen3.7 Max — 2% less.

05What is the context window of Gemini 3.1 Pro?+

Gemini 3.1 Pro supports a 1M token context window on RouterPlex, the 15th largest of the 39 models that publish one.

06Can I use Gemini 3.1 Pro with the OpenAI SDK?+

Yes. RouterPlex serves Gemini 3.1 Pro through an OpenAI-compatible endpoint at https://api.routerplex.com/v1 — point any OpenAI SDK or tool at that base URL with your RouterPlex key and set model to "gemini-3.1-pro".

Deploy this route

Put Gemini 3.1 Pro behind one key.

Top up from $5 with no subscription required.

Gemini 3.1 Pro API Pricing · RouterPlex