Skip to content
youbot
Gemini 3.1 Pro cover

Gemini 3.1 Pro API

gemini-3-1-pro
GoogleCommercial use API verifiedText & reasoning

Gemini 3.1 Pro — frontier reasoning and generation through one API.

by Google

Get Your API Key
View as Markdown

Pricing: Input 50 credits / 1M tokens (≈ $0.5), Output 350 credits / 1M tokens (≈ $3.5).

Save up to 77%with the $1,250 top-up pack (+10% bonus) — 75% lower than direct rates even without itTop up

24H Status Monitor

Operational
24h agonow
Loading…

Affordable Gemini 3.1 Pro API on you.bot

Google Gemini 3.1 Pro — next-gen long-context multimodal reasoning.

Gemini 3.1 Pro API pricing & guide (2026)

Gemini 3.1 Pro — frontier reasoning and generation through one API. Through you.bot you call the Gemini 3.1 Pro API by Google on the same unified endpoint as every other model — one key, one integration.

On you.bot, the Gemini 3.1 Pro API costs about $0.50 per 1M tokens — roughly 75% cheaper than the official Google price of $2. You only pay for successful generations; failed tasks are never charged.

Billing is pay-as-you-go in credits (1 credit = $0.01 USD) — no subscription, no monthly minimum, and credits never expire. So Gemini 3.1 Pro API pricing in 2026 is easy to predict: you pay per successful call and nothing for failures.

Core capabilities of the Gemini 3.1 Pro API

Massive context

Reason over very large inputs in a single call.

Multimodal

Combines text, image and more natively.

Top-tier analysis

Excellent for research and synthesis.

Where the Gemini 3.1 Pro API fits in production

Every image below was generated on you.bot with the Gemini 3.1 Pro API itself — no stock photography.

Code and review help

Code and review help

Draft, refactor and explain changes inside your own pipeline.

Multilingual drafting

Multilingual drafting

One prompt, several markets, consistent terminology.

Agents that call your tools

Agents that call your tools

Tool-calling loops that finish a task rather than describe it.

Search that answers

Search that answers

Turn your own content into answers with citations instead of ten blue links.

Meeting notes into tasks

Meeting notes into tasks

Transcript in, owner-and-deadline list out.

Classification at volume

Classification at volume

Route tickets, tag content and score leads on your own rules.

Gemini 3.1 Pro API compared with the rest of its family

The same prices this page charges, side by side — so you can see what a version step costs before you switch.

ModelInput · 1M tokensOutput · 1M tokens
Gemini 3.6 Flash22.5 cr$0.225112.5 cr$1.13
Gemini 3.8 Flash22.5 cr$0.225112.5 cr$1.13
Gemini 3 Flash26.24 cr$0.262157.41 cr$1.57
Gemini 3.7 Flash32.1 cr$0.321160.5 cr$1.60
Gemini 3.1 Prothis page50 cr$0.500350 cr$3.50
Gemini 3.5 Flash72.23 cr$0.722433.35 cr$4.33
Gemini 3 Pro97.45 cr$0.975622.15 cr$6.22

How to access and deploy the Gemini 3.1 Pro API on you.bot

Step 1

Get your API key

Create a key in the dashboard — one key works across every model on the platform.

Step 2

Call the Gemini 3.1 Pro endpoint

POST your prompt and parameters to /api/v1/generate with your key in the Authorization header.

Step 3

Read the response

Completions are returned synchronously in the JSON response — no polling needed.

curl -X POST https://you.bot/api/v1/generate \
  -H "Authorization: Bearer sk-live-..." \
  -H "Content-Type: application/json" \
  -d '{
    "modelId": "gemini-3-1-pro",
    "input": { "prompt": "..." }
  }'

Gemini 3.1 Pro API on you.bot vs going direct

Featureyou.botGoing direct
Price per 1M tokens$0.50$2
Failed-task billingFree (auto-refund)Charged
IntegrationOne unified APIPer-vendor SDKs
Credit expiryNeverVaries

