Google: Gemini 2.5 Flash

google/gemini-2.5-flash

Google Gemini 2.5 Flash API pricing

Gemini 2.5 Flash costs $0.120 per million input tokens and $1.00 per million output tokens on Oxyy. These are the pay-as-you-go prices after the current 60% discount (Launch Promo; standard price $0.300 input and $2.50 output), and cached input tokens are billed at $0.012 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. A cheaper Google option is Gemini 3.1 Flash-Lite at $0.100 / $0.600 per 1M tokens; for every model and rate, see Gemini API pricing.

Google's first hybrid reasoning model with configurable thinking budgets; best price-performance for low-latency, high-volume tasks that require reasoning.
ModalitiesTextImageVideoAudioFileText
Price$0.120 / $1.00 per 1M tokens in / outAll Gemini API pricing
Context1.05M
ReleasedJun 17, 2025

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 /MLatencyThroughput
Google$0.120$1.00$0.0122.29s594 tps

Capabilities (23)

StreamingTool callingParallel tool callsStructured outputReasoningThinkingThinking BudgetThinking Can Be DisabledSystem promptVisionVideo InputAudio InputPDF inputImage SegmentationPrompt cachingCode executionSearch GroundingMaps GroundingUrl ContextBatchFlex InferencePriority InferenceStop sequences

Supported parameters (13)

temperaturetop_ptop_kmax_output_tokensstop_sequencesstreamtoolstool_configresponse_mime_typeresponse_schemathinking_budgetsafety_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.120
per 1M input tokens · standard price $0.300
Output price
$1.00
per 1M output tokens · standard price $2.50
RateStandard priceChargedUnit
Input$0.300$0.120per 1M input tokens
Output$2.50$1.00per 1M output tokens
Cached input$0.030$0.012per 1M cached input tokens
Cache write$0.300$0.120per 1M cache-write tokens

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

UTC

Specifications

Model ID
gemini-2.5-flash
Developer
Google
Type
Text
Input
Text, images, video, audio and files
Output
Text
Context window
1,048,576 tokens
Max output
65,536 tokens
Released
Jun 17, 2025
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-2.5-flash 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-2.5-flash",
    messages=[
        {"role": "user", "content": "Explain unified AI APIs in one sentence."},
    ],
)
print(response.choices[0].message.content)

Performance

Throughput is how fast the model writes (tokens per second — higher is better). Latency is total round-trip time (lower is better). TTFT is time-to-first-token — how long before you see anything appear (lower is better). Throughput and TTFT are measured on streaming requests, which are the only ones with a first-token moment to time.

Throughput
594tok/s
P50, streaming requests
Latency
2.29s
P50, end to end
UTC

Throughput

P9930420 tok/s
P9512097 tok/s
P50510 tok/s

Latency

P502325ms
P753802ms
P959476ms
P9923.7s

Time to first token

P501918ms
P9510.9s

Cache hit rate

28.10%
Share of input tokens served from the prompt cache over the window.

Activity

Token volume and request traffic to this model over time. Daily totals, UTC.

Prompt887.4M
Reasoning7.3M
Completion (excl. reasoning)56.2M

Prompt tokens measure input size. Reasoning tokens show internal thinking before a response. They are part of the output, so the completion bars show the rest of it and each day’s bar is its total.

Frequently asked questions

What is Gemini 2.5 Flash?
Google's first hybrid reasoning model with configurable thinking budgets; best price-performance for low-latency, high-volume tasks that require reasoning.
How much does Gemini 2.5 Flash cost?
Gemini 2.5 Flash costs $0.120 per million input tokens and $1.00 per million output tokens on Oxyy. These are the pay-as-you-go prices after the current 60% discount (Launch Promo; standard price $0.300 input and $2.50 output), and cached input tokens are billed at $0.012 per million. You pay per request, with no subscription.
What is the context length of Gemini 2.5 Flash?
Gemini 2.5 Flash has a context window of 1,048,576 tokens, and can return up to 65,536 tokens in one response.
Does Gemini 2.5 Flash support tool calling and structured outputs?
Yes — Gemini 2.5 Flash supports both tool calling and structured outputs.
What inputs and outputs does Gemini 2.5 Flash support?
Gemini 2.5 Flash accepts text, images, video, audio and files as input and returns text.
Which API endpoint does Gemini 2.5 Flash use?
Send a POST request to https://api.oxyy.ai/v1/chat/completions with "model": "gemini-2.5-flash", authenticated with your Oxyy API key. It is also served on /v1beta/models/gemini-2.5-flash:generateContent (Google Gemini SDK) and /v1/responses (Responses API).
When was Gemini 2.5 Flash released?
Gemini 2.5 Flash was released on Jun 17, 2025.
What other models does Google have?
Google also offers Gemini 2.5 Flash-Lite, Gemini 2.5 Pro, Gemini 3.1 Flash-Lite and Gemini 3.1 Pro through Oxyy.

Alternatives to Gemini 2.5 Flash

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