Gemini 2.5 Pro
google/gemini-2.5-pro-previewRun Gemini 2.5 Pro in a hosted Python Task with file inputs.
Google's state-of-the-art thinking model via OpenRouter. Capable of reasoning over complex problems in code, math, and STEM with long context support. Scheduled for retirement June 17, 2026.
This model is deprecated and not recommended for new projects. It retires on June 17, 2026.
What Gemini 2.5 Pro supports in qbash
- Image inputReads WEBP, PNG and JPEG images.
- Document inputReads PDF, TEXT, DOC, XLS, RTF and 7 more files.
- Prompt cachingRepeated input is billed at the cached rate.
What is qbash?
qbash is where you build Tasks: Python programs that run a business process on managed infrastructure. Your code runs the steps and calls a model like Gemini 2.5 Pro only at the ones that need judgment, with integrations, memory and files available in the same script.
A developer writes the Task once, and anyone on the team runs it from a form, on a schedule, from a webhook or from chat. Each Task is versioned and every run is logged.
Specifications
- Context window
- 1.05Mtokens
- Max output
- 65,535tokens
- Temperature
- 0 to 2default 1
Use Gemini 2.5 Pro in a Python Task
qbash.ai.raw calls Gemini 2.5 Pro from a Task and returns its reply as a string.
notes = qbash.inputs.get("notes")
summary = qbash.ai.raw(
f"Summarize these meeting notes in five bullets:\n\n{notes}",
model="google/gemini-2.5-pro-preview",
system="You are a concise analyst.",
)
qbash.output({"summary": summary})
Gemini 2.5 Pro pricing
| Input | $1.25 per 1M tokens |
|---|---|
| Output | $10.00 per 1M tokens |
| Cached input | $0.125 per 1M tokens |
| Input, above 200K input tokens | $2.50 per 1M tokens |
| Output, above 200K input tokens | $15.00 per 1M tokens |
Standard rates in USD.
Supported file formats
Images
- WEBP up to 5.1 MB
- PNG up to 5.1 MB
- JPEG up to 5.1 MB
Documents
- TEXT
- DOC
- XLS
- RTF
- DOCX
- XLSX
- PPTX
- PPT
- ODT
- ODP
- ODS