Gemini 3.1 Pro Preview

Gemini 3.1 Pro Preview is a preview large language model from Google’s Gemini family, offering advanced reasoning and multimodal capabilities for early experimentation and feedback.

What is Gemini 3.1 Pro Preview?

Gemini 3.1 Pro Preview is an experimental version of Google’s Gemini 3.1 Pro large language model made available for limited testing. It is primarily used by developers and researchers to explore its capabilities in tasks such as code assistance, structured reasoning, and information retrieval. It is also used to prototype multimodal and agentic applications so Google can refine quality, safety, and performance. It belongs to the Gemini model family, following earlier Gemini 1.x and 2.x generations and the non-preview Gemini Pro variants.


Providers

Different companies host the same model. OpenRouter routes your request to one of them based on the routing mode you pick — Balanced (price + speed), Nitro (fastest), or Exacto (highest tool-calling accuracy).

Provider Input Output Cache read /M Latency Throughput Uptime
Google $2.00 $12.00 $0.20 ~220ms ~40 tps 100.00%
Google $2.00 $12.00 $0.20 ~220ms ~40 tps 100.00%

Try this model

Test Gemini 3.1 Pro Preview right here — free to start.

Gemini 3.1 Pro Preview
Hi! Want to test the model?

Suggestions for your first prompt

Code snippet

Call the model through the OpenAI-compatible API.

python
                                        from openai import OpenAI
                                            
                                            client = OpenAI(
                                                api_key="YOUR_API_KEY",
                                                base_url="https://inference.example.com/v1"
                                            )
                                            
                                            response = client.chat.completions.create(
                                                model="google/gemini-3-1-pro-preview",
                                                messages=[
                                                    {
                                                        "role": "user",
                                                        "content": "Describe this image in one sentence."
                                                    }
                                                ],
                                            )
                                            
                                            print(response.to_json())
                                        
                                    
                                        {
                                                "model": "google/gemini-3-1-pro-preview",
                                                "messages": [
                                                    {
                                                        "role": "user",
                                                        "content": "Describe this image in one sentence."
                                                    }
                                                ]
                                            }
                                        
                                    

Uptime

30-Day Uptime
100.00%
Past Incidents (30d)
0
Error rate (24h)
0.00%

Last 30 days

30/30 days operational | 100.00% uptime

30 days ago Today
Operational Degraded Outage Maintenance
See All Incidents

5 Core Capabilities

  • Advanced Reasoning

    Performs complex logical reasoning and problem solving, excelling on benchmarks like ARC-AGI-2 and SWE-Bench for difficult tasks.

  • Multimodal Input

    Understands text, code, images, audio, video, and PDFs within a very long context window for rich cross-modal analysis.

  • Document Comprehension

    Processes and synthesizes information from large documents and datasets, supporting enterprise knowledge tasks and technical analysis.

  • Coding Assistance

    Supports code understanding and generation, autonomous software engineering tasks, and tool-assisted code execution workflows.

  • Multilingual Skills

    Handles multiple languages for reading and generation, enabling cross-language understanding and globally-deployed conversational applications.

6 Most Valuable Use Cases

  • Multimodal Content Generation
  • Code Assistance and Debugging
  • Data and Document Analysis
  • Customer Support Automation
  • Search and Knowledge Retrieval
  • Monitoring and Alerting Workflows

Why Build on LLM.API?

One unified API. Every major model. Built-in reliability, cost control, and observability.

  • Unified AI Routing

    Dynamically route each request to the optimal model across providers based on latency, cost, or quality—without changing your integration or redeploying.

    One endpoint, every model
  • Cost-Aware Orchestration

    Control spend with per-route cost caps, dynamic model downgrades, and usage insights so you ship rich AI features without surprise bills.

    Cut spend, keep quality
  • Automatic Provider Fallback

    If a provider throttles or fails, LLM.API seamlessly retries on backup models, keeping your AI workflows online without custom failover logic.

    Resilience by default
  • End-to-End Observability

    Trace every request across models and providers with rich logs, metrics, and timelines to debug prompts, tune routing, and prove reliability in production.

    See every token
  • Task-Centric Abstractions

    Call higher-level tasks—chat, RAG, tools, moderation—instead of raw models, letting LLM.API manage prompts, memory, and orchestration under a stable interface.

    Code to tasks, not models
  • High-Throughput Batch APIs

    Process thousands of prompts in parallel with batch operations, reducing overhead, smoothing rate limits, and maximizing throughput for large-scale workloads.

    Scale from day one

When to Use — When NOT to Use

Use it if...

  • You need a general-purpose LLM from Google with strong text generation and understanding.
  • You need good integration with other Google Cloud services and existing GCP infrastructure.
  • Your use case involves multimodal inputs like combining text with images or screenshots.
  • You need a model suitable for chatbots, assistants, and interactive web or mobile experiences.
  • Your use case involves summarizing, classifying, or extracting information from medium-length documents.
  • You need a widely supported, mainstream model with extensive community examples and tooling.

Avoid if...

  • You need guaranteed mature, production-hardened behavior rather than a preview-stage model.
  • Your workload requires strict, contractually defined SLAs and long-term backward compatibility guarantees.
  • You need highly specialized domain performance better served by fine-tuned or niche expert models.
  • Your workload requires running fully on-premise or outside Google Cloud’s managed environments.
  • You need fully transparent, fine-grained control over training data, weights, and model internals.
  • Your workload requires ultra-low-latency inference for high-frequency trading or hard real-time systems.

Frequently Asked Questions

  • What is Gemini 3.1 Pro Preview?

    Gemini 3.1 Pro Preview is a Google frontier language model optimized for high‑quality reasoning, coding, and general-purpose chat use cases.

  • What modalities does Gemini 3.1 Pro Preview support via LLM.API?

    Through LLM.API, Gemini 3.1 Pro Preview currently supports text input and output, with image and other modalities exposed as the provider enables them.

  • How is Gemini 3.1 Pro Preview typically priced on LLM.API?

    Gemini 3.1 Pro Preview is billed on a pay-as-you-go per-token basis, with separate input and output token rates defined by LLM.API.

  • What context window does Gemini 3.1 Pro Preview support?

    Gemini 3.1 Pro Preview supports a large context window suitable for multi-thousand token prompts and long conversations, as configured by LLM.API.

  • How fast is Gemini 3.1 Pro Preview in terms of latency?

    Typical latency is comparable to other large frontier models, with first-token times dependent on prompt size and current LLM.API and Google load.

  • What is Gemini 3.1 Pro Preview best suited for?

    It excels at multi-step reasoning, complex code generation, data analysis, and high-quality natural language generation across many domains.

  • How do I call Gemini 3.1 Pro Preview through LLM.API?

    You select the model name "google/gemini-3.1-pro-preview" (or similar identifier) in LLM.API and send standard chat or completion-style requests.

  • How does Gemini 3.1 Pro Preview compare to GPT-4.1 or Claude 3.5?

    Gemini 3.1 Pro Preview targets similar advanced reasoning and coding capabilities, but performance, cost, and latency vary by task and provider configuration.

  • Does Gemini 3.1 Pro Preview support streaming responses on LLM.API?

    Yes, when enabled in your LLM.API request, Gemini 3.1 Pro Preview can return tokens incrementally for lower perceived latency.

  • What are the main limitations of Gemini 3.1 Pro Preview?

    It can hallucinate, may contain training-data biases, and should not be relied on for authoritative legal, medical, or safety-critical decisions.

Get one key to every model

Swap your API key. Keep your code.