- Text
- Tool calling
Gemini 3.1 Flash Lite API: pricing, capabilities and setup
Gemini 3.1 Flash Lite API: Google's lightweight text model for high-volume requests — classification, data extraction and short answers in strict JSON.
pay as you go · no subscription · key right after sign-up
How much Gemini 3.1 Flash Lite costs
- Input$0.10per 1M tokens
- Output$0.40per 1M tokens
- Cache read$0.01per 1M tokens
- Cache write$0.125per 1M tokens
Cost calculator
100 M tokens
75%
The rest is output
- With llmbox
- $18
What a typical task costs
| Task | Tokens (input / output) | With llmbox |
|---|---|---|
| Short chat | 2 000 / 500 | $0.0004 |
| Code review | 20 000 / 2 000 | $0.0028 |
| Document summary | 40 000 / 2 000 | $0.0048 |
| Agent session | 600 000 / 30 000 | $0.072 |
Specs
- Inputtext
Capabilities
- Tool calling
- JSON schema output
- Streaming
Endpoints
/v1/chat/completions
Setup in three steps
- 01Get a key
Sign up and create an API key in the dashboard.
Get a key → - 02Set the base URL
In any OpenAI-compatible client, point the API address to:
- 03Pass the model id
Put this identifier in the model field:
import os
from openai import OpenAI
client = OpenAI(
base_url="https://llmbox.cc/v1",
api_key=os.environ["LLMBOX_API_KEY"],
)
resp = client.chat.completions.create(
model="google/gemini-3.1-flash-lite",
messages=[{"role": "user", "content": "Hi! Tell me about yourself in two sentences."}],
)
print(resp.choices[0].message.content)What Gemini 3.1 Flash Lite is good for
Gemini 3.1 Flash Lite is Google's lightweight text model for workloads with many requests, each of them relatively simple: labeling and classifying text, extracting fields from document text, short chat answers, preparing data for the next step of a pipeline. On llmbox it is available with the same API key as every other model in the catalog, through an OpenAI-compatible API, under the model ID google/gemini-3.1-flash-lite.
The model takes text in and returns text. You can stream the answer, and for tasks with a strict format you can constrain it to a JSON schema. Tool calling lets you build the model into an agent workflow: it decides which of your functions to call, and your code runs the function.
What it's good for
Flash Lite is built for pipelines with a large stream of similar requests. Typical examples: tagging reviews and support tickets by topic, pulling billing details out of emails and invoices into strict JSON, short in-app suggestions, and pre-filtering data before a more expensive model. On tasks like these the total spend is driven by the per-token rate and the length of the answer, so the smallest model often costs noticeably less than the larger ones.
Streaming makes the model convenient for chats and suggestions: the user sees the answer as it is generated instead of waiting for the whole thing.
When it's not the right fit
- Long reasoning, complex code and agents with multi-step planning — Gemini 3.8 Flash fits those, and Gemini 4 Argon the hardest tasks.
- You need to analyze an image or a scanned document — Flash Lite accepts text only, while Gemini 3.8 Flash also understands images.
- You need image generation — use Gemini 3.1 Flash Image or Gemini 3 Pro Image.
How to connect
The model works in the Chat Completions format, which most libraries and tools understand, including Cursor and OpenCode. You don't need a separate Google AI Studio key or a Google Cloud project: an llmbox key and the base URL from the Quickstart are enough. The same client calls models from other vendors, so Flash Lite is easy to compare with them on the same set of requests.
Gemini 3.1 Flash Lite API pricing
Cost is calculated per million tokens, separately for input and output; the rates are on this page. You pay from a prepaid balance as you go, with no subscription. How to top up your balance is described in Balance and pricing. The cost of each request is visible in the request log in your dashboard.
Typical tasks
- Classifying and labeling large streams of text
- Extracting fields from document text into strict JSON
- Chatbots and suggestions with short answers
Gemini 3.1 Flash Lite vs neighbours
| Model | Input · 1M | Output · 1M |
|---|---|---|
| Gemini 3.1 Flash Lite | $0.10 | $0.40 |
| Gemini 3.7 Flash | $0.225 | $1.125 |
| Gemini 3.8 Flash | $0.225 | $1.125 |
| Gemini 3.6 Flash | $0.25 | $1.215 |
| Gemini 3.1 Pro Preview | $0.30 | $1.70 |
| DeepSeek V4.1 Flash DeepSeek | $0.10 | $0.27 |
Other Google models
Articles about the model

How much does 1M tokens cost: GPT, Gemini, DeepSeek, Qwen
Current per-million-token rates for GPT, Gemini, DeepSeek and Qwen models: what input, output, cache and reasoning mean, and how to estimate a project's usage.

An AI assistant for your website: a chat widget powered by a neural network
Build a website chat widget: a Node.js server protects the key, streams the model's answer, and uses limits to control spending. Includes server, widget, and prompt code.
FAQ
How do I connect Gemini 3.1 Flash Lite through llmbox?
Create a key in the API keys section of your dashboard and pass it, together with the llmbox base URL, to an OpenAI-compatible client, then pick google/gemini-3.1-flash-lite as the model. Step-by-step setup is in the Quickstart.
Do I need a Google AI Studio key or a Google Cloud account?
No. Requests use an llmbox key that you create in your dashboard. The same key works with every other model in the catalog.
How much does Gemini 3.1 Flash Lite cost?
The rates per million input and output tokens are on this page. You pay from a prepaid balance as you go; there is no subscription.
Can I get the response as JSON?
Yes. The model supports output to a JSON schema, which is handy for field extraction and labeling. How to set the schema is covered in the docs.
Is streaming supported?
Yes. You can receive the answer as it is generated, which suits chats and in-app suggestions where the user expects the first words right away.
Can the model generate images?
No, it only responds with text. For images the catalog has Gemini 3.1 Flash Image and Gemini 3 Pro Image.