Speed
Output tokens / second
Custom pricing for production workloads
Gemini 3.1 Flash Lite is a cost-efficient multimodal model designed for high-volume tasks such as translation, lightweight reasoning, and simple agent workflows.
google/gemini-3-1-flash-litehttps://api.aimlapi.com/v1What is Gemini 3.1 Flash Lite API?
Gemini 3.1 Flash Lite is a cost-efficient multimodal model designed for high-volume tasks such as translation, lightweight reasoning, and simple agent workflows.
Where to Use Gemini 3.1 Flash Lite
Coding and code review
Generate, debug, and review code across languages, reading whole files or repos in a single prompt.
High-volume translation: the model is documented for fast, low-cost translation at scale, including processing chat messages, reviews, and support tickets.
Content moderation: it is documented as suited to high-volume content moderation workloads where cost efficiency and throughput matter.
Document processing and summarization: it is documented for parsing PDFs and returning concise summaries, including pipeline-style document triage and incoming file processing.
Model routing: it is documented for classifying query complexity and routing requests to the appropriate model in an agentic workflow.
See how Gemini 3.1 Flash Lite compares in generation speed and latency. Data retrieved Nov 3, 2026.
Output tokens / second
Compare 6 models available on AI/ML API across 5 independent benchmarks.
Expert-written questions across academic subjects.
Graduate-level science questions written to resist web search.
Agentic tasks completed in a command-line environment.
Reasoning across long documents of about 100k tokens.
Python coding tasks drawn from scientific research.
| Usage | Price | Unit |
|---|---|---|
| Input | $0.25 | 1M tokens |
| Output | $1.5 | 1M tokens |
| Cached input | $0.025 | 1M tokens |
Prices from the AI/ML API price list, checked on Nov 4, 2026.
AI/ML API input and output rates for 5 models, per million tokens.
| Model | Input | Output |
|---|---|---|
| $0.25 | $1.5 | |
| $0.3 | $2.5 | |
| $0.75 | $3.75 | |
| $0.75 | $3.75 | |
| $2 | $10 |
Give your agent the model details, code and documentation.
export AIMLAPI_KEY="8f2b4c7d9a1e6b3f…"curl 'https://api.aimlapi.com/v1/chat/completions' \
-H "Authorization: Bearer $AIMLAPI_KEY" \
-H 'Content-Type: application/json' \
-d '{
"model": "google/gemini-3-1-flash-lite",
"messages": [
{
"role": "user",
"content": "Write a haiku about the ocean."
}
]
}'import os
import requests
headers = {
"Authorization": f"Bearer {os.environ['AIMLAPI_KEY']}",
"Content-Type": "application/json",
}
payload = {
"model": "google/gemini-3-1-flash-lite",
"messages": [
{
"role": "user",
"content": "Write a haiku about the ocean."
}
]
}
response = requests.post("https://api.aimlapi.com/v1/chat/completions", headers=headers, json=payload, timeout=120)
response.raise_for_status()
print(response.json())const response = await fetch("https://api.aimlapi.com/v1/chat/completions", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.AIMLAPI_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"model": "google/gemini-3-1-flash-lite",
"messages": [
{
"role": "user",
"content": "Write a haiku about the ocean."
}
]
}),
});
if (!response.ok) throw new Error(`HTTP ${response.status}`);
console.log(await response.json());Gemini 3.1 Flash Lite has a 1,000,000 tokens context window and can return up to 65,536 tokens.
Gemini 3.1 Flash Lite takes audio, image, text, video as input and returns audio, text.
Use google/gemini-3-1-flash-lite as the model id. Requests go to https://api.aimlapi.com/v1/chat/completions.
Gemini 3.1 Flash Lite costs $0.25 input and $1.5 output per 1M tokens on AI/ML API, billed as you go with no subscription.
Yes, Gemini 3.1 Flash Lite can stream responses as they are generated.
Yes, Gemini 3.1 Flash Lite accepts image input alongside text.
Gemini 3.1 Flash Lite was built by Google.
Yes, it includes reasoning as one of its capabilities.
It is designed for cost-efficient, high-volume tasks such as translation, lightweight reasoning, and simple agent workflows.
Yes, it supports function calling, tools, and parallel tool calls.