Speed
Output tokens / second
Custom pricing for production workloads
Gemini 2.5 Pro Preview 06-05 on AIMLAPI.
google/gemini-2.5-pro-previewhttps://api.aimlapi.com/v1What is Gemini 2.5 Pro Preview 06-05 API?
Where to Use Gemini 2.5 Pro Preview 06-05
Coding and code review
Generate, debug, and review code across languages, reading whole files or repos in a single prompt.
Agentic and multi-step workflows
Reliable tool-calling and instruction-following suit agent loops that plan, call tools, and iterate.
Gemini 2.5 Pro Preview 06-05 is documented as suited for enhanced reasoning and advanced coding.
It is also described as well-suited for applications requiring multimodal work across text, code, audio, and video, which supports complex tasks that need context-aware outputs.
Another documented use is building interactive web apps and other coding tasks, including code transformation, code editing, and complex agentic workflows.
It is additionally described as useful for chatbot and virtual assistant-style applications, plus data analysis, summarization, and extraction.
See how Gemini 2.5 Pro Preview 06-05 compares in generation speed and latency. Data retrieved Nov 3, 2026.
Output tokens / second
Compare 6 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.
Agentic tasks completed in a command-line environment.
Reasoning across long documents of about 100k tokens.
Python coding tasks drawn from scientific research.
| Usage | Price | Unit |
|---|---|---|
| Input | $1.32 | 1M tokens |
| Output | $10.58 | 1M tokens |
| Cached input | $0.1323 | 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 |
|---|---|---|
| $1.32 | $10.58 | |
| $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-pro-preview",
"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-pro-preview",
"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-pro-preview",
"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 Pro Preview 06-05 has a 1,048,576 tokens context window and can return up to 65,536 tokens.
Gemini 2.5 Pro Preview 06-05 takes image, text as input and returns text.
Use google/gemini-2.5-pro-preview as the model id. Requests go to https://api.aimlapi.com/v1/chat/completions.
Gemini 2.5 Pro Preview 06-05 costs $1.32 input and $10.58 output per 1M tokens on AI/ML API, billed as you go with no subscription.
Yes, Gemini 2.5 Pro Preview 06-05 can stream responses as they are generated.
Yes, Gemini 2.5 Pro Preview 06-05 accepts image input alongside text.
Gemini 2.5 Pro Preview 06-05 was built by Google.
Yes, it supports function calling, parallel tool calls, and structured outputs, along with reasoning and web search.