Google: Gemini 3.1 Flash-Lite

google/gemini-3.1-flash-lite

Google Gemini 3.1 Flash-Lite API pricing

Gemini 3.1 Flash-Lite costs $0.100 per million input tokens and $0.600 per million output tokens on Oxyy. These are the pay-as-you-go prices after the current 60% discount (Launch Promo; standard price $0.250 input and $1.50 output), and cached input tokens are billed at $0.010 per million. It accepts text, images, video, audio and files and returns text, with a 1.05M-token context window and up to 66K output tokens per response. At a typical 3:1 input-to-output token mix, a cheaper Google option is Gemma 4 31B Instruct at $0.108 / $0.304 per 1M tokens; for every model and rate, see Gemini API pricing.

Cost-efficient multimodal model for high-volume agentic tasks, translation, and simple data extraction where budget and latency are the primary constraints.
ModalitiesTextImageVideoAudioFileText
Price$0.100 / $0.600 per 1M tokens in / outAll Gemini API pricing
Context1.05M

Providers

Where this model runs, and what each route costs. Requests are sent to a healthy provider automatically; if one errors, the gateway retries against another serving the same model.

ProviderInput /MOutput /MCache read /M
Google$0.100$0.600$0.010

Capabilities (21)

StreamingTool callingParallel tool callsStructured outputReasoningThinkingSystem promptVisionVideo InputAudio InputPDF inputPrompt cachingCode executionFile SearchSearch GroundingMaps GroundingUrl ContextBatchFlex InferencePriority InferenceStop sequences

Supported parameters (15)

temperaturetop_ptop_kmax_output_tokensstop_sequencesstreamtoolstool_configsystem_instructionresponse_mime_typeresponse_schemathinking_levelmedia_resolutionsafety_settingsresponse_format

A parameter not listed here may be removed before the request reaches the model. When it is, the request still succeeds and the response names it, with the reason, in provider_specific_fields.dropped_params.

Pricing

What this model costs on Oxyy, pay as you go. "Charged" is the rate a request is billed at; the standard price is shown beside it for reference.

Input price
$0.100
per 1M input tokens · standard price $0.250
Output price
$0.600
per 1M output tokens · standard price $1.50
RateStandard priceChargedUnit
Input$0.250$0.100per 1M input tokens
Output$1.50$0.600per 1M output tokens
Cached input$0.025$0.010per 1M cached input tokens
Cache write$0.250$0.100per 1M cache-write tokens

Discount. Charged rates include the current "Launch Promo" discount of 60% on every rate.

UTC
Price history starts building from the first daily snapshot — there is not enough of it yet to draw a trend.

Specifications

Model ID
gemini-3.1-flash-lite
Developer
Google
Type
Text
Input
Text, images, video, audio and files
Output
Text
Context window
1,048,576 tokens
Max output
65,536 tokens
Image input
Up to 20 MB each · PNG, JPEG, WebP, HEIC, HEIF
File input
Up to 100 MB each · PDF
Audio input
Up to 50 MB each · WAV, MP3, AIFF, AAC, OGG, FLAC
Video input
Up to 100 MB each · MP4, MPEG, MOV, AVI, WEBM
Endpoint
/v1/chat/completions

Quickstart

Call gemini-3.1-flash-lite with a POST to /v1/chat/completions on https://api.oxyy.ai, using your Oxyy API key from the OXYY_API_KEY environment variable. The same key works for every model in the catalog.

import os
from openai import OpenAI

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

response = client.chat.completions.create(
    model="gemini-3.1-flash-lite",
    messages=[
        {"role": "user", "content": "Explain unified AI APIs in one sentence."},
    ],
)
print(response.choices[0].message.content)

Frequently asked questions

What is Gemini 3.1 Flash-Lite?
Cost-efficient multimodal model for high-volume agentic tasks, translation, and simple data extraction where budget and latency are the primary constraints.
How much does Gemini 3.1 Flash-Lite cost?
Gemini 3.1 Flash-Lite costs $0.100 per million input tokens and $0.600 per million output tokens on Oxyy. These are the pay-as-you-go prices after the current 60% discount (Launch Promo; standard price $0.250 input and $1.50 output), and cached input tokens are billed at $0.010 per million. You pay per request, with no subscription.
What is the context length of Gemini 3.1 Flash-Lite?
Gemini 3.1 Flash-Lite has a context window of 1,048,576 tokens, and can return up to 65,536 tokens in one response.
Does Gemini 3.1 Flash-Lite support tool calling and structured outputs?
Yes — Gemini 3.1 Flash-Lite supports both tool calling and structured outputs.
What inputs and outputs does Gemini 3.1 Flash-Lite support?
Gemini 3.1 Flash-Lite accepts text, images, video, audio and files as input and returns text.
Which API endpoint does Gemini 3.1 Flash-Lite use?
Send a POST request to https://api.oxyy.ai/v1/chat/completions with "model": "gemini-3.1-flash-lite", authenticated with your Oxyy API key. It is also served on /v1beta/models/gemini-3.1-flash-lite:generateContent (Google Gemini SDK) and /v1/responses (Responses API).
What other models does Google have?
Google also offers Gemini 2.5 Flash, Gemini 2.5 Flash-Lite, Gemini 2.5 Pro and Gemini 3.1 Pro through Oxyy.

Alternatives to Gemini 3.1 Flash-Lite

Models of the same kind from other vendors, closest in price first. Prices are pay-as-you-go on Oxyy, through the same API key.

Explore more models

More models from Google