gemini-3.1-flash-lite API Pricing & Access
Google's most cost-effective model, optimized for high-volume agent tasks, translation, and simple data processing.
Pricing by group
USD per 1M tokens. Price = base price × group ratio.
| Group | Input | Output | Cache read | About this group |
|---|---|---|---|---|
| Anti-Gemini-1 | $0.0184 | $0.1103 | $0.00184 | Attractive discount, dedicated independent link with traffic sharding scheduling |
| Anti-Gemini-2 | $0.0375 | $0.225 | $0.00375 | Minor discount, dedicated resources |
| Aistudio-Gemini-2 | $0.0662 | $0.3971 | $0.00662 | generous discount, sufficient base quota |
| Vertex-Gemini-2 | $0.075 | $0.45 | $0.0075 | Moderate discount, rich regional endpoints |
| Aistudio-Gemini-3 | $0.1103 | $0.6618 | $0.011 | Moderate discount, higher quota |
| Vertex-Gemini-3 | $0.225 | $1.35 | $0.0225 | Minor discount, high-priority dedicated pool |
| Aistudio-Gemini-4 | $0.239 | $1.434 | $0.0239 | Minor discount, priority access to new model previews |
Snapshot taken at build time on 2026-11-26. Actual charges follow the live price table above and your console.
Capabilities
- Provider
- Features
- Conversation · Tool · Image Recognition
- API formats
- Gemini generateContent · OpenAI Chat Completions
Quick start
Base URL: https://api.openlux.ai/v1. Create an API key in the console and replace YOUR_API_KEY in the examples.
curl https://api.openlux.ai/v1/chat/completions \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "gemini-3.1-flash-lite",
"messages": [{"role": "user", "content": "Hello"}]
}'from openai import OpenAI
client = OpenAI(base_url="https://api.openlux.ai/v1", api_key="YOUR_API_KEY")
resp = client.chat.completions.create(
model="gemini-3.1-flash-lite",
messages=[{"role": "user", "content": "Hello"}],
)
print(resp.choices[0].message.content)Full parameters in the API docs
FAQ
How do I call the gemini-3.1-flash-lite API?
Sign up for OpenLux, create an API key in the console, set the base URL to https://api.openlux.ai/v1 and use gemini-3.1-flash-lite as the model name.
How is the gemini-3.1-flash-lite API billed?
Pay as you go: input and output tokens are priced separately, and the price depends on the group you choose. At build time the lowest public group was $0.0184 per 1M input tokens and $0.1103 per 1M output tokens. Top-ups start at $1.
How is prompt caching billed for gemini-3.1-flash-lite?
Cache hits (cache reads) cost 0.1× the input price.
Is there a Batch API?
Not at the moment. OpenLux has no Batch API; all requests are real-time calls billed as such. For bulk jobs, send concurrent requests to the regular endpoints.
Which API formats does gemini-3.1-flash-lite support?
Gemini generateContent, OpenAI Chat Completions.