Roboflow
Google

Google: Gemini 3.1 Pro

Gemini 3.1 Pro Overview

Gemini 3.1 Pro is a proprietary multimodal model from Google’s Gemini 3 series, released in early 2026 and designed for advanced reasoning across large multimodal datasets. It accepts text, images, audio, video, and documents, supporting up to a 1-million-token input context with up to 64k output tokens. Compared with Gemini 3 Pro, it improves long-context synthesis and multi-step reasoning, enabling more reliable analysis of large documents, datasets, and software codebases.

The model also advances visual understanding and grounding, allowing it to interpret UI screenshots, diagrams, and real-world scenes while referencing specific regions within images or video. These capabilities make Gemini 3.1 Pro well suited for multimodal workflows involving document processing, interface analysis, robotics research, and complex visual reasoning.

Gemini 3.1 Pro Interactive Demo

Gemini 3.1 Pro Details & Performance

Details

Resources

Vision Tasks

CaptioningChart Question AnsweringClassificationDocument Question AnsweringImage TaggingMulti-Label ClassificationOCRObject DetectionVision LanguageVisual Question Answering

Features

Foundation VisionLLMs with Vision CapabilitiesMultimodal Vision

Usage

Past 30 Days

Performance

Avg. Latency

Arena Rankings

Gemini 3.1 Pro Vision Evals

Vision Evals is Roboflow's ground-truth benchmark: every model runs the same real-world samples across six vision tasks, and answers are scored against ground truth.

Evals updated August 14, 2026Pricing updated August 20, 2026

Overall score#4 of 30
83.1%
Avg cost / sample#23 of 30
$0.0093
Avg speed / sample#19 of 30
7.81s
Avg tokens / sample
1.7K

Strengths and weaknesses

Gemini 3.1 Pro averages 83.1% across the six Vision Evals tasks, ranking #4 of 30 models overall.

It leads the field in Identification.

It also places in the top three for Data Extraction.

Its weakest relative showing is Counting, ranking #8 of 30 at 71.6%.

At $0.0093 per sample it is the 23rd cheapest of the 30 benchmarked models, and its average inference time of 7.8s per sample makes it the 19th fastest.

Performance profile

Field medianGemini 3.1 Pro

Field medians: Object Detection 55.2%, Counting 64.2%, Identification 84.4%, OCR 90.0%, Data Extraction 86.6%, Reasoning 58.0%.

Results by task

TaskScoreField (0 to 100)RankCost / sampleSpeed
Object Detection
67.4%
#5 of 30$0.0108.76s
Counting
71.6%
#8 of 30$0.00716.19s
Identification
100.0%
#1 of 30$0.00705.93s
OCR
92.6%
#7 of 30$0.00666.00s
Data Extraction
94.8%
#2 of 30$0.00635.64s
Reasoning (low)
72.2%
#7 of 30$0.0129.27s
Reasoning (high)
74.8%
#7 of 30$0.02113.32s
  • Thinking longer helps: 2.6 points higher on reasoning at high effort for 1.8x the cost and 1.4x the latency.

Price vs. performance

Score vs. cost

Overall benchmark score against estimated cost per sample. Upper-left is the sweet spot: high quality at low cost.

30 models on the current benchmark · scores and efficiency pooled across all six tasks at low effort · Gemini 3.1 Pro highlighted

Gemini 3.1 Pro scores from a single evaluation run · Methodology

View all Vision Evals →

Gemini 3.1 Pro Pricing

Gemini 3.1 Pro costs $2.00 per 1M input tokens and $12.00 per 1M output tokens.

Input$2.00 / 1M tokens
Output$12.00 / 1M tokens
Cached input$0.200 / 1M tokens

Pricing updated Aug 20, 2026

Alternatives to Gemini 3.1 Pro

Other models worth comparing for similar use cases.

