YepAPI

Command Palette

Search for a command to run...

GoogleText Generation/v1/ai/chat

Gemini 3.1 Pro

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.

No credit card required. Takes 30 seconds.

2,400+

Developers

1.2M+

API calls served

100+

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.

POST/v1/ai/chat

Maximum tokens in the response.

Real-time tokens

Hit "Send Request" to see the response

Context Window

1.0M tokens

Max Output

8K tokens

Input Price

$2.80 / 1M tokens

Output Price

$16.80 / 1M tokens

Strengths

Next-gen Gemini

Google's next-generation Pro model, built for advanced reasoning, coding, and multimodal understanding with a 1M-token context window.

1M token context

A 1,048,576-token context window takes in large documents, codebases, and media inputs in a single request for context-complete reasoning.

Advanced 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.

Multimodal

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);

Why use Gemini 3.1 Pro through YepAPI?

One API key for all models — no separate accounts
OpenAI SDK compatible — just change the base URL
No monthly minimums — pay per token
Switch models with one line of code
Full provider passthrough — citations, search results, and all extras included
Streaming and non-streaming support on every model
Works with Cursor, Claude, LangChain, and any LLM tool
Unified billing across all providers

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.80 / $16.80 per 1M tokens

Gemini 3.1 Pro costs $2.80 per 1M input tokens and $16.80 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.

Try Gemini 3.1 Pro free

Sign up for $5 in free YepAPI credit, no card required. It is enough to run Gemini 3.1 Pro on a real reasoning or analysis task and compare its depth against Flash or other models before committing.

Start generating in 30 seconds

$5 free credit on signup. No credit card required. Pay per call.

What developers say

Switched from SerpAPI and cut our SERP costs by 80%. Same data quality, way simpler billing.

Marcus T.

SEO Platform Founder

One API key for AI models, SERP data, and web scraping. Saved us from managing 4 separate providers.

Priya S.

Full-Stack Developer

The $5 free credit let us prototype our entire rank tracking feature before committing. No other API does that.

Jake R.

Indie Hacker

Frequently asked questions

Google's next-generation Pro model. Advanced reasoning, coding, and multimodal capabilities with a 1M context window.

Input tokens cost $2.80 per 1M tokens and output tokens cost $16.80 per 1M tokens through YepAPI. No monthly minimums — you only pay for what you use.

Sign up for a free API key, then send requests to the /v1/ai/chat endpoint.

Gemini 3.1 Pro supports a 1.0M token context window with up to 8K output tokens per request.

Ready to use Gemini 3.1 Pro?

$5 free credit on signup. No credit card required. Pay per call.

Explore more models