Models / LLMs

Gemini 3.1 Pro - API, Playground & Pricing

Google Gemini 3.1 Pro is the Pro tier of Gemini 3.1 for hard reasoning, long documents and code, with image input and JSON output. Run it in the playground, call its API, or let Claude Code, Codex or Cursor run it through one FlyMy.AI MCP. No Google API key: runs are billed to your FlyMy.AI balance.

Provider
Google
Category
LLMs / Chat model
Price
$2.00 / $12.00 per 1M tokens
Returns
output
Commercial use
Allowed
Model ID
flymyai/google-gemini-31-pro-preview
Gemini 3.1 Pro by Google: chat model sample, deep reasoning and code
Gemini 3.1 Pro sample from the FlyMy.AI catalog

$ YOUR NEXT RUN

Claude CodeCodexCursorAny agent

Use Gemini 3.1 Pro in your assistant

Paste this prompt into Claude Code, Codex, Cursor or any agent. It reads the guide and helps you connect.

Read https://flymy.ai/skill.md and https://flymy.ai/models/google-gemini-31-pro-preview.md. Help me connect the FlyMy.AI MCP to this assistant, then run Gemini 3.1 Pro (flymyai/google-gemini-31-pro-preview) for this task: Ask Gemini 3.1 Pro: review this function for bugs and explain the fix.
Open FlyMy.AIDownload brief

What Gemini 3.1 Pro does

Send a prompt or messages (images as image_url parts) and choose reasoning_effort from none to high. Through the OpenAI-compatible endpoint, response_format returns JSON; temperature and max_tokens are ignored and tools are refused. It answers in text only.

Gemini 3.1 Pro inputs

Every input of flymyai/google-gemini-31-pro-preview as its live schema lists them. Returns output (string).

InputType, values and default
# prompt
string required
# messages
string optional
# reasoning_effort
string optional

Ask your agent

Requests to paste as they are, once the FlyMy.AI MCP is connected.

“Ask Gemini 3.1 Pro: review this function for bugs and explain the fix.”runs flymyai/google-gemini-31-pro-preview
“Summarize this contract into five bullet points with Gemini 3.1 Pro.”runs flymyai/google-gemini-31-pro-preview
“With Gemini 3.1 Pro, draft a friendly reply to this customer email.”runs flymyai/google-gemini-31-pro-preview

Gemini 3.1 Pro price

$2.00 per 1M input tokens, $12.00 per 1M output tokens. Billed to your FlyMy.AI balance; no seats, no subscription and no minimum.

Gemini 3.1 Pro vs similar models

Popular LLMs models beside it, with prices from billing and settings from each live schema.

ModelProviderKindPriceDefault runInput tokensOutput tokens
Gemini 3.1 ProGoogleChat model$2.00 / $12.00 per 1M tokens$2.00 / $12.00 per 1M tokens$2.00 per 1M$12.00 per 1M
Kimi K3.1 ProMoonshot AIChat model$2.00 / $10.00 per 1M tokens$2.00 / $10.00 per 1M tokens$2.00 per 1M$10.00 per 1M
TypeSafe Jev 1.13FlyMy.AITyped decisions$0.042 per 1M tokens$0.042 / $0.00 per 1M tokens$0.042 per 1M$0.00 per 1M
Gemini 3.1 Flash LiteGoogleChat model$0.25 / $1.50 per 1M tokens$0.25 / $1.50 per 1M tokens$0.25 per 1M$1.50 per 1M

Gemini 3.1 Pro API

The same model from your own code or from an agent. Send your FlyMy.AI API key in the X-API-KEY header; get a key in your account.

cURL

Form fields, not JSON; files go as uploads or public URLs. Text models answer on the streaming route.

curl -X POST https://api.flymy.ai/api/v1/flymyai/google-gemini-31-pro-preview/predict/stream/ \
  -H "X-API-KEY: $FLYMYAI_API_KEY" \
  -F 'prompt=Explain in two sentences what an MCP server is.'

Python

The OpenAI SDK with only the base URL and the key changed.

# pip install openai
import os

from openai import OpenAI

client = OpenAI(base_url="https://api.flymy.ai/api/v1/flymyai/google-gemini-31-pro-preview/openai/v1", api_key=os.environ["FLYMYAI_API_KEY"])
reply = client.chat.completions.create(
    model="flymyai/google-gemini-31-pro-preview",
    messages=[{"role": "user", "content": "Explain in two sentences what an MCP server is."}],
)
print(reply.choices[0].message.content)

JavaScript / TypeScript

The OpenAI SDK with only the base URL and the key changed.

// npm install openai
import OpenAI from "openai";

const client = new OpenAI({ baseURL: "https://api.flymy.ai/api/v1/flymyai/google-gemini-31-pro-preview/openai/v1", apiKey: process.env.FLYMYAI_API_KEY });
const reply = await client.chat.completions.create({
  model: "flymyai/google-gemini-31-pro-preview",
  messages: [{ role: "user", content: "Explain in two sentences what an MCP server is." }],
});
console.log(reply.choices[0].message.content);

MCP

Your agent calls get_model_schema, then run_model with:

{
  "endpoint_id": "flymyai/google-gemini-31-pro-preview",
  "input": {
    "prompt": "Explain in two sentences what an MCP server is."
  }
}

Questions about Gemini 3.1 Pro

Do I need a Google API key for Gemini 3.1 Pro?

No. Gemini 3.1 Pro runs on FlyMy.AI's account, so you need no Google key or plan: sign in to FlyMy.AI once and each run is billed to your FlyMy.AI balance.

How much does Gemini 3.1 Pro cost?

$2.00 per 1M input tokens, $12.00 per 1M output tokens. There is no subscription or minimum; the price comes from FlyMy.AI billing and was checked on 2026-11-18.

Can I try Gemini 3.1 Pro before I write code?

Yes. Open Gemini 3.1 Pro in the FlyMy.AI playground at https://app.flymy.ai/models/flymyai/google-gemini-31-pro-preview, fill in its inputs and run it; the same run is one API call later, billed the same way.

How do I use Gemini 3.1 Pro in Claude Code, Codex or Cursor?

Add the FlyMy.AI MCP with one command and sign in, then ask in plain words, for example: "Ask Gemini 3.1 Pro: review this function for bugs and explain the fix." Your agent reads the inputs with get_model_schema and runs flymyai/google-gemini-31-pro-preview with run_model.

What does Gemini 3.1 Pro need as input?

Gemini 3.1 Pro requires prompt; it also takes 2 optional inputs, each listed on this page with its allowed values and default.

Can I call Gemini 3.1 Pro from my own code?

Yes. Send form fields to https://api.flymy.ai/api/v1/flymyai/google-gemini-31-pro-preview/predict/stream/ with your FlyMy.AI API key in the X-API-KEY header; it also answers the OpenAI Chat Completions protocol at https://api.flymy.ai/api/v1/flymyai/google-gemini-31-pro-preview/openai/v1.

Go to the source

From the FlyMy.AI model catalog of 2026-11-18: inputs from each model's live schema, prices from FlyMy.AI billing. Requests are examples to paste, not recorded runs.