Google: Gemini 2.5 Pro Preview
google/gemini-2.5-pro-preview
Created May 7, 20251,048,576 context
Starting at $1.25/M input tokensStarting at $10/M output tokens$5.16/K input imgs
Providers for Gemini 2.5 Pro Preview
OpenRouter routes requests to the best providers that are able to handle your prompt size and parameters, with fallbacks to maximize uptime.
Context 1.05M Max Output 66K Input $1.25 to $2.50 Output $10 to $15 | |
Context 1.05M Max Output 66K Input $1.25 to $2.50 Output $10 to $15 |
1.
Roo Code
A whole dev team of AI agents in your editor
28.1Btokens
2.
Cline
Autonomous coding agent right in your IDE
22.2Btokens
3.
SillyTavern
LLM frontend for power users
2.06Btokens
4.
Aider
AI pair programming in your terminal
1.31Btokens
5.
liteLLM
Open-source library to simplify LLM calls
1.14Btokens
6.
OpenRouter: Chatroom
Chat with multiple LLMs at once
928Mtokens
7.
MathGPT
Instant homework help from your personal AI math solver
562Mtokens
8.
Open WebUI
Extensible, self-hosted AI interface
503Mtokens
9.
Kilo Code
new
460Mtokens
10.
t.me
new
456Mtokens
11.
Infinite Worlds
Build your own adventures, share them with friends
370Mtokens
12.
RA.Aid
new
334Mtokens
13.
ChatWise
Chatbot with artifacts and search
225Mtokens
14.
BotHub
Multi-model ChatGPT
194Mtokens
15.
Cherry Studio
new
181Mtokens
16.
Chatbox AI
On-device AI copilot
178Mtokens
17.
Kortex
new
167Mtokens
18.
janitorai.com
new
164Mtokens
19.
novelcrafter
Your personal novel writing toolbox. Plan, write and tinker with your story.
159Mtokens
20.
Plandex
new
127Mtokens
When an error occurs in an upstream provider, we can recover by routing to another healthy provider, if your request filters allow it.
Learn more about our load balancing and customization options.
Sample code and API for Gemini 2.5 Pro Preview
OpenRouter normalizes requests and responses across providers for you.
OpenRouter provides an OpenAI-compatible completion API to 300+ models & providers that you can call directly, or using the OpenAI SDK. Additionally, some third-party SDKs are available.
In the examples below, the OpenRouter-specific headers are optional. Setting them allows your app to appear on the OpenRouter leaderboards.
from openai import OpenAI
client = OpenAI(
base_url="https://openrouter.ai/api/v1",
api_key="<OPENROUTER_API_KEY>",
)
completion = client.chat.completions.create(
extra_headers={
"HTTP-Referer": "<YOUR_SITE_URL>", # Optional. Site URL for rankings on openrouter.ai.
"X-Title": "<YOUR_SITE_NAME>", # Optional. Site title for rankings on openrouter.ai.
},
extra_body={},
model="google/gemini-2.5-pro-preview",
messages=[
{
"role": "user",
"content": [
{
"type": "text",
"text": "What is in this image?"
},
{
"type": "image_url",
"image_url": {
"url": "https://upload.wikimedia.org/wikipedia/commons/thumb/d/dd/Gfp-wisconsin-madison-the-nature-boardwalk.jpg/2560px-Gfp-wisconsin-madison-the-nature-boardwalk.jpg"
}
}
]
}
]
)
print(completion.choices[0].message.content)
Using third-party SDKs
For information about using third-party SDKs and frameworks with OpenRouter, please see our frameworks documentation.
See the Request docs for all possible fields, and Parameters for explanations of specific sampling parameters.