Text Generation

Google logoGoogle

Gemini 3.1 Pro API

Google Gemini 3.1 Pro is a top-tier multimodal model for complex reasoning, long-context understanding, coding, and demanding production applications.

24H Status Monitor
24h success rate: 100%
Gemini 3.1 Pro

Model:

gemini-3.1-pro
Price: 2.5 credits per 1K input tokens · ≈ $0.0013-$0.0025 · 15 credits per 1K output tokens · ≈ $0.0075-$0.015High stability with detailed usage records on the APIAny platform.
PlaygroundHistoryPricingModel overviewUse casesAPIFAQ
gemini-3.1-pro
62 (suggested: 2,000)
0.7
02

Sampling temperature. Lower is more deterministic.

1024
168192

Optional reasoning effort. Leave unset to use the model default. Higher effort can use more tokens and time.

->

USD estimate $0.008-$0.016: highest recharge package uses $1 = 2,000 credits; entry package uses $1 = 1,000 credits.

Preview
No Task Running
Gemini 3.1 Pro
LLMResult preview

History

Saved locally in this browser

0 running · 0 completed

Your generation history will appear here

Input

2.5 credits/1K

≈ $0.0013-$0.0025

Output

15 credits/1K

≈ $0.0075-$0.015

Cache

1.25 credits/1K

≈ $0.0006-$0.0013

Context

-

Max output

-
View API usage
Pricing
Model ID
Type
Quality
Price
gemini-3.1-pro
Text Generation
Input tokens
2.5 credits per 1K input tokens · ≈ $0.0013-$0.0025
gemini-3.1-pro
Text Generation
Cache read tokens
1.25 credits per 1K cached input tokens · ≈ $0.0006-$0.0013
gemini-3.1-pro
Text Generation
Output tokens
15 credits per 1K output tokens · ≈ $0.0075-$0.015
gemini-3.1-pro
Text Generation
Minimum request
1.25 credits minimum · ≈ $0.0006-$0.0013
Model IDgemini-3.1-pro
TypeText Generation
QualityInput tokens
Price2.5 credits per 1K input tokens · ≈ $0.0013-$0.0025
Model IDgemini-3.1-pro
TypeText Generation
QualityCache read tokens
Price1.25 credits per 1K cached input tokens · ≈ $0.0006-$0.0013
Model IDgemini-3.1-pro
TypeText Generation
QualityOutput tokens
Price15 credits per 1K output tokens · ≈ $0.0075-$0.015
Model IDgemini-3.1-pro
TypeText Generation
QualityMinimum request
Price1.25 credits minimum · ≈ $0.0006-$0.0013

API Reference

Call this model through a standard REST API. Authenticate with your API key, then pick an endpoint below to see its parameters and examples.

Authentication

Every request needs a Bearer token in the Authorization header. Create an API key in the console.

Authorization: Bearer YOUR_API_KEY
POSThttps://apiany.ai/v1/chat/completions

Request parameters

ParameterTypeRequiredNotes
modelstringRequiredModel identifier to invoke. Use this model's ID.
messagesarrayRequiredConversation history in OpenAI chat format (role + content).
streambooleanOptionalWhen true, the response streams back as server-sent events.

Request example

curl "https://apiany.ai/v1/chat/completions" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "gemini-3.1-pro",
  "messages": [
    {
      "role": "user",
      "content": "Summarize the following text in three concise bullet points:"
    }
  ],
  "temperature": 0.7,
  "max_tokens": 1024
}'

Response example

{
  "id": "chatcmpl-abc123",
  "object": "chat.completion",
  "model": "gemini-3.1-pro",
  "choices": [
    {
      "index": 0,
      "message": {
        "role": "assistant",
        "content": "Hello! How can I help?"
      },
      "finish_reason": "stop"
    }
  ],
  "usage": {
    "prompt_tokens": 12,
    "completion_tokens": 18,
    "total_tokens": 30
  }
}

More models

Explore all models

GLM-5.2

GLM logoText Generation

Gemini 3.5 Flash

Google logoText Generation

MiniMax M3

MiniMax logoText Generation

DeepSeek V4

DeepSeek logoText Generation

Model overview

What is the Gemini 3.1 Pro API?

Google Gemini 3.1 Pro is a top-tier multimodal model for complex reasoning, long-context understanding, coding, and demanding production applications.

Evaluate the model against reasoning depth, workflow fit, and production constraints before standardizing a route.

Gemini 3.1 Pro is available on APIAny as one documented API surface with live pricing, model status, request examples, and an on-page playground. Teams can evaluate the model here, then keep authentication, usage records, and production routing in the same platform.

Try Gemini 3.1 Pro in the playground
Gemini 3.1 Pro API workflow overview on APIAny
A visual map of the Gemini 3.1 Pro workflow.

Sources

Which official references does this page cite?

The quotations below are from official API documentation that APIAny implements against.

The Gemini API provides access to Google's most capable generative AI models.

— Google Gemini API

The Chat Completions API endpoint will generate a model response from a list of messages comprising a conversation.

— OpenAI Chat Completions API

Use cases

What can you build with the Gemini 3.1 Pro API?

The Gemini 3.1 Pro API is used for product workflows that need this model's output. Test the same inputs in the playground, compare related models, and choose the route that meets your quality, latency, and budget requirements.

01

Research and complex reasoning

Use Gemini 3.1 Pro to decompose difficult questions, compare evidence, and produce decision-ready analysis. Ask the model to distinguish sourced facts, assumptions, and recommendations so reviewers can verify the result.

