Gemini 3.1 Flash Lite API

Gemini 3.1 Flash Lite is a cost-efficient multimodal model designed for high-volume tasks such as translation, lightweight reasoning, and simple agent workflows.

Modalities
Audio, Image, Text, VideoAudio, Text
In / Out price
$0.25/$1.5per 1M
Context window
1M tokens
Released
May 8, 2026

Gemini 3.1 Flash Lite 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 3.1 Flash Lite through AI/ML API

Gemini 3.1 Flash Lite specs

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

What is Gemini 3.1 Flash Lite API?

Gemini 3.1 Flash Lite is a cost-efficient multimodal model designed for high-volume tasks such as translation, lightweight reasoning, and simple agent workflows.

Where to Use Gemini 3.1 Flash Lite

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

Use cases

High-volume translation: the model is documented for fast, low-cost translation at scale, including processing chat messages, reviews, and support tickets.

Content moderation: it is documented as suited to high-volume content moderation workloads where cost efficiency and throughput matter.

Document processing and summarization: it is documented for parsing PDFs and returning concise summaries, including pipeline-style document triage and incoming file processing.

Model routing: it is documented for classifying query complexity and routing requests to the appropriate model in an agentic workflow.

Capabilities

  • Function calling
  • Reasoning
  • Streaming
  • Structured outputs

Gemini 3.1 Flash Lite benchmarks by Artificial Analysis

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

Speed

Output tokens / second

Benchmark results

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

Humanity's Last Exam

Expert-written questions across academic subjects.

Gemini 3.1 Flash Lite API pricing

Gemini 3.1 Flash Lite pricing in US dollars
UsagePriceUnit
Input$0.251M tokens
Output$1.51M tokens
Cached input$0.0251M tokens

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

Gemini 3.1 Flash Lite 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 3.1 Flash Lite$0.25$1.5
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 3.1 Flash Lite 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-3-1-flash-lite",
  "messages": [
    {
      "role": "user",
      "content": "Write a haiku about the ocean."
    }
  ]
}'

Related articles

All posts

Gemini 3.1 Flash Lite FAQ

What is the context window of Gemini 3.1 Flash Lite?

Gemini 3.1 Flash Lite has a 1,000,000 tokens context window and can return up to 65,536 tokens.

What inputs and outputs does Gemini 3.1 Flash Lite support?

Gemini 3.1 Flash Lite takes audio, image, text, video as input and returns audio, text.

What is the model ID for Gemini 3.1 Flash Lite?

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

How much does Gemini 3.1 Flash Lite cost?

Gemini 3.1 Flash Lite costs $0.25 input and $1.5 output per 1M tokens on AI/ML API, billed as you go with no subscription.

Does Gemini 3.1 Flash Lite support streaming?

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

Can Gemini 3.1 Flash Lite read images?

Yes, Gemini 3.1 Flash Lite accepts image input alongside text.

Who created Gemini 3.1 Flash Lite?

Gemini 3.1 Flash Lite was built by Google.

Is Gemini 3.1 Flash Lite a reasoning model?

Yes, it includes reasoning as one of its capabilities.

What tasks is Gemini 3.1 Flash Lite best suited for?

It is designed for cost-efficient, high-volume tasks such as translation, lightweight reasoning, and simple agent workflows.

Does Gemini 3.1 Flash Lite support function calling and tool use?

Yes, it supports function calling, tools, and parallel tool calls.

Start building with Gemini 3.1 Flash Lite

Gemini 3.1 Flash Lite API

google/gemini-3-1-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-3-1-flash-lite",
  "messages": [
    {
      "role": "user",
      "content": "Write a haiku about the ocean."
    }
  ]
}'