# Gemini 3.1 Flash Lite — API pricing & integration guide | Y-API

> Gemini 3.1 Flash Lite is Google’s high-efficiency entry, listed with a 1,048,576-token window and text, image, video, audio and file input. The reference describes low-latency, high-volume workloads and lightweight agentic use.

This is the markdown representation of https://y-api.bestvirtualgoods.com/models/google/gemini-3.1-flash-lite. Generated by `scripts/generate-seo-assets.mjs` from the same copy the page renders — do not edit by hand.

Model ID: `google/gemini-3.1-flash-lite`

Sources reviewed: 2026-10-21. Y-API catalog snapshot: 2026-10-21.

## Choosing this model

Selection advice by Y-API. The checks below are suggested evaluations, not published test results.

### Where to start

Start with extraction, classification and short summarisation over mixed input — a PDF page, a screenshot, a short clip — where the answer is checkable against the source.

### What to watch for

A Lite tier is a cost and latency choice, not a capability guarantee. Media input appearing in the specification does not prove the gateway forwards that media format; verify each one with a small request before building on it.

## Model specifications

These are OpenRouter model-level specifications, not a Y-API compatibility test. A particular route may accept fewer input formats, parameters or tokens. Verify the features you need with a small request; a successful text response does not validate vision or tool calling.

| Field | Value |
| --- | --- |
| Context window | 1,048,576 tokens |
| Input | Text, Image, Video, File, Audio |
| Output | Text |
| Listed on OpenRouter | 2026-05-07 |
| Parameters listed by OpenRouter | `include_reasoning`, `max_tokens`, `reasoning`, `reasoning_effort`, `response_format`, `seed`, `stop`, `structured_outputs`, `temperature`, `tool_choice`, `tools`, `top_p` |

## API pricing & cost estimate

| Price basis | Input / 1M tokens | Output / 1M tokens |
| --- | --- | --- |
| Account credit | $0.25 | $1.50 |
| Cash equivalent | $0.025 | $0.15 |

$1 paid adds $10 of credit. Cash equivalent = credit consumed ÷ 10; this is not the model publisher’s list price.

Input tokens / request: 1000. Output tokens / request: 500. Number of requests: 1000.

Estimated credit consumed: $1.00. Estimated cash equivalent: $0.10.

Illustrative token budget, not measured usage or a quote. Includes input and output; excludes separate media charges, cache discounts and retries. Include billed reasoning tokens in your output budget where applicable. Actual billing follows usage returned by the service.

### Same token budget, different models

| Model | Estimated credit consumed | Estimated cash equivalent |
| --- | --- | --- |
| [Gemini 3.1 Flash Lite](https://y-api.bestvirtualgoods.com/models/google/gemini-3.1-flash-lite) | $1.00 | $0.10 |
| [Gemini 3.8 Flash](https://y-api.bestvirtualgoods.com/models/google/gemini-3.8-flash) | $5.25 | $0.525 |
| [GPT-6 Luna](https://y-api.bestvirtualgoods.com/models/openai/gpt-6-luna) | $0.35 | $0.035 |

[View LLM API pricing & billing](https://y-api.bestvirtualgoods.com/pricing)

## API integration examples

These minimal, text-only requests use the exact Y-API model ID. They do not demonstrate image, audio, video, file or tool support. The output limit also needs room for reasoning; an empty answer with finish_reason=length can mean the budget was exhausted.

Set the TOKEN environment variable to a key from your console. Run this on your server or locally; never expose a key in browser code or a public repository.

### A task to try

From this delivery note, extract the supplier, the amount and the due date. Return null for anything the note does not state, and do not infer a date from context.

```bash
curl --fail-with-body --silent --show-error --max-time 120 \
  'https://api.y-api.bestvirtualgoods.com/v1/chat/completions' \
  -H "Authorization: Bearer ${TOKEN:?Set TOKEN first}" \
  -H 'Content-Type: application/json' \
  --data-binary @- <<'JSON'
{
  "model": "google/gemini-3.1-flash-lite",
  "messages": [
    {
      "role": "user",
      "content": "From this delivery note, extract the supplier, the amount and the due date. Return null for anything the note does not state, and do not infer a date from context."
    }
  ],
  "max_tokens": 4096
}
JSON
```

```python
import json
import os
import sys
import urllib.error
import urllib.request

payload = {
  "model": "google/gemini-3.1-flash-lite",
  "messages": [
    {
      "role": "user",
      "content": "From this delivery note, extract the supplier, the amount and the due date. Return null for anything the note does not state, and do not infer a date from context."
    }
  ],
  "max_tokens": 4096
}

request = urllib.request.Request(
    "https://api.y-api.bestvirtualgoods.com/v1/chat/completions",
    data=json.dumps(payload).encode("utf-8"),
    headers={
        "Authorization": "Bearer " + os.environ["TOKEN"],
        "Content-Type": "application/json",
    },
    method="POST",
)
try:
    with urllib.request.urlopen(request, timeout=120) as response:
        result = json.load(response)
    print(json.dumps(result, ensure_ascii=False, indent=2))
except urllib.error.HTTPError as error:
    print(error.read().decode("utf-8"), file=sys.stderr)
    raise SystemExit(1)
```

### How to evaluate the result

Score field accuracy separately from invented values. A run that fills a plausible date where the note was silent is worse than one that returns null, even though it looks more useful.

## Before you choose

### Can Flash Lite replace a larger Gemini entry?

Only where your own evaluation says so. Run the same task set through both and compare accepted outputs and retries; a cheaper call that needs a second attempt is not cheaper.

## Sources & scope

Technical facts come from the cited model page and, where available, its linked publisher card. A card describes that checkpoint; it is not proof of the weights a gateway serves. Prices come only from the Y-API catalog. We do not claim measured latency, uptime or benchmark scores for this endpoint.

- [OpenRouter model page & specifications](https://openrouter.ai/google/gemini-3.1-flash-lite)
- [Y-API catalog & prices (JSON)](https://y-api.bestvirtualgoods.com/models.json)

## Models to compare

Compare these alternatives on the same inputs. Their descriptions explain different roles; a lower price does not establish equivalent quality.

### [Gemini 3.8 Flash](https://y-api.bestvirtualgoods.com/models/google/gemini-3.8-flash)

Gemini 3.8 Flash is the newest Flash-tier entry from Google, with a 1,048,576-token window and text, image, video, file and audio input. The publisher describes it as improving on 3.7 Flash in software engineering and multi-step reasoning.

### [GPT-6 Luna](https://y-api.bestvirtualgoods.com/models/openai/gpt-6-luna)

GPT-6 Luna is the fast, cost-efficient member of the GPT-6 series, positioned below GPT-6 Sol. It accepts file, image and text input over a 1,050,000-token window and is aimed at high-volume, latency-sensitive work.

## Links

- HTML version of this page: https://y-api.bestvirtualgoods.com/models/google/gemini-3.1-flash-lite
- Site index for agents: https://y-api.bestvirtualgoods.com/llms.txt
- Full reference (single file): https://y-api.bestvirtualgoods.com/llms-full.txt
- OpenAPI 3.1 spec: https://y-api.bestvirtualgoods.com/openapi.json
- Model catalog (JSON, no key needed): https://y-api.bestvirtualgoods.com/models.json
- API base URL: `https://api.y-api.bestvirtualgoods.com/v1`
- Contact: support@bestvirtualgoods.com
- Model catalog: https://y-api.bestvirtualgoods.com/models
- Integration guide: https://y-api.bestvirtualgoods.com/docs
