Back to Models
Google: Gemini 3.1 Pro Preview AI Model Icon

Google: Gemini 3.1 Pro Preview

google/gemini-3.1-pro-preview

Description

Gemini 3.1 Pro Preview is Google’s frontier reasoning model, delivering enhanced software engineering performance, improved agentic reliability, and more efficient token usage across complex workflows. Building on the multimodal foundation of the Gemini 3 series, it combines high-precision reasoning across text, image, video, audio, and code with a 1M-token context window. Reasoning Details must be preserved when using multi-turn tool calling, see our docs here: https://openrouter.ai/docs/use-cases/reasoning-tokens#preserving-reasoning. The 3.1 update introduces measurable gains in SWE benchmarks and real-world coding environments, along with stronger autonomous task execution in structured domains such as finance and spreadsheet-based workflows. Designed for advanced development and agentic systems, Gemini 3.1 Pro Preview improves long-horizon stability and tool orchestration while increasing token efficiency. It introduces a new medium thinking level to better balance cost, speed, and performance. The model excels in agentic coding, structured planning, multimodal analysis, and workflow automation, making it well-suited for autonomous agents, financial modeling, spreadsheet automation, and high-context enterprise tasks.

API Usage Examples

OpenAI Compatible Endpoint

Use this endpoint with any OpenAI-compatible library. Model: Google: Gemini 3.1 Pro Preview (google/gemini-3.1-pro-preview)

curl https://api.ridvay.com/v1/chat/completions   -H "Content-Type: application/json"   -H "Authorization: Bearer YOUR_API_KEY"   -d '{
    "model": "google/gemini-3.1-pro-preview",
    "messages": [
      {
        "role": "user",
        "content": "Explain the capabilities of the Google: Gemini 3.1 Pro Preview model"
      }
    ],
    "temperature": 0.7,
    "max_tokens": 1024
  }'

Supported Modalities

  • Text
  • Images
  • Audio
  • Video

API Pricing

  • Input: 2$ / 1M tokens
  • Output: 12$ / 1M tokens
  • Image: 0$ / image

Token Limits

  • Max Output: 65,536 tokens
  • Max Context: 1,048,576 tokens

Subscription Tiers

  • free
  • pro
  • ultimate

More from google

Google: Gemini 2.5 Pro AI Model Icon

Google: Gemini 2.5 Pro

google/gemini-2.5-pro

Subscription Tiers:

free pro ultimate

Supported Modalities:

TextImagesAudioVideo
Google: Gemini 2.5 Flash AI Model Icon

Google: Gemini 2.5 Flash

google/gemini-2.5-flash

Subscription Tiers:

free pro ultimate

Supported Modalities:

TextImagesAudioVideo
Google: Gemini 2.5 Flash Lite AI Model Icon

Google: Gemini 2.5 Flash Lite

google/gemini-2.5-flash-lite

Subscription Tiers:

free pro ultimate

Supported Modalities:

TextImagesAudioVideo
Google: Gemini 3 Flash Preview AI Model Icon

Google: Gemini 3 Flash Preview

google/gemini-3-flash-preview

Subscription Tiers:

free pro ultimate

Supported Modalities:

TextImagesAudioVideo
Google: Gemini 3 Pro Preview AI Model Icon

Google: Gemini 3 Pro Preview

google/gemini-3-pro-preview

Subscription Tiers:

free pro ultimate

Supported Modalities:

TextImagesAudioVideo
Google: Gemini 2.5 Pro Preview 05-06 AI Model Icon

Google: Gemini 2.5 Pro Preview 05-06

google/gemini-2.5-pro-preview-05-06

Subscription Tiers:

free pro ultimate

Supported Modalities:

TextImagesAudioVideo
Google: Gemma 3n 4B AI Model Icon

Google: Gemma 3n 4B

google/gemma-3n-e4b-it

Subscription Tiers:

free pro ultimate

Supported Modalities:

Text
Google: Gemini 2.5 Flash Image (Nano Banana) AI Model Icon

Google: Gemini 2.5 Flash Image (Nano Banana)

google/gemini-2.5-flash-image

Subscription Tiers:

free pro ultimate

Supported Modalities:

TextImages
Google: Gemini 2.0 Flash AI Model Icon

Google: Gemini 2.0 Flash

google/gemini-2.0-flash-001

Subscription Tiers:

free pro ultimate

Supported Modalities:

TextImagesAudioVideo
Google: Gemma 3 4B AI Model Icon

Google: Gemma 3 4B

google/gemma-3-4b-it

Subscription Tiers:

free pro ultimate

Supported Modalities:

TextImages
Google: Gemma 3 27B AI Model Icon

Google: Gemma 3 27B

google/gemma-3-27b-it

Subscription Tiers:

free pro ultimate

Supported Modalities:

TextImages
Google: Gemini 2.5 Flash Lite Preview 09-2025 AI Model Icon

Google: Gemini 2.5 Flash Lite Preview 09-2025

google/gemini-2.5-flash-lite-preview-09-2025

Subscription Tiers:

free pro ultimate

Supported Modalities:

TextImagesAudioVideo
Google: Gemma 2 9B AI Model Icon

Google: Gemma 2 9B

google/gemma-2-9b-it

Subscription Tiers:

free pro ultimate

Supported Modalities:

Text
Google: Gemma 2 27B AI Model Icon

Google: Gemma 2 27B

google/gemma-2-27b-it

Subscription Tiers:

free pro ultimate

Supported Modalities:

Text
Google: Gemini 2.0 Flash Lite AI Model Icon

Google: Gemini 2.0 Flash Lite

google/gemini-2.0-flash-lite-001

Subscription Tiers:

free pro ultimate

Supported Modalities:

TextImagesAudioVideo
Google: Nano Banana Pro (Gemini 3 Pro Image Preview) AI Model Icon

Google: Nano Banana Pro (Gemini 3 Pro Image Preview)

google/gemini-3-pro-image-preview

Subscription Tiers:

free pro ultimate

Supported Modalities:

TextImages
Google: Gemma 3 12B AI Model Icon

Google: Gemma 3 12B

google/gemma-3-12b-it

Subscription Tiers:

free pro ultimate

Supported Modalities:

TextImages
Google: Nano Banana Preview AI Model Icon

Google: Nano Banana Preview

google/nano-banana

Subscription Tiers:

free pro ultimate

Supported Modalities: