Skip to main content
AnyAIGC

Google · gemini-3.1-pro-preview

Gemini 3.1 Pro API

The Gemini 3 Pro reasoning model, for tasks where a simple answer isn't enough. On AnyAIGC it costs about 10% of Google's price.

Google calls Gemini 3.1 Pro its "3rd generation Pro model, built for multimodal understanding, agentic capabilities, and vibe-coding." gemini-3.1-pro-preview costs $0.1985 per 1M input tokens and $1.1910 per 1M output tokens, on both the native Gemini API and the OpenAI-compatible endpoint.

  • Model ID gemini-3.1-pro-preview
  • Context 1M tokens
  • Price ~10% of Google
  • Concurrency unlimited
  • Teams Self-service invoices

Preview model: as of October 2026, Gemini 3.1 Pro is still a public preview. Google has not announced a general availability date or a shutdown date. New projects that need a stable model can use Gemini 4 Argon, which is generally available and has cheaper output.

About

The Pro tier of Gemini 3, built for complex reasoning

Google released Gemini 3.1 Pro Preview on , under the headline "A smarter model for your most complex tasks", adding that "3.1 Pro is designed for tasks where a simple answer isn't enough." The model card says it is based on Gemini 3 Pro. Since March 9, 2026, gemini-3-pro-preview on Google's API has pointed to gemini-3.1-pro-preview.

It takes up to 1,048,576 input tokens and returns up to 65,536 output tokens, with text, image, video, audio and PDF input. Thinking has three levels, low, medium and high, and high (dynamic) is the default. Supported tools include function calling, code execution, structured outputs, URL context, grounding with Google Search and Google Maps, and context caching.

On AnyAIGC, gemini-3.1-pro-preview works on the native /v1beta/models/gemini-3.1-pro-preview:generateContent endpoint and the OpenAI-compatible /v1/chat/completions. You don't need a Google Cloud account, and the same key calls 300+ other models.

Input limit
1,048,576tokens
Max output
65,536tokens, incl. thinking
Knowledge cutoff
January 2025
Input
Text, image, video, audio, PDF
Thinking
low / medium / highdefault high, no minimal
Released
2026-02-19Public preview
Capabilities

What Gemini 3.1 Pro is good at

  • Complex reasoning

    Google reports 77.1% on ARC-AGI-2 and 94.3% on GPQA Diamond. Use it for multi-step analysis, planning and hard problems.

  • Coding and vibe coding

    80.6% on SWE-Bench Verified, 68.5% on Terminal-Bench 2.0 and a LiveCodeBench Pro Elo of 2887. Good for bug fixes, new features and building apps from a description.

  • Agents and tool use

    99.3% on τ2-bench Telecom, 90.8% on Retail and 69.2% on MCP Atlas. Function calling, code execution and structured outputs support multi-step agents.

  • Search and web research

    85.9% on BrowseComp. Turn on Google Search and Maps grounding or URL context so answers draw on current information.

  • Multimodal understanding

    Send text, images, video, audio and PDFs directly. Google reports 80.5% on MMMU-Pro, useful for charts, scans and video.

  • 1M-token context

    A 1,048,576-token input window fits large codebases or full document sets. MRCR v2 scores 84.9% at 128k.

Pricing

Gemini 3.1 Pro API pricing

Tiered per-token pricing, split at a 200K-token prompt. Every line in both tiers is about 10% of Google's standard price.

  • Two tiersPrompts ≤ 200K and > 200K
  • ~90% offvs Google standard pricing
  • No concurrency limitsOn every account
  • USDOne balance for 300+ models
gemini-3.1-pro-preview price per 1M tokens (USD), AnyAIGC vs Google, by prompt size
ItemAnyAIGCGoogleYou save
Prompts ≤ 200K tokens
Inputper 1M tokens$0.1985$2.00~90%
Outputper 1M tokens, incl. thinking$1.1910$12.00~90%
Cache hitper 1M tokens$0.0199$0.20~90%
Prompts > 200K tokens
Inputper 1M tokens$0.3970$4.00~90%
Outputper 1M tokens, incl. thinking$1.7865$18.00~90%
Cache hitper 1M tokens$0.0398$0.40~90%

Prices are in USD and billed on actual token usage, with thinking tokens counted as output. When a request's prompt exceeds 200K tokens, the whole request moves to the higher tier (input and cache 2x, output 1.5x). Google prices are the Standard tier from the Gemini API pricing page. Live prices are on the AnyAIGC model catalog.

Cost examples

Estimates for common workloads. Struck-through numbers are Google's standard price for the same usage.

  • One code review

    50K input tokens + 5,000 output tokens

    $0.016

    Google $0.16

  • One 500K-token document

    500K input + 8,000 output, > 200K tier

    $0.21

    Google $2.14

  • 1M input + 1M output

    All prompts ≤ 200K tokens

    $1.39

    Google $14.00

Benchmarks

Gemini 3.1 Pro benchmark results

Scores from the Google DeepMind model card (February 2026, Gemini 3.1 Pro Thinking (High)).

Reasoning, coding and agents (Gemini 3.1 Pro)

  • GPQA Diamond94.3%
  • BrowseComp85.9%
  • SWE-Bench Verified80.6%
  • ARC-AGI-277.1%
  • Terminal-Bench 2.068.5%

Full results

Gemini 3.1 Pro benchmark results (published by Google DeepMind)
BenchmarkMeasuresGemini 3.1 Pro
Humanity's Last ExamAcademic reasoning (no tools / search + code)44.4% / 51.4%
ARC-AGI-2Abstract reasoning77.1%
GPQA DiamondGraduate-level science94.3%
Terminal-Bench 2.0Terminal coding68.5%
SWE-Bench VerifiedReal-repo bug fixing80.6%
SWE-Bench ProHarder software engineering54.2%
LiveCodeBench ProCompetitive coding (Elo)2887
SciCodeScientific coding59%
APEX-AgentsLong-horizon professional tasks33.5%
GDPval-AAEconomically valuable knowledge work (Elo)1317
τ2-benchTool use (Retail / Telecom)90.8% / 99.3%
MCP AtlasMulti-step MCP workflows69.2%
BrowseCompWeb research85.9%
MMMU-ProMultimodal understanding80.5%
MMMLUMultilingual Q&A92.6%
MRCR v2Long context (128k / 1M)84.9% / 26.3%

Source: the Google DeepMind Gemini 3.1 Pro model card, which also describes the evaluation methods. The Gemini 4 Argon model card says Argon outperforms Gemini 3.1 Pro overall on multilingual and multimodal content safety.

Use cases

What to build with Gemini 3.1 Pro

  • 01 · Coding

    Fix bugs, ship features, build from a description

    80.6% on SWE-Bench Verified. Use high thinking for cross-file changes and low for quick completions to keep latency and cost down.

  • 02 · Agents

    Multi-step tool use

    Combine function calling, code execution and structured outputs for support, ops and data pipelines. With no concurrency limits, many agents can run at once.

  • 03 · Research

    Web-grounded answers and summaries

    Turn on Google Search grounding and URL context so the model reads current pages before answering. Useful for market and competitor research.

  • 04 · Multimodal

    Documents, charts and video

    Send PDFs, screenshots, recordings and video and pull out structured data. Prompts over 200K tokens use the higher tier, so split long inputs or use caching to save.

Quickstart

Call the Gemini 3.1 Pro API in three steps

  1. Sign up and top up at anyaigc.ai. One balance covers every model on the platform.
  2. Create an API key in the console. Copy the sk- key and store it in ANYAIGC_API_KEY.
  3. Send a request to the native https://anyaigc.ai/v1beta/models/gemini-3.1-pro-preview:generateContent, or to the OpenAI-compatible https://anyaigc.ai/v1/chat/completions with model set to gemini-3.1-pro-preview. Both use Authorization: Bearer.
POST /v1beta/models/gemini-3.1-pro-preview:generateContent
curl https://anyaigc.ai/v1beta/models/gemini-3.1-pro-preview:generateContent \
  -H "Authorization: Bearer $ANYAIGC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "systemInstruction": {
      "parts": [{"text": "You are a senior backend engineer. Lead with the answer, then the code."}]
    },
    "contents": [
      {"role": "user", "parts": [{"text": "Write an LRU cache with TTL in Go and explain how it stays concurrency-safe"}]}
    ],
    "generationConfig": {
      "maxOutputTokens": 16384,
      "thinkingConfig": {"thinkingLevel": "high"}
    }
  }'
Python · openai SDK · /v1/chat/completions
import os
from openai import OpenAI

client = OpenAI(
    base_url="https://anyaigc.ai/v1",
    api_key=os.environ["ANYAIGC_API_KEY"],
)

resp = client.chat.completions.create(
    model="gemini-3.1-pro-preview",
    messages=[
        {"role": "user", "content": "Turn this spec into 5 user stories, each with acceptance criteria."},
    ],
)
print(resp.choices[0].message.content)
print(resp.usage)
POST /v1beta · streamGenerateContent?alt=sse
curl -N "https://anyaigc.ai/v1beta/models/gemini-3.1-pro-preview:streamGenerateContent?alt=sse" \
  -H "Authorization: Bearer $ANYAIGC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "contents": [
      {"role": "user", "parts": [{"text": "List the 5 biggest risks to check when reviewing a database migration plan"}]}
    ],
    "generationConfig": {"thinkingConfig": {"thinkingLevel": "medium"}}
  }'

Parameter notes: Gemini 3.1 Pro controls thinking with thinkingLevel (low / medium / high). The default is high, and minimal is not supported. Thinking tokens count as output, so leave room in maxOutputTokens, and drop to low when latency matters. Prompts over 200K tokens are billed at the higher tier.

Full parameters are in the native Gemini API docs and the Chat Completions docs. Swap the model name in the examples for gemini-3.1-pro-preview.

Enterprise

Gemini 3.1 Pro API for teams and enterprises

Buy through your company's normal process, with support for finance, legal and engineering.

  • Invoices

    An invoice for every top-up

    Issue an invoice yourself in the console for each top-up, based on the amount paid.

  • Dedicated support

    Support and a technical contact

    Dedicated support and a technical contact to help with integration, migration and day-to-day issues.

Payment methods
  • WeChat Pay
  • Alipay
  • USDT
  • Credit card

Why teams trust AnyAIGC

Trial credit, top-ups, refunds, data handling and billing, spelled out up front.

  • 5M free tokens to start

    New accounts get trial credit, so you can test before you top up.

  • Top up from $1, refundable

    Top up from $1. Unused balance can be refunded with no fee.

  • Official channels, real models

    Requests go to official model channels, never cheaper or reverse-engineered substitutes.

  • No retention, no training

    Unless the law requires it, your prompts and outputs are not persistently stored or used for training. See the privacy policy.

  • Transparent billing, spend caps

    See tokens and cost for every request in the console, and set a quota on each API key.

  • 24/7 support

    Contact support any time about integration, billing or incidents.

SPECS

Specs and how to choose it

Google's docs say Gemini 3.1 Pro Preview refines the performance and reliability of the Gemini 3 Pro series with better thinking, improved token efficiency and more grounded, factually consistent answers, optimized for software engineering and for agentic workflows that need precise tool use and reliable multi-step execution.

The input limit is 1,048,576 tokens and the output limit is 65,536 tokens; input can be text, image, video, audio and PDF, and output is text. The model name to call is gemini-3.1-pro-preview.

This page lists (Prompts ≤ 200K tokens) Input at $0.1985, Output at $1.1910, Cache hit at $0.0199; other tiers are in the pricing table above.

Compared with gemini-4-argon: Google describes Gemini 4 Argon as the efficient Gemini 4 frontier reasoning model, with output up to 1,048,576 tokens when long decode is on.

Specs come from the vendor's official documentation (aistudio.google.com). The table on this page is the price, and the model catalog is authoritative for live rates.

FAQ

Gemini 3.1 Pro API FAQ

How much does the Gemini 3.1 Pro API cost?

On AnyAIGC, gemini-3.1-pro-preview uses tiered per-token pricing. For prompts up to 200K tokens: $0.1985 input, $1.1910 output and $0.0199 cache hit per 1M tokens. For prompts over 200K tokens: $0.3970 input, $1.7865 output and $0.0398 cache hit. Google's standard prices are $2.00 / $12.00 / $0.20 and $4.00 / $18.00 / $0.40, so AnyAIGC is about 10% of Google's price. Output includes thinking tokens.

How are prompts over 200K tokens billed?

When a single request's prompt exceeds 200K tokens, the whole request is billed at the higher tier: input and cache hits at 2x, output at 1.5x. That works out to $0.3970 input, $1.7865 output and $0.0398 cache hit per 1M tokens, the same tier rule Google uses. Live prices are on the model catalog.

Is Gemini 3.1 Pro still in preview? Will it be shut down?

Yes, it is still a preview. Google released Gemini 3.1 Pro Preview on February 19, 2026, and as of October 2026 it remains a public preview with the model ID gemini-3.1-pro-preview. Google's deprecations page says "No shutdown date announced", and no general availability date has been published. Preview behavior can change, so new projects that need a stable model can use Gemini 4 Argon, which is generally available.

What are the context window and max output?

Google lists an input limit of 1,048,576 tokens, a maximum of 65,536 output tokens per request, and a knowledge cutoff of January 2025. It accepts text, image, video, audio and PDF input and returns text.

Should I use the native Gemini API or the OpenAI-compatible endpoint?

Either works. The native endpoint is POST https://anyaigc.ai/v1beta/models/gemini-3.1-pro-preview:generateContent and takes the same request body as Google's Gemini API. The OpenAI-compatible endpoint is POST https://anyaigc.ai/v1/chat/completions: point the official OpenAI SDK at base_url https://anyaigc.ai/v1 and set model to gemini-3.1-pro-preview. Both use Authorization: Bearer.

How do I set the thinking level?

Gemini 3.1 Pro supports three thinking levels, low, medium and high. The default is high (dynamic thinking), and minimal is not supported. On the native API set generationConfig.thinkingConfig.thinkingLevel. Use low for simple tasks to cut latency and output tokens.

Gemini 3.1 Pro or Gemini 4 Argon: which should I use?

On AnyAIGC, 3.1 Pro costs $0.1985 input and $1.1910 output per 1M tokens, and Gemini 4 Argon costs $0.4200 input and $2.1000 output. Argon is generally available, while 3.1 Pro is still a preview. New projects should start with Gemini 4 Argon. If you already tuned prompts and evals for 3.1 Pro, keep it and compare before migrating. For high-volume or latency-sensitive work, look at Gemini 3.8 Flash ($0.1575 input, $0.7875 output).

Are there rate or concurrency limits?

AnyAIGC sets no concurrency limit on gemini-3.1-pro-preview. Every account gets this by default, so batch jobs and parallel agents work out of the box.

How do I get a Gemini 3.1 Pro API key?

Sign up at anyaigc.ai, top up and create a token in the console. The same key works for Gemini 3.1 Pro Preview and 300+ other models. You don't need a Google Cloud account.

Can I get an invoice from AnyAIGC?

Yes. You can issue invoices yourself in the console, for the amount you actually topped up.

Which payment methods are supported?

You can top up with WeChat Pay, Alipay, USDT or a credit card. Your balance is in USD and works across every model on the platform. Invoices can be issued in the console for the amount you topped up.

Is there free trial credit for new users?

Yes. New accounts get 5 million tokens of trial credit, so you can test before deciding to top up. Top-ups start at $1.

Can I get a refund on my balance?

Yes. Unused balance can be refunded with no fee. Contact support to start a refund.

Are these the real models? Is my data safe?

Requests go to official model channels, never cheaper or reverse-engineered substitutes. Unless the law requires it, we do not persistently store your prompts or outputs or use them for training, and the console shows tokens and cost for every request.

Is my data used for training?

No. Unless the law requires it, AnyAIGC does not persistently store your prompts or outputs or use them for training, and requests travel over HTTPS. See the AnyAIGC privacy policy. The model's own data policy follows Google's terms.

Run Gemini 3.1 Pro at about 10% of Google's price

Create an API key and call gemini-3.1-pro-preview from your code in minutes, from the native API or the OpenAI SDK.