API429 / gemini-3.1-pro-preview

Gemini 3.1 Pro Preview API: pricing, integration and limits

Gemini 3.1 Pro Preview through API429 costs $0.60 per 1M input and $3.60 per 1M output tokens — 70% below the official Google rate of $2 / $12.

Gemini 3.1 Pro Preview: repeated prompt stability evaluations. Plan a small control task, retain input and accepted results, and verify access under your key. Manufacturer specifications and the client request contract are separate checks.

Gemini 3.1 Pro Preview API by Google: access through API429
Gemini 3.1 Pro Preview (gemini-3.1-pro-preview) is a text model by Google, available through the OpenAI-compatible API429 with one key.

Read in Russian

Published: · Updated:

Exact ID: gemini-3.1-pro-preview. Models available to your key: GET /v1/models.

Gemini 3.1 Pro Preview API pricing

API429 priceOfficial Google price (Standard)
$0.600000000000 / 1,000,000 cache-write input tokens
$0.600000000000 / 1,000,000 cached input tokens
$0.600000000000 / 1,000,000 input tokens
$3.600000000000 / 1,000,000 output tokens
$2 / $12 per 1M ordinary input / output tokens

Standard; text; input ≤200,000 tokens

Manufacturer sourceChecked: Oct 24, 2026. Cache, tools and special modes are excluded from this rate pair.

API429 prices as of the catalog dated .

Cost calculator for Gemini 3.1 Pro Preview

API429$3
Manufacturer$10
Difference from manufacturer price70%API429 costs less for this workload

Ordinary input and output are counted, excluding cache, tools, fees and repeated calls. This estimates spending; it does not validate whether a request is accepted. RUB results use only your entered rate; they are neither a bank quote nor a top-up amount.

Context and capabilities of Gemini 3.1 Pro Preview

The manufacturer specifies an input limit of 1,048,576 and a maximum output of 65,536 tokens for its own API (specification: Google, checked Oct 24, 2026, 6:11 AM UTC). These are manufacturer limits, not verified effective API429 limits: test very long contexts on your own request.

API429 capabilities published for this exact ID: chat reasoning search vision . Test any mode missing from this list on your own request.

Practical task: preview prompt stability evaluation

Freeze a prompt set and acceptance criteria. Repeat the same tasks while retaining responses, dates and parameters. Before using the model in a production workflow, check refusals, incomplete responses and changes in formatting. A migration decision should follow those observations rather than the Pro label alone.

Exact version and lifecycle

According to Google documentation reviewed on 2026-10-24, the exact ID includes preview and the release date is February 19, 2026. No shutdown is announced in the checked table, but preview must remain an explicit lifecycle qualification. Do not substitute gemini-3.1-pro: a separate non-preview identity has not been established by this review.

Context, output and ordinary token budget

According to Google documentation reviewed on 2026-10-24, the manufacturer specifies separate limits of 1,048,576 input tokens and 65,536 output tokens. Output is not subtracted from the input-only limit in this description. Standard text is $2/$12 per million input/output tokens up to and including 200,000 input tokens; above that, $4/$18 applies to the whole request. Allocate a separate budget for repeated stability checks and compare accepted outputs, not merely completed HTTP responses.

Alternatives for a controlled comparison

gemini-3.6-flash is a candidate for regression testing an existing Flash workflow. claude-fable-5 is a candidate for research document synthesis. gpt-5.6-terra is a candidate for repeatable record extraction and classification.

Speed and errors of Gemini 3.1 Pro Preview over 24 hours

Over the last 24 hours: mean successful response time — 21 s; service error rate — 0%. Data as of .

Source: public 24-hour statistics. The mean is neither a median nor a response time guarantee.

How to connect Gemini 3.1 Pro Preview: curl, Python, JavaScript

Create a key, check your balance and set API429_API_KEY on the server. The request is paid from your balance; Python and JavaScript first check that the model is available to your key.

curl

Before generation, check the exact ID in the response from GET https://gateway.api429.com/v1/models using the same Bearer key.

curl --fail-with-body https://gateway.api429.com/v1/chat/completions \
  -H "Authorization: Bearer $API429_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"gemini-3.1-pro-preview","messages":[{"role":"user","content":"Follow this instruction: Return three items; if data is absent, write unknown. Data: no cost is stated; the deadline is 8 days. Return deadline, cost and the main question for the author."}],"max_tokens":512,"stream":false}'

Python 3

import json
import os
import urllib.request

key = os.environ["API429_API_KEY"]
base = "https://gateway.api429.com/v1"
headers = {"Authorization": "Bearer " + key, "Content-Type": "application/json"}
models_request = urllib.request.Request(base + "/models", headers=headers)
with urllib.request.urlopen(models_request, timeout=30) as response:
    available = {item["id"] for item in json.load(response)["data"]}
