YepAPI
GoogleText Generation/v1/ai/chat

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 typePrice
Input$0.37 / 1M tokens
Output$2.22 / 1M tokens
Context window1.0M tokens
What it costsPer jobPer 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.

POST/v1/ai/chat

Maximum tokens in the response.

Real-time tokens

Hit "Send Request" to see the response

Gemini 3.1 Flash Lite specs

ProviderGoogle
Model IDgoogle/gemini-3.1-flash-lite-preview
Endpoint/v1/ai/chat
TypeText Generation
Context window1.05M tokens
Max output66K tokens
ReasoningNo
OpenAI-compatibleYes — /v1/ai/chat/completions

How to get a Gemini 3.1 Flash Lite API key

  1. 1

    Create an account

    Sign up at yepapi.com with Google or email. It takes about 30 seconds.

  2. 2

    Create an API key

    Open the dashboard, go to API Keys and create a key. Copy it — it starts with yep_sk_.

  3. 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. 4

    Pay as you go

    Usage is billed per request from your balance. Top up any amount; there is no subscription.

Strengths

✓
Ultra affordable

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.

✓
1M context

A 1,048,576-token context window lets it process very large documents and datasets despite its lightweight design.

✓
65K output

Up to 65,536 output tokens per response support long summaries, extractions, and structured results.

✓
Fast responses

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.

ModelProviderPriceContext
Gemini 3.1 Flash LiteGoogle$0.37 in / $2.22 out per 1M1.0M
Gemma 4 26BGoogle$0.13 in / $0.44 out per 1M262K
Gemini 2.5 Flash LiteGoogle$0.15 in / $0.59 out per 1M1.0M
Gemma 4 31BGoogle$0.30 in / $0.59 out per 1M262K
Gemini 2.5 FlashGoogle$0.44 in / $3.69 out per 1M1.0M
Gemini 3.5 Flash LiteGoogle$0.44 in / $3.69 out per 1M1.0M
Nemotron 3 SuperNVIDIA$0 in / $0 out per 1M262K
Qwen3.7 FlashQwen$0.04 in / $0.19 out per 1M1M

Why use Gemini 3.1 Flash Lite through YepAPI?

✓One API key for all models — no separate accounts
✓OpenAI SDK compatible — just change the base URL
✓No monthly minimums — pay per token
✓Switch models with one line of code
✓Full provider passthrough — citations, search results, and all extras included
✓Streaming and non-streaming support on every model
✓Works with Cursor, Claude, LangChain, and any LLM tool
✓Unified billing across all providers

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.

Start generating in 30 seconds

Pay per call, no subscriptions.

What developers say

“Switched from SerpAPI and cut our SERP costs by 80%. Same data quality, way simpler billing.”

Marcus T.

SEO Platform Founder

“One API key for AI models, SERP data, and web scraping. Saved us from managing 4 separate providers.”

Priya S.

Full-Stack Developer

“The $5 free credit let us prototype our entire rank tracking feature before committing. No other API does that.”

Jake R.

Indie Hacker

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.

Ready to use Gemini 3.1 Flash Lite?

Pay per call, no subscriptions.

Explore more models