Gemini 3.1 Pro API
Access Gemini 3.1 Pro through one API key. Google's next-generation model.
Google's next-generation Pro model. Advanced reasoning, coding, and multimodal capabilities with a 1M context window.
Takes 30 seconds.
Gemini 3.1 Pro API pricing
Pay per request from your YepAPI balance — no subscription, no monthly minimum. Prices updated September 27, 2026.
| Token type | Price |
|---|---|
| Input | $2.95 / 1M tokens |
| Output | $17.72 / 1M tokens |
| Context window | 1.0M tokens |
| What it costs | Per job | Per 1,000 |
|---|---|---|
| Chat reply1K input + 500 output tokens | $0.012 | $11.81 |
| RAG answer8K input + 800 output tokens | $0.038 | $37.78 |
| Agent step with tools30K input + 2K output tokens | $0.124 | $123.94 |
| Long document summary100K input + 2K output tokens | $0.33 | $330.44 |
4,900+
Developers
2.3M+
API calls served
184
Endpoints
$0.01
Per call
Yep, that's it.
Try it live
Send a message and see Gemini 3.1 Pro respond in real time.
Maximum tokens in the response.
Real-time tokens
Gemini 3.1 Pro specs
| Provider | |
|---|---|
| Model ID | google/gemini-3.1-pro-preview |
| Endpoint | /v1/ai/chat |
| Type | Text Generation |
| Context window | 1.05M tokens |
| Max output | 8K tokens |
| Reasoning | No |
| OpenAI-compatible | Yes — /v1/ai/chat/completions |
How to get a Gemini 3.1 Pro API key
- 1
Create an account
Sign up at yepapi.com with Google or email. It takes about 30 seconds.
- 2
Create an API key
Open the dashboard, go to API Keys and create a key. Copy it — it starts with yep_sk_.
- 3
Call Gemini 3.1 Pro
Send a request to /v1/ai/chat with the x-api-key header and model "google/gemini-3.1-pro-preview".
- 4
Pay as you go
Usage is billed per request from your balance. Top up any amount; there is no subscription.
Strengths
Google's next-generation Pro model, built for advanced reasoning, coding, and multimodal understanding with a 1M-token context window.
A 1,048,576-token context window takes in large documents, codebases, and media inputs in a single request for context-complete reasoning.
Stronger step-by-step reasoning than the Flash tier, suited to complex analysis, planning, and structured problem-solving, with up to 8,192 output tokens.
Understands images and other modalities alongside text, enabling document, chart, and image analysis combined with deep reasoning in one model.
Quick start
Copy this snippet and start making calls with Gemini 3.1 Pro.
const res = await fetch('https://api.yepapi.com/v1/ai/chat', {
method: 'POST',
headers: {
'x-api-key': 'YOUR_API_KEY',
'Content-Type': 'application/json',
},
body: JSON.stringify({
"model": "google/gemini-3.1-pro-preview",
"messages": [
{
"role": "user",
"content": "Explain API gateways in 2 sentences."
}
],
"maxTokens": 256
}),
});
const { data } = await res.json();
console.log(data.message.content);Gemini 3.1 Pro vs similar models
Every model below runs on the same API key — switch by changing the model ID.
| Model | Provider | Price | Context |
|---|---|---|---|
| Gemini 3.1 Pro | $2.95 in / $17.72 out per 1M | 1.0M | |
| Gemma 4 26B | $0.13 in / $0.44 out per 1M | 262K | |
| Gemini 2.5 Flash Lite | $0.15 in / $0.59 out per 1M | 1.0M | |
| Gemma 4 31B | $0.30 in / $0.59 out per 1M | 262K | |
| Gemini 3.1 Flash Lite | $0.37 in / $2.22 out per 1M | 1.0M | |
| Gemini 2.5 Flash | $0.44 in / $3.69 out per 1M | 1.0M | |
| Nemotron 3 Super | NVIDIA | $0 in / $0 out per 1M | 262K |
| Qwen3.7 Flash | Qwen | $0.04 in / $0.19 out per 1M | 1M |
Why use Gemini 3.1 Pro through YepAPI?
Gemini 3.1 Pro API — pricing, context window & access
Gemini 3.1 Pro is Google's next-generation Pro model, offering advanced reasoning, coding, and multimodal capabilities with a 1M-token context window and up to 8,192 output tokens. It is the higher-reasoning counterpart to Gemini 3.5 Flash.
Through YepAPI you reach Gemini 3.1 Pro over an OpenAI-compatible endpoint with one key that also covers Gemini 3.5 Flash, Claude, Grok, Qwen, Mistral, and Perplexity Sonar, plus SEO, SERP, and web-scraping endpoints.
What is Gemini 3.1 Pro?
Gemini 3.1 Pro is the reasoning-focused tier of Google's next-generation Gemini family. Compared with the fast Flash model, it trades some speed for stronger reasoning, coding, and analysis while keeping multimodal understanding. It carries a 1,048,576-token context window and returns up to 8,192 output tokens, so it can reason over very large inputs but is tuned for considered, structured answers rather than huge generations. It suits tasks where answer quality and depth matter more than raw throughput.
Build with Gemini 3.1 Pro via YepAPI
Set the model to gemini-3.1-pro-preview on YepAPI's OpenAI-compatible /v1/ai/chat endpoint; standard OpenAI SDK code needs only a base-URL and model-name change. A common pattern is Flash for high-volume ingestion and Pro for the hard reasoning step — switching between them is one string. The same key also reaches Claude and Sonar, so multi-model pipelines need no extra integration.
Gemini 3.1 Pro API pricing — $2.95 / $17.72 per 1M tokens
Gemini 3.1 Pro costs $2.95 per 1M input tokens and $17.72 per 1M output tokens on YepAPI. It sits above Flash, reflecting its stronger reasoning, but stays well below flagship reasoning models. Because its output ceiling is 8,192 tokens, outputs stay bounded, which keeps per-call costs predictable for analysis tasks. Billing is per token with no minimums.
Gemini 3.1 Pro for complex reasoning and analysis
Pro is the model for tasks that need depth: multi-step reasoning, code review across a large file set, structured data extraction with judgment, and document or chart analysis that combines multimodal input with careful inference. The 1M-token window lets you supply full context, and the multimodal input means images and text can be reasoned over together. Use it where Flash's speed-first tuning falls short on rigor.
What developers say
“Switched from SerpAPI and cut our SERP costs by 80%. Same data quality, way simpler billing.”
“One API key for AI models, SERP data, and web scraping. Saved us from managing 4 separate providers.”
“The $5 free credit let us prototype our entire rank tracking feature before committing. No other API does that.”
Frequently asked questions
Google's next-generation Pro model. Advanced reasoning, coding, and multimodal capabilities with a 1M context window.
Gemini 3.1 Pro costs $2.95 per 1M input tokens and $17.72 per 1M output tokens through YepAPI, billed per request with no monthly fee. For example, a chat reply (1K input + 500 output tokens) costs about $0.012.
Sign up at yepapi.com (Google or email, about 30 seconds), open the dashboard and create an API key. The same key works for Gemini 3.1 Pro and every other model — no separate Google account or waitlist.
Use "google/gemini-3.1-pro-preview" as the model on /v1/ai/chat. The short alias "gemini-3.1-pro" also works.
Yes. Point the OpenAI SDK at https://api.yepapi.com/v1/ai with your YepAPI key and set model to "google/gemini-3.1-pro-preview". Streaming works the same way, so existing OpenAI code only needs the base URL and key changed.
Gemini 3.1 Pro supports a 1.0M token context window with up to 8K output tokens per request.
Explore more models
Gemini 4 Argon
GoogleAccess Gemini 4 Argon through one API key. Google Gemini 4 Flagship Reasoning.
Gemini 3.6 Flash
GoogleAccess Gemini 3.6 Flash through one API key. Google High-Efficiency Coding Flash.
Gemini 3.5 Flash
GoogleAccess Gemini 3.5 Flash through one API key. Google's latest fast multimodal model.
Claude Fable 5
AnthropicAccess Claude Fable 5 through one API key. Anthropic's creative writing flagship.
Nemotron 3.5 Super VL
NVIDIAAccess Nemotron 3.5 Super VL through one API key. NVIDIA Open Multimodal MoE.
Qwen 3.5 9B
QwenAccess Qwen 3.5 9B through one API key. Cheapest model for high-volume tasks.
More Text Generation models
- GPT-6 Astra Pro API · OpenAI
- Qwen 3.5 27B API · Qwen
- DeepSeek V4 Flash API · DeepSeek
- GPT-5.3 Codex API · OpenAI
- Claude Fable 5.1 API · Anthropic
- GPT-6 Luna API · OpenAI
- Mercury 3 API · Inception
- Seed 2.0 Lite API · ByteDance
- GLM 5.3 FlashX API · Z.ai
- GLM 5.3 Prime API · Z.ai
- Sonar Pro API · Perplexity
- Hy4 preview API · Tencent