google/gemini-3.1-pro-preview logo

google/gemini-3.1-pro-preview

Gemini 3.1 Pro Preview is a multimodal vision model for complex, agentic workflows with strong reasoning and tool/structured-output support.

Google Vision Up to 1M Tokens
Get API Key
Try in Playground
Free Trial Credit On first TopUp of minimum $5
$1.00

api_example.sh

curl -X POST "https://platform.qubrid.com/v1/chat/completions" \
  -H "Authorization: Bearer QUBRID_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "google/gemini-3.1-pro-preview",
  "messages": [
    {
      "role": "user",
      "content": [
        {
          "type": "text",
          "text": "What is in this image? Describe the main elements."
        },
        {
          "type": "image_url",
          "image_url": {
            "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg"
          }
        }
      ]
    }
  ],
  "max_tokens": 8192,
  "temperature": 0.2,
  "stream": true,
  "top_p": 1
}'

Technical Specifications

Model Architecture & Performance

Variant Gemini 3.1 Pro (Preview)
Context Length Up to 1M Tokens
Architecture Sparse Mixture-of-Experts (MoE) Transformer with native multimodal support
Developers Google DeepMind

Pricing

Pay-per-use, no commitments

Input Tokens $2.00/1M Tokens
Output Tokens $12.00/1M Tokens
Cached Input Tokens $0.20/1M Tokens

API Reference

Complete parameter documentation

Parameter Type Default Description
stream boolean true Enable streaming responses for real-time output.
temperature number 0.2 Controls randomness. Higher values can increase creativity.
max_tokens number 8192 Maximum number of tokens to generate in the response.
top_p number 1 Nucleus sampling: considers tokens with top_p probability mass.
reasoning_effort select medium Adjusts the depth of reasoning and problem-solving effort (quality vs latency).

Explore the full request and response schema in our external API documentation

Performance

Strengths & considerations

Strengths Considerations
Large context window (up to 1M input tokens)
Strong reasoning and multimodal understanding
Supports structured outputs and function calling
Best results require good prompts and relevant context selection
Preview tiers may differ slightly across deployments

Use cases

Recommended applications for this model

Vision question answering over images and documents
Multi-step agent workflows that require reliable tool usage
Structured extraction (e.g., JSON) from screenshots and pages
Coding assistance with multimodal context

Enterprise
Platform Integration

Docker

Docker Support

Official Docker images for containerized deployments

Kubernetes

Kubernetes Ready

Production-grade KBS manifests and Helm charts

SDK

SDK Libraries

Official SDKs for Python, Javascript, Go, and Java

Don't let your AI control you. Control your AI the Qubrid way!

Have questions? Want to Partner with us? Looking for larger deployments or custom fine-tuning? Let's collaborate on the right setup for your workloads.

"Qubrid enabled us to deploy production AI agents with reliable tool-calling and step tracing. We now ship agents faster with full visibility into every decision and API call."

AI Agents Team

Agent Systems & Orchestration