Skip to content
OpenKey

Gemini 3.1 Flash Lite

GoogleReleased May 7, 2026

Gemini 3.1 Flash Lite is Google’s GA high-efficiency multimodal model optimized for low-latency, high-volume workloads. It supports text, image, video, audio, and PDF inputs, and is designed for lightweight agentic...

Try in playground
Context window
1.0M tokens
Max output
66K tokens
Input
text, image, video, file, audio
Output
text
Tokenizer
Gemini
Released
May 7, 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

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.

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",
    "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",
    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",
  messages: [{ role: "user", content: "Hello" }],
});
console.log(completion.choices[0].message.content);

Questions

How much does Gemini 3.1 Flash Lite cost via API?
Through OpenKey, Gemini 3.1 Flash Lite 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's context window?
Gemini 3.1 Flash Lite accepts up to 1.0M tokens of context and returns up to 66K tokens per request.
Is Gemini 3.1 Flash Lite OpenAI-compatible?
Yes. Send requests to OpenKey's /v1/chat/completions endpoint with model "google/gemini-3.1-flash-lite" using any OpenAI SDK — only the base URL and API key change.
What inputs does Gemini 3.1 Flash Lite support?
Gemini 3.1 Flash Lite accepts text, image, video, file, audio input and produces text output.

More from Google

All Google models →