Back to Models

Gemini 3.1 Pro Preview

googlegoogle/gemini-3.1-pro-preview

Google's most powerful agentic and coding model. It features a 1M token context window with complex multimodal understanding capabilities. Gemini 3.1 Pro excels at advanced reasoning, multi-step agentic tasks, and complex problem solving across text, code, images, and video.

Context Length
1M
Max Output
66K
Input Price
$2.40/ 1M tokens
Output Price
$14.40/ 1M tokens

Modalities

textimagepdftext

Pricing Breakdown

TypeRate
Input$2.40 / 1M tokens
Output$14.40 / 1M tokens

Supported Parameters

temperaturemax_tokenstop_ptoolstool_choiceresponse_formatstop

API Usage Examples

cURL
curl https://api.therouter.ai/v1/chat/completions   -H "Content-Type: application/json"   -H "Authorization: Bearer $THE_ROUTER_API_KEY"   -d '{
    "model": "google/gemini-3.1-pro-preview",
    "messages": [
      {"role": "user", "content": "Summarize the key points from this input."}
    ]
  }'