Skip to content
OpenKey

Gemini 3.1 Flash Lite Preview

GoogleReleased Mar 3, 2026

Gemini 3.1 Flash Lite Preview is Google's high-efficiency model optimized for high-volume use cases. It outperforms Gemini 2.5 Flash Lite on overall quality and approaches Gemini 2.5 Flash performance across...

Try in playground
Context window
1.0M tokens
Max output
66K tokens
Input
text, image, video, file, audio
Output
text
Tokenizer
Gemini
Released
Mar 3, 2026
Reasoning
optional

Pricing

Per 1M tokens. The provider price and our flat 3% fee are separate columns — what you pay is their sum.

Per 1M tokensProvider+ 3% feeYou pay
Input$0.250$0.0075$0.258
Output$1.50$0.045$1.54
Cache read$0.025$0.0008$0.026
Cache write$0.083$0.0025$0.086

Benchmarks

Artificial Analysis

Intelligence index
25
Coding index
34.7
Agentic index
6.2

Design Arena

CategoryEloWin rateRank
3Dmodels112538.8%#72
ASCII artmodels121450.7%#16
Codemodels112136.4%#76
Data vizmodels108933.3%#78
Game devmodels109734%#79
SVGmodels111042.5%#50
UI componentsmodels112637.7%#69
Websitesmodels112436.5%#78

Head-to-head preference voting. How we filter and rank

Supported parameters

  • include_reasoning
  • max_tokens
  • reasoning
  • response_format
  • seed
  • stop
  • structured_outputs
  • temperature
  • tool_choice
  • tools
  • top_p

Call it

OpenAI-compatible: point your SDK at api.openkey.ai/v1 and use model google/gemini-3.1-flash-lite-preview.

Code sample language
curl https://api.openkey.ai/v1/chat/completions \
  -H "Authorization: Bearer $OPENKEY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "google/gemini-3.1-flash-lite-preview",
    "messages": [{"role": "user", "content": "Hello"}]
  }'
import os
from openai import OpenAI

client = OpenAI(
    base_url="https://api.openkey.ai/v1",
    api_key=os.environ["OPENKEY_API_KEY"],
)

completion = client.chat.completions.create(
    model="google/gemini-3.1-flash-lite-preview",
    messages=[{"role": "user", "content": "Hello"}],
)
print(completion.choices[0].message.content)
import OpenAI from "openai";

const client = new OpenAI({
  baseURL: "https://api.openkey.ai/v1",
  apiKey: process.env.OPENKEY_API_KEY,
});

const completion = await client.chat.completions.create({
  model: "google/gemini-3.1-flash-lite-preview",
  messages: [{ role: "user", content: "Hello" }],
});
console.log(completion.choices[0].message.content);

Questions

How much does Gemini 3.1 Flash Lite Preview cost via API?
Through OpenKey, Gemini 3.1 Flash Lite Preview costs $0.258 per 1M input tokens and $1.54 per 1M output tokens. That is the provider price ($0.250 / $1.50) plus a flat 3% fee — nothing else.
What is Gemini 3.1 Flash Lite Preview's context window?
Gemini 3.1 Flash Lite Preview accepts up to 1.0M tokens of context and returns up to 66K tokens per request.
Is Gemini 3.1 Flash Lite Preview OpenAI-compatible?
Yes. Send requests to OpenKey's /v1/chat/completions endpoint with model "google/gemini-3.1-flash-lite-preview" using any OpenAI SDK — only the base URL and API key change.
What inputs does Gemini 3.1 Flash Lite Preview support?
Gemini 3.1 Flash Lite Preview accepts text, image, video, file, audio input and produces text output.

More from Google

All Google models →