Anthropic
Claude Opus 4.6
Claude Opus 4.6 is the flagship large language model from Anthropic, released on 2026-02-05 for advanced reasoning, complex coding, and enterprise agent workflows. It supports text and image inputs via API, offers a 200K-token standard context window with a 1M-token beta option, and enables outputs up to 128K tokens, with adaptive reasoning and context compaction for sustained tasks.As of 2026-02-17, Anthropic also released Claude Sonnet 4.6, extending the 1M-token context window to a broader tier. Opus remains positioned for maximum depth and benchmark performance, while Sonnet 4.6 brings long-context capability to more cost- and latency-sensitive production use cases.
OpenAI
GPT-5.4
GPT-5.4 is a proprietary multimodal large language model developed by OpenAI and released on March 5, 2026. It is designed for professional workloads such as advanced software development, research, and agentic automation. The model combines the general reasoning capabilities of the GPT-5 series with software engineering improvements derived from GPT-5.3-Codex. In the API and Codex environments it supports context windows of up to 1 million tokens, enabling long-context reasoning and large-scale code or document workflows.Compared with GPT-5.2, GPT-5.4 reduces false individual claims by 33% and lowers overall response errors by 18%, improving factual reliability across complex tasks. It is also the first general-purpose OpenAI release with native computer-use capabilities, allowing agents to interact with desktops, browsers, and external applications to complete multi-step workflows. The model family includes three variants: GPT-5.4 (standard), GPT-5.4 Pro for higher-performance workloads, and GPT-5.4 Thinking, a reasoning-oriented version in ChatGPT that presents an upfront plan before generating its response. The API also introduces a Tool Search system that allows models to retrieve tool definitions dynamically, reducing token usage in tool-heavy integrations.
Qwen
Qwen3.5 397B A17B
Qwen3.5-397B-A17B is a 397B-parameter (17B active) open-weight multimodal model developed by Alibaba’s Qwen team, released on 2026-02-16 under Apache-2.0. It supports text and image inputs with text outputs, combining a sparse Mixture-of-Experts architecture with Gated Delta Networks for efficient scaling. The model provides native vision-language reasoning and a large ~262K token context window, extendable to ~1M tokens.As the first open-weight release in the Qwen3.5 family, it positions itself as a high-capacity, long-context alternative in the large vision-language space, balancing scale and efficiency via sparse activation. It is designed for advanced reasoning, coding, agent workflows, and multimodal understanding tasks.
MoonshotAI
Kimi K2.5
Kimi K2.5 is a frontier-scale multimodal AI model developed by Moonshot AI and released on January 27, 2026. As a significant advancement within the Kimi K2 family, it utilizes a sparse Mixture-of-Experts (MoE) architecture with 1 trillion total parameters (32 billion active per inference) and a massive 256K-token context window. The model features native multimodal integration via a 400M-parameter MoonViT encoder, allowing it to process text, images, and video frames simultaneously. Built for both speed and depth, it offers "Instant" and "Thinking" modes, the latter of which excels at expert-level reasoning, scoring 50.2% on the Humanity’s Last Exam (HLE) benchmark when equipped with tools.The model is released under a Modified MIT License, which remains open-weight but requires attribution for high-revenue commercial entities. It introduces an "Agent Swarm" paradigm capable of coordinating up to 100 specialized sub-agents for parallel workflows, significantly reducing latency in complex research tasks. For vision tasks, Kimi K2.5 demonstrates strong autonomous visual debugging capabilities, where it can inspect its own generated UI outputs against visual specifications to iteratively refine frontend code. This makes it a powerful choice for developers testing automated UI reconstruction, high-fidelity OCR document processing, and multi-step agentic research grounded in complex visual data.
Grok
Grok 4.5
Grok 4.5 is a proprietary reasoning model from SpaceXAI (xAI) that accepts interleaved text and image input and returns text, with a 500,000 token context window. xAI positions it as a model for coding, agentic software work, and knowledge tasks, and states it was trained in the company's Memphis data centers on datasets spanning science, engineering, and mathematics. Its reinforcement learning stage covers hundreds of thousands of multi step software engineering tasks scored by automated checks and model based grading, and training is reported to have run on tens of thousands of NVIDIA GB300 GPUs using an asynchronous scheme in which multi hour agentic rollouts continue while learning proceeds in parallel, targeting long horizon autonomous operation rather than single turn inference.For vision, the model consumes JPEG and PNG images in any order relative to text prompts, covering visual question answering, description of chart and document imagery, and reading text rendered inside a scene. Reasoning effort is configurable, and the model supports function calling and structured outputs, so image inputs can be interleaved with tool calls inside agent loops. xAI has not published a technical report, architecture details, or parameter count, and reported mixture of experts sizing figures come from secondary coverage rather than official documentation.
Qwen
Qwen3.5 122B A10B
Qwen3.5-122B-A10B is a high-capacity multimodal Mixture-of-Experts (MoE) model developed by Alibaba’s Qwen team as part of the Qwen3.5 model family. The architecture contains 122 billion total parameters while activating roughly 10 billion per token through sparse expert routing, allowing the model to balance large-scale reasoning ability with relatively efficient inference compared to dense models of similar size.The model is designed to process both text and visual inputs within a unified multimodal framework, enabling tasks that require reasoning across images, documents, charts, and natural language. This makes it suitable for applications such as document understanding, diagram interpretation, and complex visual question answering.Qwen3.5-122B-A10B supports a native context window of approximately 256,000 tokens, which can be extended further through techniques such as YaRN scaling to support very long-context workloads. Released under the Apache 2.0 license, it builds on earlier Qwen multimodal systems and provides developers with an open-weight model capable of handling demanding multimodal reasoning and analysis tasks.

