Google

gemini-3.1-pro-preview

Model IDgemini-3.1-pro-preview

Integration docsMarkdown

Model introduction

Gemini 3.1 Pro is Google's flagship multimodal model for complex reasoning, code, and long-form generation, with 1M context and 64K output.

Model capabilities

Specifications come from the cited model material. Catalog tags help identify access features; use the source documentation for exact limits.

OpenAI compatibleGemini compatibleVisionPrompt cacheReasoningAudio

Verified specifications

Official positioning
Flagship complex reasoning and multimodal model
Context window
1,000,000 tokens
Maximum output
64,000 tokens
Input / output
Text, image, audio, video, PDF / Text

Sources: B.AI Gemini 3.1 Pro model guide

Model pricing and access

Prices are read directly from the MoleAPI console catalog and shown by current billing group and context tier.

Your final charge follows the account group shown in the console.
Live pricing source

Pricing table

USD / 1M tokens
Standardx1defaultInput $2 · Output $12

Input

$2 / 1M tokens

Output

$12 / 1M tokens

Cache read

$0.2 / 1M tokens

Discountx0.8discountInput $1.6 · Output $9.6

Input

$1.6 / 1M tokens

Output

$9.6 / 1M tokens

Cache read

$0.16 / 1M tokens

Access protocols

Available billing groups: Standard, Discount

gemini
POST
/v1beta/models/{model}:generateContent
openai
POST
/v1/chat/completions

About gemini-3.1-pro-preview

This introduction is transcreated for clarity and cross-checked against the cited model material.

Gemini 3.1 Pro is Google's flagship multimodal model for complex reasoning, code, and long-form generation, with 1M context and 64K output.

Core strengths

  • Natively handles text, images, audio, video, and PDFs.
  • A 1M context window and 64K output support complete long tasks.
  • Prioritizes abstract reasoning, coding, and reliable complex workflows.

Limitations

  • Quality-first behavior is generally slower than Flash variants.
  • Preview aliases may change availability or behavior with Google's release cycle.

Selection and production evaluation

Start a gemini-3.1-pro-preview evaluation by mapping its official positioning to real work: Complex code, long-document and data analysis, creative long-form work, and tasks combining text, images, audio, and video. The first pass should exercise both its main strength, "Natively handles text, images, audio, video, and PDFs.", and its known limitation, "Quality-first behavior is generally slower than Flash variants.", instead of relying on a single subjective general-chat comparison.

For access, MoleAPI currently lists gemini, openai protocols and the Standard, Discount billing groups for this Google model; the default price summary is Input $2 / 1M tokens · Output $12 / 1M tokens. Pricing, protocols, and groups come from the live catalog, so production planning should still price representative requests using real context length, output size, and cache-hit assumptions.

No independent ranking is shown unless it matches this exact model ID and reasoning profile, so nearby variants are not used as a proxy. Before launch, pin the model ID, prompt, and sample set, then compare task accuracy, structured-output validity, tool-call success, and timeout rates under the same conditions.

The model material on this page was last checked on 2026-07-24. When upstream model cards, context limits, or tool support change, update the cited bilingual facts before changing the recommendation; live MoleAPI price changes remain separate and update from the catalog automatically.

Code examples

These examples use MoleAPI's OpenAI-compatible endpoint and run after you replace the API key.

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

Frequently asked questions

How is gemini-3.1-pro-preview priced?

This page reads prices from the MoleAPI console API and updates with model prices, context tiers, and account groups.

How can I access gemini-3.1-pro-preview?

Protocols and endpoints come from the supported_endpoint_types field in the MoleAPI model catalog.

How do I switch an existing project to gemini-3.1-pro-preview?

Keep the MoleAPI API address and key, replace the model parameter with the model ID on this page, then check protocol-specific parameter differences.

Where do the gemini-3.1-pro-preview model details come from?

Capabilities and limitations are checked against B.AI and the other cited pages. Pricing and available protocols come only from the MoleAPI console.