4.9

Based on 1,200+ developer reviews

Why choose you.bot for the Gemini 3.1 Pro API

75% cheaper

Lower rates than going direct to Google — and you only pay for successful runs.

Production-grade reliability

Monitored availability with automatic credit refunds on failed jobs.

One API for everything

Swap models freely without touching your integration or juggling vendors.

FAQs about the Gemini 3.1 Pro API

Gemini 3.1 Pro is billed per 1M tokens at about $0.50 on you.bot — and you only pay for successful generations.

Google

Gemini 3.1 Pro API code example

POST/api/v1/generate

Gemini 3.1 Pro — frontier reasoning and generation through one API.

Overview

Gemini 3.1 Pro is a single synchronous call: POST /api/v1/generate and the generated text is returned inline in the response — no polling step.

Authentication

All requests require a Bearer Token in the header:

Authorization: Bearer YOUR_API_KEY

Request parameters

ParameterTypeRequiredDescription
modelIdstringYesModel id: `gemini-3-1-pro`
inputobjectYesInput parameters object (see below)

input object parameters

ParameterTypeRequiredDescription
promptstringYesText value · default: Explain how honeybees tell the hive where flowers are, using one clear everyday analogy anyone can picture.
imagesstring[]NoUp to 4 images per message — JPEG, PNG, GIF or WebP, 5 MB each. Send each one as a data: URL or an https URL. Images are billed as input tokens. (image URL)
streambooleanNoTurn off to get a single non-streaming response. (true/false) · default: true

Response

The result is returned inline in the POST /api/v1/generate response (no polling):

{ "model": "…", "text": "…", "creditsCharged": …, "usage": { … } }   // returned directly by /api/v1/generate

Error codes

CodeDescription
200Request successful
400Invalid request parameters
401Authentication failed — check API Key
402Insufficient account balance
403IP not allowed for this key, or the key is restricted to other models
404Task not found, or it has expired
409Duplicate request — an identical submit arrived moments ago. Nothing was charged; retry is safe
413Payload too large — see the character and file-size limits for this model
429Rate limit exceeded — retry after the Retry-After header
500Internal server error
504Upstream timed out — nothing was delivered; retry is safe
400 · too_many_imagesMore than 4 image(s) attached to one message
400 · image_too_largeAn attached image is over the 5 MB per-image limit
400 · image_format_unsupportedUnsupported image format — accepted: image/jpeg, image/png, image/gif, image/webp (read from the file's own bytes, not the declared type)
400 · image_unreadableAn attached image, or its pixel size, could not be read
400 · capability_not_supportedA capability was requested (e.g. `web_search: true`) that this model does not offer — refused, nothing charged, rather than answered without it
422 · image_not_receivedThe model answered that it did not receive the attached image — the reply is not usable, so nothing is charged. Retry
400 · unknown_image_fieldImages were sent under a different key (input_urls, image_urls, imageUrl …). This model takes them as `images`
400 · image_placement_unsupportedAn image is attached to a message that is not sent to the model as an image (a system message, an assistant message or a tool result), or `images` was sent next to `messages` that contain no user message. Attach images to a user message — they are refused rather than dropped
Request
curl --location 'https://you.bot/api/v1/generate' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data-raw '{
    "modelId": "gemini-3-1-pro",
    "input": {
        "prompt": "Explain how honeybees tell the hive where flowers are, using one clear everyday analogy anyone can picture.",
        "images": [
            "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAIAAAACCAIAAAD91JpzAAAAFklEQVR4nGP8z4AATAxIHFQeMg8OAgB1yQIDpk8YwwAAAABJRU5ErkJggg=="
        ],
        "stream": false
    }
}'
Response
{
  "model": "gemini-3-1-pro",
  "text": "…",
  "creditsCharged": 0.11,
  "usage": {
    "inputTokens": 1400,
    "outputTokens": 120,
    "cachedInputTokens": 0,
    "cacheWriteTokens": 0
  }
}