Try Gemini 3.1 Pro in the playground
Gemini 3.1 Pro API example for Research and complex reasoning
Research and complex reasoning with Gemini 3.1 Pro.

02

Long-document analysis

Apply Gemini 3.1 Pro to contracts, reports, research collections, and large technical documents. Structured prompts can extract evidence, compare sections, and produce summaries that retain links to the original context.

Try Gemini 3.1 Pro in the playground

APIAny advantages

Why use Gemini 3.1 Pro through APIAny?

Gemini 3.1 Pro on APIAny is a production route with one key, live prices, status, and usage records, so you do not maintain a separate provider integration.

Gemini 3.1 Pro production benefits and operational value
Production value delivered by Gemini 3.1 Pro.

One stable API surface

Call Gemini 3.1 Pro with an APIAny key and a documented request format. Keep your application integration stable while model versions and upstream routes evolve behind the gateway.

Transparent usage and pricing

Review the live Gemini 3.1 Pro pricing rules before a request, estimate credits in the playground, and inspect request-level usage records after the call completes.

Core capabilities

Key Gemini 3.1 Pro API features

Gemini 3.1 Pro API features are the input, output, and workflow traits that matter when you evaluate this model. Available request parameters remain visible in the live API reference on this page.

Gemini 3.1 Pro capabilities and technical workflow
How Gemini 3.1 Pro capabilities work together.

/01

Complex reasoning

Use Gemini 3.1 Pro to break down multi-step problems, compare alternatives, and produce structured conclusions that can be reviewed.

/02

Multimodal understanding

Combine supported text and visual inputs so Gemini 3.1 Pro can reason over more than one content format in the same workflow.

/03

Long-context processing

Use a large context window for codebases, documents, conversation history, and multi-step instructions while monitoring token cost.

/04

Code generation and analysis

Apply Gemini 3.1 Pro to implementation, debugging, refactoring, repository navigation, and technical explanation with test-based verification.

Integration

How to integrate the Gemini 3.1 Pro API

Integrating the Gemini 3.1 Pro API is a three-step path from playground test to authenticated production request. The page keeps the model identifier, request schema, pricing, and response examples together. Move from a representative prompt to monitored production traffic with explicit quality and fallback checks.

Gemini 3.1 Pro API integration from request to output
Connecting Gemini 3.1 Pro from API request to result.
  1. 01

    Create an API key

    Sign in to APIAny, create a project API key, and assign only the model scope and budget controls your application needs.

  2. 02

    Send a Gemini 3.1 Pro request

    Copy the request example from this page, set the model field to the selected Gemini 3.1 Pro version, and send it to the documented APIAny endpoint.

  3. 03

    Monitor and refine

    Track status, latency, credits, and returned usage. Compare versions or related models with the same workload before shifting production traffic.

SourceGoogle official documentation

ProviderGoogle

Reviewed2026-09-01

FAQ

Gemini 3.1 Pro API frequently asked questions

Direct answers about capabilities, use cases, integration, and choosing the right Gemini 3.1 Pro route.

What is the Gemini 3.1 Pro API?

Google Gemini 3.1 Pro is a top-tier multimodal model for complex reasoning, long-context understanding, coding, and demanding production applications. APIAny makes this model callable through an authenticated API with live pricing, status information, request examples, and a browser playground on the same page.

What can I build with the Gemini 3.1 Pro API?

Common Gemini 3.1 Pro workflows include Research and complex reasoning, Long-document analysis, Coding agents and software delivery. The best fit depends on the input format, output quality, latency, and cost your product requires.

How do I call Gemini 3.1 Pro through APIAny?

Create an APIAny key, use the endpoint documented on this page, and set the request model field to the selected Gemini 3.1 Pro version. The playground can generate a working payload before you integrate it into application code.

New users get free credits - no credit card required Get started
APIAny logoAPIAny
AI Models
PricingFree API
Resources
Sign InGet Started

APIAny API gateway for every production AI model.

Popular Models

Collections

Model Types

Platform

  • Docs
  • Contact

Legal

Gemini 3.1 Pro API example for Long-document analysis
Long-document analysis with Gemini 3.1 Pro.

03

Coding agents and software delivery

Use Gemini 3.1 Pro for repository analysis, implementation planning, code generation, review, and tool-assisted development. Provide clear constraints and validate generated changes with the same tests used by your engineering team.

Try Gemini 3.1 Pro in the playground
Gemini 3.1 Pro API example for Coding agents and software delivery
Coding agents and software delivery with Gemini 3.1 Pro.

Production routing controls

Use model status, channel health, retry policy, and usage logs to operate Gemini 3.1 Pro as part of a production workflow instead of treating it as an isolated demo.

/05

Tool and agent workflows

Let Gemini 3.1 Pro prepare or select tool calls while your application enforces permissions, validates arguments, and records actions.

/06

Streaming responses

Render supported Gemini 3.1 Pro text output incrementally for interactive assistants and long-running generation tasks.

How should I choose a Gemini 3.1 Pro version?

Compare the versions shown on this page by price, supported parameters, and capabilities such as Complex reasoning, Multimodal understanding, Long-context processing. Test a representative production input before choosing the default route.

APIAny logoAPIAny© 2026 APIAny. All rights reserved.
support@apiany.ai
Seedance 2.0
GPT Image 2
Nano Banana 2
Z-Image
Gemini Omni
All Collections
GPT API Family
Seedance API Family
Gemini API Family
GPT Image API
Text Generation
Image Generation
Video Generation
Audio Generation
Models
Pricing
About
Privacy Policy
Terms of Service
Refund Policy
English
Français
Deutsch
中文
日本語
한국어
Español