Gemini 2.5 Flash Lite Preview API

Gemini 2.5 Flash Lite Preview is a lightweight AI model developed by Google, optimized for quick responses and efficient processing, making it ideal for tasks requiring minimal latency and resource consumption

Modalities
Image, TextText
In / Out price
$0.075/$0.3per 1M
Context window
1M tokens
Released
Sep 9, 2025

Gemini 2.5 Flash Lite Preview overview

The pelican test: one prompt, every text model, unedited SVG output from Nov 3, 2026.

SVG of a pelican riding a bicycle, written by Gemini 2.5 Flash Lite Preview through AI/ML API

Gemini 2.5 Flash Lite Preview specs

Model ID
google/gemini-2.5-flash-lite
Developer
Google
Context window
1,000,000 tokens
Max output
65,536 tokens
Input
Image, Text
Output
Text
API
OpenAI-compatible, base URL https://api.aimlapi.com/v1

What is Gemini 2.5 Flash Lite Preview API?

Gemini 2.5 Flash Lite Preview is a lightweight AI model developed by Google, optimized for quick responses and efficient processing, making it ideal for tasks requiring minimal latency and resource consumption

Where to Use Gemini 2.5 Flash Lite Preview

Coding and code review
Generate, debug, and review code across languages, reading whole files or repos in a single prompt.

Use cases

Gemini 2.5 Flash-Lite is documented as suited for high-volume classification tasks, where fast, low-cost handling of many requests is the priority. It is also suited for simple data extraction, especially when the input is lightweight and the output needs to be structured. Another documented use case is translation, including high-throughput translation workflows. It is also positioned for intelligent routing and other cost-sensitive, high-scale operations.

Capabilities

  • Function calling
  • Reasoning
  • Streaming
  • Structured outputs

Gemini 2.5 Flash Lite Preview benchmarks by Artificial Analysis

See how Gemini 2.5 Flash Lite Preview compares in generation speed and latency. Data retrieved Nov 3, 2026.

Speed

Output tokens / second

Benchmark results

Compare 14 models available on AI/ML API across 5 independent benchmarks.

Humanity's Last Exam

Expert-written questions across academic subjects.

Gemini 2.5 Flash Lite Preview API pricing

Gemini 2.5 Flash Lite Preview pricing in US dollars
UsagePriceUnit
Input$0.0751M tokens
Output$0.31M tokens
Cached input$0.0751M tokens

Prices from the AI/ML API price list, checked on Nov 4, 2026.

Gemini 2.5 Flash Lite Preview vs other models: token prices

AI/ML API input and output rates for 5 models, per million tokens.

AI/ML API model prices in USD per million tokens
ModelInputOutput
Gemini 2.5 Flash Lite Preview$0.075$0.3
Gemini 3.5 Flash Lite$0.3$2.5
Gemini 3.8 Flash$0.75$3.75
Gemini 3.7 Flash$0.75$3.75
Gemini 4 Argon$2$10

How to use the Gemini 2.5 Flash Lite Preview API

View docs

Build with your agent

Give your agent the model details, code and documentation.

1Get your API key

Create API key
export AIMLAPI_KEY="8f2b4c7d9a1e6b3f…"

2Make your first request

curl 'https://api.aimlapi.com/v1/chat/completions' \
  -H "Authorization: Bearer $AIMLAPI_KEY" \
  -H 'Content-Type: application/json' \
  -d '{
  "model": "google/gemini-2.5-flash-lite",
  "messages": [
    {
      "role": "user",
      "content": "Write a haiku about the ocean."
    }
  ]
}'

Related articles

All posts

Gemini 2.5 Flash Lite Preview FAQ

What is the context window of Gemini 2.5 Flash Lite Preview?

Gemini 2.5 Flash Lite Preview has a 1,000,000 tokens context window and can return up to 1,048,576 tokens.

What inputs and outputs does Gemini 2.5 Flash Lite Preview support?

Gemini 2.5 Flash Lite Preview takes image, text as input and returns text.

What is the model ID for Gemini 2.5 Flash Lite Preview?

Use google/gemini-2.5-flash-lite as the model id. Requests go to https://api.aimlapi.com/v1/chat/completions.

How much does Gemini 2.5 Flash Lite Preview cost?

Gemini 2.5 Flash Lite Preview costs $0.075 input and $0.3 output per 1M tokens on AI/ML API, billed as you go with no subscription.

Does Gemini 2.5 Flash Lite Preview support streaming?

Yes, Gemini 2.5 Flash Lite Preview can stream responses as they are generated.

Can Gemini 2.5 Flash Lite Preview read images?

Yes, Gemini 2.5 Flash Lite Preview accepts image input alongside text.

Who created Gemini 2.5 Flash Lite Preview?

Gemini 2.5 Flash Lite Preview was built by Google.

What are the typical use cases for Gemini 2.5 Flash Lite Preview?

It is designed for quick responses and efficient processing, suited for tasks that need minimal latency and low resource use.

Is Gemini 2.5 Flash Lite Preview built for speed or cost savings?

It is optimized for both low latency and efficient, cost-conscious processing.

Start building with Gemini 2.5 Flash Lite Preview

Gemini 2.5 Flash Lite Preview API

google/gemini-2.5-flash-lite

Build with your agent

Give your agent the model details, code and documentation.

1Get your API key

Create API key
export AIMLAPI_KEY="8f2b4c7d9a1e6b3f…"

2Make your first request

curl 'https://api.aimlapi.com/v1/chat/completions' \
  -H "Authorization: Bearer $AIMLAPI_KEY" \
  -H 'Content-Type: application/json' \
  -d '{
  "model": "google/gemini-2.5-flash-lite",
  "messages": [
    {
      "role": "user",
      "content": "Write a haiku about the ocean."
    }
  ]
}'