model = "gemini-3.1-pro-preview"
if model not in available:
    raise ValueError("Model is unavailable to this key")
payload = json.loads("{\"model\":\"gemini-3.1-pro-preview\",\"messages\":[{\"role\":\"user\",\"content\":\"Follow this instruction: Return three items; if data is absent, write unknown. Data: no cost is stated; the deadline is 8 days. Return deadline, cost and the main question for the author.\"}],\"max_tokens\":512,\"stream\":false}")
request = urllib.request.Request(base + "/chat/completions",
    data=json.dumps(payload).encode("utf-8"), headers=headers, method="POST")
with urllib.request.urlopen(request, timeout=60) as response:
    result = json.load(response)
choice = result["choices"][0]
if choice.get("finish_reason") != "stop" or not choice.get("message", {}).get("content"):
    raise ValueError("Incomplete or empty response")
print(choice["message"]["content"])
print(result.get("usage"))

JavaScript: Node.js 18+

const key = process.env.API429_API_KEY;
if (!key) throw new Error("Set API429_API_KEY");
const base = "https://gateway.api429.com/v1";
const headers = { Authorization: "Bearer " + key, "Content-Type": "application/json" };
const model = "gemini-3.1-pro-preview";
const available = await fetch(base + "/models", { headers, signal: AbortSignal.timeout(30000) });
if (!available.ok) throw new Error("Models HTTP " + available.status);
if (!(await available.json()).data.some(item => item.id === model)) throw new Error("Model unavailable to this key");
const response = await fetch(base + "/chat/completions", {
  method: "POST", headers, signal: AbortSignal.timeout(60000),
  body: JSON.stringify({"model":"gemini-3.1-pro-preview","messages":[{"role":"user","content":"Follow this instruction: Return three items; if data is absent, write unknown. Data: no cost is stated; the deadline is 8 days. Return deadline, cost and the main question for the author."}],"max_tokens":512,"stream":false})
});
if (!response.ok) throw new Error("Generation HTTP " + response.status);
const result = await response.json();
const choice = result.choices?.[0];
if (choice?.finish_reason !== "stop" || !choice?.message?.content) throw new Error("Incomplete or empty response");
console.log(choice.message.content);
console.log(result.usage);

The examples use basic fields from the published API contract.

Gemini 3.1 Pro Preview in n8n: HTTP Request

  1. Create an HTTP Request with method POST and URL https://gateway.api429.com/v1/chat/completions.
  2. Store the Bearer key in credentials; add Content-Type: application/json. Do not put the key in an exported workflow example.
  3. Send the JSON from curl: the exact model gemini-3.1-pro-preview, messages, max_tokens and stream=false.
  4. After the HTTP node, check choices, finish_reason and the response content before writing the result to your production system.

HTTP Request documentation.

Alternatives to Gemini 3.1 Pro Preview: similar models and prices

Compare them on the same task. Prices apply to a short text request; see the catalog for full pricing.

ModelAPI429: input / output per 1M tokens
Gemini 3.6 Flashgemini-3.6-flash$0.225 / $1.125
Claude Fable 5claude-fable-5$3 / $15
GPT 5.6 Terragpt-5.6-terra$0.75 / $4.5

Version and release date

Manufacturer API release date, Google: . The exact predecessor has not been established in the reviewed sources.

Payment and a $10 test

  • Russian bank card. Top up your balance in the account.
  • Invoice for companies. Bank transfer with closing documents.
  • USDT and TON. Top up in crypto.

$10 test credit. Subscribe to our Telegram channel through the bot and get $10 on your balance for the first requests. Get $10 in the bot

Frequently asked questions

Can preview be removed from the identifier?

No. This review covers exactly gemini-3.1-pro-preview, released on February 19, 2026. It does not establish a separate gemini-3.1-pro identity. Retain the suffix in requests, evaluation logs and cost comparisons so observations cannot be confused with those of another version.

What should I check before using the preview in a workflow?

Repeat a fixed prompt set containing missing and contradictory data. Compare formatting compliance, coverage and incomplete responses across runs. A preview catalog entry supports deliberate evaluation of this version; it does not promise behavioral stability or compatibility with future changes.

Why budget repeated stability runs separately?

According to Google documentation reviewed on 2026-10-24, ordinary rates are $2/$12 per million input/output tokens through 200,000 input tokens inclusive, and $4/$18 for the entire request above that threshold. Every evaluation run consumes tokens again. Record repetitions and complete prompt size rather than budgeting only one short accepted response.

Does the absence of a shutdown date make Preview stable?

No. According to Google documentation reviewed on 2026-10-24, no shutdown is announced in the checked table, but the version retains explicit preview status. Replacing the evaluated model requires a new identity and lifecycle review. Do not transfer these test results to a suffix-free or future stable version based on similar names.

Sources and review

Editorial review: . Pricing and general calculator · Getting started · Compare the family: Gemini

Telegram