Speed
Output tokens / second
Custom pricing for production workloads
Gemini 2.5 Flash is a powerful AI model developed by Google, designed to handle complex tasks with high accuracy and efficiency and has thinking capabilities.
Google DeepMind’s Gemini 2.5 Flash offers hybrid reasoning, supporting text, images, video, and audio.
google/gemini-2.5-flashhttps://api.aimlapi.com/v1Gemini 2.5 Flash, developed by Google DeepMind, is a fast, cost-effective multimodal AI model designed for reasoning and coding tasks. With a 1-million-token context window, it excels in web development, math, and scientific analysis. Available via Google AI Studio and Vertex AI (preview), it balances quality, cost, and speed for developers and enterprises.
Gemini 2.5 Flash is a hybrid reasoning model with a Transformer-based architecture, allowing developers to adjust "thinking" depth for optimized performance. It supports text, image, video, and audio inputs, with enhanced post-training for superior reasoning.
Gemini 2.5 Pro Experimental is a reasoning-focused model, methodically analyzing tasks for accurate, nuanced outputs. Its multimodal capabilities enable seamless integration of text, images, video, and audio, making it versatile for complex workflows.
See how Gemini 2.5 Flash compares in generation speed and latency. Data retrieved Nov 3, 2026.
Output tokens / second
Compare 14 models available on AI/ML API across 5 independent benchmarks.
Expert-written questions across academic subjects.
Graduate-level science questions written to resist web search.
Reasoning across long documents of about 100k tokens.
Following precise instructions about the shape of the answer.
Customer support agent tasks with tool calls.
| Usage | Price | Unit |
|---|---|---|
| Input | $0.3 | 1M tokens |
| Output | $2.5 | 1M tokens |
| Cached input | $0.3 | 1M tokens |
Prices from the AI/ML API price list, checked on Nov 4, 2026.
AI/ML API input and output rates for 5 models, per million tokens.
| Model | Input | Output |
|---|---|---|
| $0.3 | $2.5 | |
| $0.3 | $2.5 | |
| $0.75 | $3.75 | |
| $0.75 | $3.75 | |
| $2 | $10 |
Give your agent the model details, code and documentation.
export AIMLAPI_KEY="8f2b4c7d9a1e6b3f…"curl 'https://api.aimlapi.com/v1/chat/completions' \
-H "Authorization: Bearer $AIMLAPI_KEY" \
-H 'Content-Type: application/json' \
-d '{
"model": "google/gemini-2.5-flash",
"messages": [
{
"role": "user",
"content": "Write a haiku about the ocean."
}
]
}'import os
import requests
headers = {
"Authorization": f"Bearer {os.environ['AIMLAPI_KEY']}",
"Content-Type": "application/json",
}
payload = {
"model": "google/gemini-2.5-flash",
"messages": [
{
"role": "user",
"content": "Write a haiku about the ocean."
}
]
}
response = requests.post("https://api.aimlapi.com/v1/chat/completions", headers=headers, json=payload, timeout=120)
response.raise_for_status()
print(response.json())const response = await fetch("https://api.aimlapi.com/v1/chat/completions", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.AIMLAPI_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"model": "google/gemini-2.5-flash",
"messages": [
{
"role": "user",
"content": "Write a haiku about the ocean."
}
]
}),
});
if (!response.ok) throw new Error(`HTTP ${response.status}`);
console.log(await response.json());Gemini 2.5 Flash has a 1,000,000 tokens context window and can return up to 65,536 tokens.
Gemini 2.5 Flash takes image, text as input and returns text.
Use google/gemini-2.5-flash as the model id. Requests go to https://api.aimlapi.com/v1/chat/completions.
Gemini 2.5 Flash became available on September 9, 2025.
Gemini 2.5 Flash costs $0.3 input and $2.5 output per 1M tokens on AI/ML API, billed as you go with no subscription.
Yes, Gemini 2.5 Flash can stream responses as they are generated.
Yes, Gemini 2.5 Flash accepts image input alongside text.
Gemini 2.5 Flash was built by Google.
Yes, it supports function calling, including parallel tool calls.
Yes, it supports structured output generation.