G
GoogleActive

Gemini 3.1 Pro API

Google's current flagship. Best quality for complex reasoning and multimodal tasks.

💰 Save up to 70% vs official Google pricing
INPUT / 1M tokens
$2.00
OUTPUT / 1M tokens
$12.00
CONTEXT WINDOW
1M

Technical Specifications

ProviderGoogle
Model FamilyGemini 3.1 Pro
Release Date2026-05
Context Window1M
Max Output Tokens65,536
Input Price$2.00 / 1M tokens
Output Price$12.00 / 1M tokens
Vision SupportYes ✓
Function CallingNo
JSON ModeNo
StreamingNo
Fine TuningNot Available
StatusActive ✓

Overview

Gemini 3.1 Pro is Google's current gemini-class AI model, released in 2026-05. Google's current flagship. Best quality for complex reasoning and multimodal tasks.

With a 1M context window and maximum output of 65,536 tokens, Gemini 3.1 Pro is well-suited for flagship model and 1m context. At $2.00/1M input and $12.00/1M output, it offers balanced pricing within the Google ecosystem.

Gemini 3.1 Pro supports 4 capabilities: Vision, Audio, Code Execution, Multimodal. Fine-tuning is not available for this model. The model serves as an flagship model solution for developers building multimodal AI applications.

Through AI API Hub, you can access Gemini 3.1 Pro with USDT & USDC payments, no credit card required. All via a fully OpenAI-compatible API — just change your base URL and start building in 30 seconds.

API Examples

Python

from openai import OpenAI

client = OpenAI(
    api_key="YOUR_API_KEY",
    base_url="https://api.apiyihe.org/v1"
)

response = client.chat.completions.create(
    model="gemini-3.1-pro",
    messages=[
        {"role": "user", "content": "Hello"}
    ]
)

print(response.choices[0].message.content)

JavaScript / Node.js

import OpenAI from "openai";

const client = new OpenAI({
  apiKey: process.env.API_KEY,
  baseURL: "https://api.apiyihe.org/v1"
});

const response = await client.chat.completions.create({
  model: "gemini-3.1-pro",
  messages: [
    { role: "user", content: "Hello" }
  ]
});

console.log(response.choices[0].message.content);

cURL

curl https://api.apiyihe.org/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{
    "model": "gemini-3.1-pro",
    "messages": [
      {"role": "user", "content": "Hello"}
    ]
  }'

Compare Alternatives

Frequently Asked Questions

What is Gemini 3.1 Pro?

Gemini 3.1 Pro is Google's current gemini model. Google's current flagship. Best quality for complex reasoning and multimodal tasks.. It features a 1M context window, supports Vision, Audio, Code Execution, and is available through AI API Hub with USDT/USDC payments.

How much does Gemini 3.1 Pro cost?

Gemini 3.1 Pro pricing: $2.00 per 1M input tokens, $12.00 per 1M output tokens. Pay-as-you-go with no minimum commitment. Sign up at AI API Hub and start with as little as $5.

Gemini 3.1 Pro vs GPT-5.5?

Gemini 3.1 Pro: $2.00/$1M input, 1M context. GPT-5.5: $5.00/$1M input, 256K context. Gemini 3.1 Pro is more cost-effective. Flagship model. Compare them at /compare/gemini-3.1-pro-vs-gpt-5.5/.

Gemini 3.1 Pro context window?

Gemini 3.1 Pro has a 1M context window, capable of processing up to 1,048,576 tokens in a single request. Maximum output tokens: 65,536.

Does Gemini 3.1 Pro support function calling?

No, Gemini 3.1 Pro does not natively support function calling. For function calling use cases, consider Google's flagship models.

Is Gemini 3.1 Pro multimodal?

Yes, Gemini 3.1 Pro is fully multimodal — it can process text, images, and audio natively in a single request.

Gemini 3.1 Pro API rate limits?

Gemini 3.1 Pro rate limits: 1K RPM. Higher tier plans offer increased throughput. For high-volume production use, consider Google's faster variant models.

How to access Gemini 3.1 Pro API?

Access Gemini 3.1 Pro through AI API Hub: (1) Register at api.apiyihe.org/register?aff=8JZC, (2) Deposit USDT/USDC, (3) Get your API key instantly, (4) Use the OpenAI-compatible endpoint https://api.apiyihe.org/v1 with model name "gemini-3.1-pro". Start building in under 30 seconds.

Get Gemini 3.1 Pro API Access

Pay with USDT & USDC. Same model, up to 70% less.

Tạo Tài Khoản
Nhận Khóa API