Other Google Gemini Pro models

Other versions in the same family as Gemini 3.1 Pro.

Deploy Gemini 3.1 Pro with an API

Gemini 3.1 Pro runs as a hosted REST endpoint through Roboflow Workflows. Pick a task, then hand the prompt to your coding agent or copy the code. Deploying the workflow into a free Roboflow workspace replaces the your-workspace and YOUR_API_KEY placeholders with your own.

Connect your agent to Roboflow (once)

Add the Roboflow MCP server

claude mcp add --transport http roboflow https://mcp.roboflow.com/mcp

Run /mcp and authorize Roboflow in your browser when the OAuth flow opens.

Start a new Claude Code session so the MCP loads, then paste the prompt below (it works the same in any agent).

Deploy this workflow to your Roboflow workspace to use it.

Integrate the Roboflow "Gemini 3.1 Pro" workflow into my app.

- Endpoint: POST https://serverless.roboflow.com/<your-workspace>/workflows/gemini-3-1-pro-captioning
- Auth: send my Roboflow API key as `api_key` in the request body, read from the ROBOFLOW_API_KEY env var (never hardcode).
- Body: { "api_key": ..., "inputs": { `image`: { type: "url" | "base64", value } } }.
- Billing: this workflow needs no provider API key — inference runs on my Roboflow credits. A BYO provider key can be added to the model step in the Roboflow workflow editor later.

With the Roboflow MCP connected, call `workflows_get` on "gemini-3-1-pro-captioning" to read the exact input schema (the source of truth), then `workflows_run` on a sample image to confirm the output shape before writing code (the MCP is authenticated, so this needs no key). Without the MCP, use the contract above.

Before running the app, set up these keys so it does not error at runtime:
- `ROBOFLOW_API_KEY` (sent as `api_key`) from https://app.roboflow.com/settings/api
Create a .gitignore'd .env with these variables, using placeholder values for any I haven't given you. Then pause and tell me directly, in your reply: the full path to the .env file, exactly which keys I need to paste in, and the link to get each one. Wait for me to confirm I've added them before you run anything. Do not run the app until I confirm.

Then add the integration to my codebase: match my project's language, framework, and conventions; read every key from environment variables (never hardcode); add basic error handling; and include a small runnable example. If you can't tell what language my project uses, ask me.
Installpip install inference-sdk

Deploy this workflow to your Roboflow workspace to use it.

# Inference runs on your Roboflow credits — no provider API key needed. To bill your own provider account instead, add an api_key to the model step in the Roboflow workflow editor.
# 1. Import the library
from inference_sdk import InferenceHTTPClient

# 2. Connect to your workflow
client = InferenceHTTPClient(
  api_url="https://serverless.roboflow.com",
  api_key="YOUR_API_KEY"
)

# 3. Run your workflow on an image
result = client.run_workflow(
  workspace_name="your-workspace",
  workflow_id="gemini-3-1-pro-captioning",
  images={
    "image": "YOUR_IMAGE.jpg"  # Path to your image file
  },
  use_cache=True  # cache workflow definition for 15 minutes
)

