YepAPI

Command Palette

Search for a command to run...

GoogleText Generation/v1/ai/chat

Gemini 3.1 Flash Lite

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.

No credit card required. Takes 30 seconds.

2,400+

Developers

1.2M+

API calls served

100+

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

Context Window

1.0M tokens

Max Output

66K tokens

Input Price

$0.35 / 1M tokens

Output Price

$2.10 / 1M tokens

Strengths

Ultra affordable

At $0.35 per 1M input and $2.10 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);

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.35 per 1M input tokens and $2.10 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.35 per 1M input tokens and $2.10 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.35 / $2.10 per 1M tokens

Gemini 3.1 Flash Lite costs $0.35 per 1M input tokens and $2.10 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.

Try Gemini 3.1 Flash Lite free

New YepAPI accounts include $5 in free credit with no card required. At this model's pricing, that covers a very large number of classification, extraction, and summarization calls, so you can test Gemini 3.1 Flash Lite at scale before committing.

Start generating in 30 seconds

$5 free credit on signup. No credit card required. Pay per call.

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.

Input tokens cost $0.35 per 1M tokens and output tokens cost $2.10 per 1M tokens through YepAPI. No monthly minimums — you only pay for what you use.

Sign up for a free API key, then send requests to the /v1/ai/chat endpoint.

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?

$5 free credit on signup. No credit card required. Pay per call.

Explore more models