Published: · Updated:
Exact ID: gemini-3.1-flash-lite. Models available to your key: GET /v1/models.
Gemini 3.1 Flash-Lite API pricing
| API429 price | Official Google price (Standard) |
|---|---|
$0.075000000000 / 1,000,000 cache-write input tokens $0.075000000000 / 1,000,000 cached input tokens $0.075000000000 / 1,000,000 input tokens $0.450000000000 / 1,000,000 output tokens | $0.25 / $1.5 per 1M ordinary input / output tokens Standard; text input, output including thinking; excludes Batch, cache and tools 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 Flash-Lite
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 Flash-Lite
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, 3:05 PM 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 . Test any mode missing from this list on your own request.
Classify support messages and preserve uncertainty in translation
Build a control queue for Gemini 3.1 Flash-Lite containing billing, shipping, refund and unknown labels. Ask for a label, an exact supporting quote and a translation that preserves negation, amounts and order identifiers. A request for a refund does not establish that money was returned. Treat two intentions in one message as a separate review case rather than silently choosing one. Label reference answers manually before increasing volume, then inspect errors by category and track appropriate abstentions separately. This workflow tests behavior on your own messages; it is not a published quality benchmark or evidence of a successful authenticated API429 request.
Stable identity and a migration checkpoint
Google documentation checked on 2026-10-24 lists gemini-3.1-flash-lite as stable, released on 2026-05-07. Its lifecycle table gives 2027-05-07 as the earliest possible shutdown date, rather than a fixed retirement appointment, and recommends gemini-3.5-flash-lite as replacement. Do not substitute the retired preview identity or the separate image model. Preserve the classification sample for a later migration review, including mixed languages, negation and insufficient context. Repeat the same acceptance checks before switching the application to another ID; a manufacturer recommendation does not establish equivalent output for your specific labels or translations.
Separate manufacturer limits from the text request contract
The Google model page checked on 2026-10-24 specifies 1 048 576 input tokens and 65 536 output tokens as separate manufacturer limits. These are not verified effective API429 limits. The API429 public catalog checked that day lists the exact stable text ID with chat, without proving access under your key. Its public OpenAPI gives max_tokens a minimum of 1 and no declared maximum. Start with a small text request and validate finish_reason, nonempty content and usage. Native multimodal, tool and thinking capabilities cannot be inferred for this route from the manufacturer model name alone.
Budget accepted records and compare three candidates
Measure cost per accepted record by dividing the total evaluation spend, including retries, by the number of outputs that pass your label, quote and translation checks. An incomplete completion is not an accepted record. Keep the fresh API429 quotation separate from the current Google Standard text reference; audio input, Batch, caching and tools need their own calculation. Compare gemini-3.5-flash-lite as the recommended replacement, gemini-3.6-flash on ambiguous labels and gemini-3.8-flash on messages with multiple intentions. These are candidates for the same controlled experiment, without an assumed quality ranking, promised latency or guaranteed correctness on a future queue.
Speed and errors of Gemini 3.1 Flash-Lite over 24 hours
Over the last 24 hours: mean successful response time — 3.8 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 Flash-Lite: 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-flash-lite","messages":[{"role":"user","content":"Classify this message: \"I was charged twice; the parcel has not shipped.\" Labels: billing, shipping, refund, unknown. Return a label, supporting quote and a French translation. Do not infer that a refund occurred; abstain when evidence is insufficient."}],"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-flash-lite"
if model not in available:
raise ValueError("Model is unavailable to this key")
payload = json.loads("{\"model\":\"gemini-3.1-flash-lite\",\"messages\":[{\"role\":\"user\",\"content\":\"Classify this message: \\\"I was charged twice; the parcel has not shipped.\\\" Labels: billing, shipping, refund, unknown. Return a label, supporting quote and a French translation. Do not infer that a refund occurred; abstain when evidence is insufficient.\"}],\"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-flash-lite";
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-flash-lite","messages":[{"role":"user","content":"Classify this message: \"I was charged twice; the parcel has not shipped.\" Labels: billing, shipping, refund, unknown. Return a label, supporting quote and a French translation. Do not infer that a refund occurred; abstain when evidence is insufficient."}],"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 Flash-Lite in n8n: HTTP Request
- Create an HTTP Request with method POST and URL
https://gateway.api429.com/v1/chat/completions. - Store the Bearer key in credentials; add
Content-Type: application/json. Do not put the key in an exported workflow example. - Send the JSON from curl: the exact model
gemini-3.1-flash-lite, messages, max_tokens and stream=false. - After the HTTP node, check
choices,finish_reasonand the response content before writing the result to your production system.
Alternatives to Gemini 3.1 Flash-Lite: similar models and prices
Compare them on the same task. Prices apply to a short text request; see the catalog for full pricing.
| Model | API429: input / output per 1M tokens |
|---|---|
Gemini 3.5 Flash Litegemini-3.5-flash-lite | $0.09 / $0.75 |
Gemini 3.6 Flashgemini-3.6-flash | $0.225 / $1.125 |
Gemini 3.8 Flashgemini-3.8-flash | $0.225 / $1.125 |
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
When should the classifier abstain?
Use unknown when the source lacks evidence for a label or supports conflicting interpretations. Retain the source quote for human review; the translated version must not introduce a missing fact.
Which ID distinguishes this release from Flash-Lite Preview?
Send gemini-3.1-flash-lite literally. The stable release and preview have separate identifiers and lifecycle records; a similar display name does not establish interchangeability.
Is May 7, 2027 a confirmed final shutdown date?
No. Google describes the dates in its table checked on 2026-10-24 as earliest possible shutdown dates. Recheck notices and the recommended gemini-3.5-flash-lite replacement when planning migration.
How can I review translations before scaling the queue?
Use manually checked examples containing negations, order identifiers and mixed languages. Score meaning preservation independently from label accuracy and count only accepted records when calculating evaluation cost.
Sources and review
- ai.google.dev/gemini-api/docs/models/gemini-3.1-flash-lite
- ai.google.dev/gemini-api/docs/pricing
- ai.google.dev/gemini-api/docs/deprecations
- gateway.api429.com/api/public/catalog
- gateway.api429.com/api/public/openapi.json
Editorial review: . Pricing and general calculator · Getting started · Compare the family: Gemini
