Gemini 2.5 Pro Preview 06-05 API

Gemini 2.5 Pro Preview 06-05 on AIMLAPI.

Modalities
Image, TextText
In / Out price
$1.32/$10.58per 1M
Context window
1.05M tokens
Released
Jun 5, 2025

Gemini 2.5 Pro Preview 06-05 overview

The pelican test: one prompt, every text model, unedited SVG output from Nov 3, 2026.

SVG of a pelican riding a bicycle, written by Gemini 2.5 Pro Preview 06-05 through AI/ML API

Gemini 2.5 Pro Preview 06-05 specs

Model ID
google/gemini-2.5-pro-preview
Developer
Google
Context window
1,048,576 tokens
Max output
65,536 tokens
Input
Image, Text
Output
Text
API
OpenAI-compatible, base URL https://api.aimlapi.com/v1

What 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.

Use cases

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.

Capabilities

  • Function calling
  • Reasoning
  • Streaming
  • Structured outputs
  • Web search

Gemini 2.5 Pro Preview 06-05 benchmarks by Artificial Analysis

See how Gemini 2.5 Pro Preview 06-05 compares in generation speed and latency. Data retrieved Nov 3, 2026.

Speed

Output tokens / second

Benchmark results

Compare 6 models available on AI/ML API across 5 independent benchmarks.

Humanity's Last Exam

Expert-written questions across academic subjects.

Gemini 2.5 Pro Preview 06-05 API pricing

Gemini 2.5 Pro Preview 06-05 pricing in US dollars
UsagePriceUnit
Input$1.321M tokens
Output$10.581M tokens
Cached input$0.13231M tokens

Prices from the AI/ML API price list, checked on Nov 4, 2026.

Gemini 2.5 Pro Preview 06-05 vs other models: token prices

AI/ML API input and output rates for 5 models, per million tokens.

AI/ML API model prices in USD per million tokens
ModelInputOutput
Gemini 2.5 Pro Preview 06-05$1.32$10.58
Gemini 3.5 Flash Lite$0.3$2.5
Gemini 3.8 Flash$0.75$3.75
Gemini 3.7 Flash$0.75$3.75
Gemini 4 Argon$2$10

How to use the Gemini 2.5 Pro Preview 06-05 API

View docs

Build with your agent

Give your agent the model details, code and documentation.

1Get your API key

Create API key
export AIMLAPI_KEY="8f2b4c7d9a1e6b3f…"

2Make your first request

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."
    }
  ]
}'

Related articles

All posts

Gemini 2.5 Pro Preview 06-05 FAQ

What is the context window of Gemini 2.5 Pro Preview 06-05?

Gemini 2.5 Pro Preview 06-05 has a 1,048,576 tokens context window and can return up to 65,536 tokens.

What inputs and outputs does Gemini 2.5 Pro Preview 06-05 support?

Gemini 2.5 Pro Preview 06-05 takes image, text as input and returns text.

What is the model ID for Gemini 2.5 Pro Preview 06-05?

Use google/gemini-2.5-pro-preview as the model id. Requests go to https://api.aimlapi.com/v1/chat/completions.

How much does Gemini 2.5 Pro Preview 06-05 cost?

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.

Does Gemini 2.5 Pro Preview 06-05 support streaming?

Yes, Gemini 2.5 Pro Preview 06-05 can stream responses as they are generated.

Can Gemini 2.5 Pro Preview 06-05 read images?

Yes, Gemini 2.5 Pro Preview 06-05 accepts image input alongside text.

Who created Gemini 2.5 Pro Preview 06-05?

Gemini 2.5 Pro Preview 06-05 was built by Google.

Does Gemini 2.5 Pro Preview 06-05 support function calling and tool use?

Yes, it supports function calling, parallel tool calls, and structured outputs, along with reasoning and web search.

Start building with Gemini 2.5 Pro Preview 06-05

Gemini 2.5 Pro Preview 06-05 API

google/gemini-2.5-pro-preview

Build with your agent

Give your agent the model details, code and documentation.

1Get your API key

Create API key
export AIMLAPI_KEY="8f2b4c7d9a1e6b3f…"

2Make your first request

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."
    }
  ]
}'