Gemini 3.1 Flash Lite API
Access Gemini 3.1 Flash Lite through one API key. Ultra-affordable with 1M context.
Google's ultra-light next-gen model. The most affordable Gemini with a 1M context window and 65K output.
Takes 30 seconds.
Gemini 3.1 Flash Lite API pricing
Pay per request from your YepAPI balance — no subscription, no monthly minimum. Prices updated September 27, 2026.
| Token type | Price |
|---|---|
| Input | $0.37 / 1M tokens |
| Output | $2.22 / 1M tokens |
| Context window | 1.0M tokens |
| What it costs | Per job | Per 1,000 |
|---|---|---|
| Chat reply1K input + 500 output tokens | $0.0015 | $1.48 |
| RAG answer8K input + 800 output tokens | $0.0047 | $4.74 |
| Agent step with tools30K input + 2K output tokens | $0.016 | $15.54 |
| Long document summary100K input + 2K output tokens | $0.041 | $41.44 |
4,900+
Developers
2.3M+
API calls served
184
Endpoints
$0.01
Per call
Yep, that's it.
Try it live
Send a message and see Gemini 3.1 Flash Lite respond in real time.
Maximum tokens in the response.
Real-time tokens
Gemini 3.1 Flash Lite specs
| Provider | |
|---|---|
| Model ID | google/gemini-3.1-flash-lite-preview |
| Endpoint | /v1/ai/chat |
| Type | Text Generation |
| Context window | 1.05M tokens |
| Max output | 66K tokens |
| Reasoning | No |
| OpenAI-compatible | Yes — /v1/ai/chat/completions |
How to get a Gemini 3.1 Flash Lite API key
- 1
Create an account
Sign up at yepapi.com with Google or email. It takes about 30 seconds.
- 2
Create an API key
Open the dashboard, go to API Keys and create a key. Copy it — it starts with yep_sk_.
- 3
Call Gemini 3.1 Flash Lite
Send a request to /v1/ai/chat with the x-api-key header and model "google/gemini-3.1-flash-lite-preview".
- 4
Pay as you go
Usage is billed per request from your balance. Top up any amount; there is no subscription.
Strengths
At $0.37 per 1M input and $2.22 per 1M output tokens, Gemini 3.1 Flash Lite is the most affordable Gemini model on YepAPI.
A 1,048,576-token context window lets it process very large documents and datasets despite its lightweight design.
Up to 65,536 output tokens per response support long summaries, extractions, and structured results.
As an ultra-light Flash variant, it is optimized for low latency and high-throughput workloads.
Quick start
Copy this snippet and start making calls with Gemini 3.1 Flash Lite.
const res = await fetch('https://api.yepapi.com/v1/ai/chat', {
method: 'POST',
headers: {
'x-api-key': 'YOUR_API_KEY',
'Content-Type': 'application/json',
},
body: JSON.stringify({
"model": "google/gemini-3.1-flash-lite-preview",
"messages": [
{
"role": "user",
"content": "Explain API gateways in 2 sentences."
}
],
"maxTokens": 256
}),
});
const { data } = await res.json();
console.log(data.message.content);Gemini 3.1 Flash Lite vs similar models
Every model below runs on the same API key — switch by changing the model ID.
| Model | Provider | Price | Context |
|---|---|---|---|
| Gemini 3.1 Flash Lite | $0.37 in / $2.22 out per 1M | 1.0M | |
| Gemma 4 26B | $0.13 in / $0.44 out per 1M | 262K | |
| Gemini 2.5 Flash Lite | $0.15 in / $0.59 out per 1M | 1.0M | |
| Gemma 4 31B | $0.30 in / $0.59 out per 1M | 262K | |
| Gemini 2.5 Flash | $0.44 in / $3.69 out per 1M | 1.0M | |
| Gemini 3.5 Flash Lite | $0.44 in / $3.69 out per 1M | 1.0M | |
| Nemotron 3 Super | NVIDIA | $0 in / $0 out per 1M | 262K |
| Qwen3.7 Flash | Qwen | $0.04 in / $0.19 out per 1M | 1M |
Why use Gemini 3.1 Flash Lite through YepAPI?
Gemini 3.1 Flash Lite API: ultra-affordable with 1M context
Gemini 3.1 Flash Lite is Google's ultra-light next-generation model, the most affordable Gemini with a 1M-token context window and 65K output tokens. At $0.37 per 1M input tokens and $2.22 per 1M output tokens, it is built for high-volume, latency-sensitive workloads at minimal cost.
Through YepAPI you reach Gemini 3.1 Flash Lite with one OpenAI-compatible API key. The same key also covers other models and YepAPI's SEO, SERP, and web-scraping endpoints, so you can scrape and summarize the web cheaply in one place.
What is Gemini 3.1 Flash Lite?
Gemini 3.1 Flash Lite is Google's ultra-light, next-generation Flash model, designed to be the most affordable option in the Gemini family. Despite its lightweight focus, it carries a 1,048,576-token context window, so it can still ingest very large documents and datasets, and it supports up to 65,536 output tokens per response. It is tuned for speed and high throughput, making it ideal for simple, high-volume tasks like classification, extraction, and quick summarization. Pricing is $0.37 per 1M input tokens and $2.22 per 1M output tokens, the lowest among the Gemini models offered here.
Build with Gemini 3.1 Flash Lite via YepAPI
Call the OpenAI-compatible /v1/ai/chat endpoint with your YepAPI key. The standard Chat Completions schema means you can adopt it by changing only the base URL and model name in your existing SDK. Use it for cheap, fast tasks at scale — tagging, routing, extraction, and short summaries — including over large inputs thanks to its 1M context. One key also unlocks other models plus SEO, SERP, and scraping APIs, so you can pull web content and process it cheaply through one integration.
Gemini 3.1 Flash Lite API pricing — $0.37 / $2.22 per 1M tokens
Gemini 3.1 Flash Lite costs $0.37 per 1M input tokens and $2.22 per 1M output tokens, the most affordable Gemini rate available here. Combined with a 1M-token context, that makes it economical to run large-input tasks at high volume. Per-token billing means simple jobs cost a fraction of a cent each, so it scales comfortably across millions of lightweight requests.
Gemini 3.1 Flash Lite for high-volume classification
The model fits workloads where you need to process huge numbers of items cheaply and quickly: classifying tickets, extracting fields from documents, tagging content, and producing short summaries. Its 1M context lets it handle large inputs without chunking, while the rock-bottom price makes running it across millions of requests viable. When the task is simple but the volume is enormous, Gemini 3.1 Flash Lite is a strong, low-cost default.
What developers say
“Switched from SerpAPI and cut our SERP costs by 80%. Same data quality, way simpler billing.”
“One API key for AI models, SERP data, and web scraping. Saved us from managing 4 separate providers.”
“The $5 free credit let us prototype our entire rank tracking feature before committing. No other API does that.”
Frequently asked questions
Google's ultra-light next-gen model. The most affordable Gemini with a 1M context window and 65K output.
Gemini 3.1 Flash Lite costs $0.37 per 1M input tokens and $2.22 per 1M output tokens through YepAPI, billed per request with no monthly fee. For example, a chat reply (1K input + 500 output tokens) costs about $0.0015.
Sign up at yepapi.com (Google or email, about 30 seconds), open the dashboard and create an API key. The same key works for Gemini 3.1 Flash Lite and every other model — no separate Google account or waitlist.
Use "google/gemini-3.1-flash-lite-preview" as the model on /v1/ai/chat. The short alias "gemini-3.1-flash-lite" also works.
Yes. Point the OpenAI SDK at https://api.yepapi.com/v1/ai with your YepAPI key and set model to "google/gemini-3.1-flash-lite-preview". Streaming works the same way, so existing OpenAI code only needs the base URL and key changed.
Gemini 3.1 Flash Lite supports a 1.0M token context window with up to 66K output tokens per request.
Explore more models
Gemini 2.5 Flash Lite
GoogleAccess Gemini 2.5 Flash Lite through one API key. Google's cheapest model.
Gemini 3.7 Flash
GoogleAccess Gemini 3.7 Flash through one API key. Google Fast Agentic Multimodal.
Gemini 3.1 Pro
GoogleAccess Gemini 3.1 Pro through one API key. Google's next-generation model.
Devstral 2
MistralAccess Devstral 2 through one API key. Mistral's coding-specialized model for developers.
GLM 5.3 FlashX
Z.aiAccess GLM 5.3 FlashX through one API key. Z.ai GLM 5.3 Flash at 200 tok/s.
DeepSeek V4.1 Flash
DeepSeekAccess DeepSeek V4.1 Flash through one API key. DeepSeek Ultra-Cheap Sparse MoE.
More Text Generation models
- Seed 2.0 Pro API · ByteDance
- Claude Sonnet 5 API · Anthropic
- Ember-1 API · Fireworks
- Command A+ API · Cohere
- Claude Haiku 4.5 API · Anthropic
- DeepSeek V4 Flash API · DeepSeek
- Claude Sonnet 4.5 API · Anthropic
- Claude Sonnet 4.6 API · Anthropic
- GPT-6.1 Sol API · OpenAI
- GPT-5.6 Luna API · OpenAI
- MiniMax M2.7 API · MiniMax
- MiniMax M2.5 API · MiniMax