# 4. Get your results
print(result)

Deploy this workflow to your Roboflow workspace to use it.

// Inference runs on your Roboflow credits — no provider API key needed. To bill your own provider account instead, add an api_key to the model step in the Roboflow workflow editor.
const response = await fetch('https://serverless.roboflow.com/your-workspace/workflows/gemini-3-1-pro-captioning', {
  method: 'POST',
  headers: {
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({
    api_key: 'YOUR_API_KEY',
    inputs: {
      "image": {"type": "url", "value": "IMAGE_URL"}
    }
  })
});

const result = await response.json();
console.log(result);

Deploy this workflow to your Roboflow workspace to use it.

# Inference runs on your Roboflow credits — no provider API key needed. To bill your own provider account instead, add an api_key to the model step in the Roboflow workflow editor.
curl --location 'https://serverless.roboflow.com/your-workspace/workflows/gemini-3-1-pro-captioning' \
--header 'Content-Type: application/json' \
--data '{
  "api_key": "YOUR_API_KEY",
  "inputs": {
    "image": {"type": "url", "value": "IMAGE_URL"}
  }
}'

Gemini 3.1 Pro License

Proprietary

Gemini 3.1 Pro is proprietary: the weights are not distributed, and the Gemini 3.1 Pro license is the vendor's commercial terms of service that you accept when you call the API.

Commercial use
Permitted under the vendor terms, typically metered per token or per request, with the vendor usage policy applying to your inputs and outputs.
Modification
Not available. Gemini 3.1 Pro weights are closed, so you can configure prompts and use vendor-hosted fine-tuning where it is offered, but you cannot modify the model itself.
Redistribution
Not permitted. You cannot self-host or resell the model; you build on the hosted API instead.

Vendor terms govern data retention, whether your inputs can be trained on, rate limits, and regional availability, and they can change with notice. Review them if you handle regulated or customer data.

Do I need a commercial license for Gemini 3.1 Pro?

Proprietary terms are set by the vendor rather than negotiated per project, and no open-source obligation attaches to your code. If you would rather deploy a model whose commercial license is included in your plan — on Roboflow Managed Cloud or a Self-Hosted Inference Server — Roboflow's licensing page lists the supported alternatives to Gemini 3.1 Pro.

Do not hesitate to reach out with questions for your commercial project — our team will help you start solving business problems on the first call. See Roboflow commercial licensing for the models included in each plan.

Talk to sales

This model is proprietary. The author retains all rights, and use of the model is governed by their specific terms of service or license agreement.

Commercial use depends on the terms set by the model author. Most proprietary commercial models require a paid subscription, API key, or per-call billing. Check the provider’s pricing and terms-of-service for details.

License information is provided as a guide and is not legal advice.

Frequently Asked Questions About Gemini 3.1 Pro Vision

Yes. Gemini 3.1 Pro accepts image input and handles OCR, data extraction, object counting, identification, visual reasoning, and object detection. On Roboflow's Vision Evals its strongest task is Identification at 100% (#1 of 30). You can test it on your own image in the demo above.

Yes, and it is one of the model's strongest vision skills: its transcriptions match the ground truth 92.6% on average (#7 of 30) on Vision Evals OCR. Pulling specific fields out of documents (data extraction) scores 94.9%.

It's serviceable. On Vision Evals, Gemini 3.1 Pro scores 67.4% mAP@50 on object detection (#5 of 30) and 71.6% exact-match accuracy on object counting.

On our benchmark's task mix, Gemini 3.1 Pro averages $0.0093 per sample at $2.00 per 1M input and $12.00 per 1M output tokens (#23 of 30 on cost), with an average speed of 7.8s per sample across the benchmark. Actual cost depends on your images and prompts.

On the overall Vision Evals ranking, Gemini 3.1 Pro sits #4 of 30 at 83.1%, just behind Qwen3.8-Max (84%) and just ahead of Gemini 3.6 Flash (83.1%). See the full side-by-side: Gemini 3.1 Pro vs Qwen3.8-Max.