gemini-2.5-pro API
Gemini 2.5 Pro is Google's flagship reasoning model with a 1,048,576-token context window. Call it on CaMeL Hub through the OpenAI-compatible API — just point base_url to https://api.camel-hub.com/v1 — at $1.25 per 1M input tokens and $10.00 per 1M output tokens.
Pricing
| per 1M input tokens | per 1M output tokens | |
|---|---|---|
| CaMeL Hub (≤ 200000 tokens) | $1.25 | $10.00 |
| CaMeL Hub (long context) | $2.5 | $15.00 |
| Provider list price | $1.25 | $10.00 |
Prices are the public default-group rate in USD per 1M tokens; input and output are billed separately. · Provider list price · verified 2026-07-11
Specifications
- Provider
- Context window
- 1048576 tokens
- Max output
- 65536 tokens
- Capabilities
- streaming, vision, reasoning, function-calling, web-search
- Endpoints
- gemini, openai
What it is good for
- Whole-repository code review: load an entire mid-sized codebase into one prompt and ask for refactoring plans, bug hunts, or dependency audits
- Long-document analysis — contracts, regulatory filings, or a stack of research papers — answered with citations to the source text in a single request
- Vision workflows: turn screenshots, charts, scanned tables, and UI mockups into structured JSON via function calling
- Agent pipelines that need tool use plus web-search grounding for up-to-date answers
- Hard math and science problems where step-by-step reasoning quality matters more than latency
- Summarizing or translating book-length material without a chunk-and-merge pipeline
Quickstart
OpenAI-compatible: set base_url to https://api.camel-hub.com/v1 and use your CaMeL Hub API key. No SDK changes needed.
cURL
curl https://api.camel-hub.com/v1/chat/completions \
-H "Authorization: Bearer $CAMEL_HUB_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "gemini-2.5-pro",
"messages": [{"role": "user", "content": "Hello!"}]
}'
Python
from openai import OpenAI
client = OpenAI(
api_key="$CAMEL_HUB_KEY",
base_url="https://api.camel-hub.com/v1", # <-- the only change vs. the OpenAI default
)
resp = client.chat.completions.create(
model="gemini-2.5-pro",
messages=[{"role": "user", "content": "Hello!"}],
)
print(resp.choices[0].message.content)
Node.js
import OpenAI from "openai";
const client = new OpenAI({
apiKey: process.env.CAMEL_HUB_KEY,
baseURL: "https://api.camel-hub.com/v1", // <-- the only change vs. the OpenAI default
});
const resp = await client.chat.completions.create({
model: "gemini-2.5-pro",
messages: [{ role: "user", content: "Hello!" }],
});
console.log(resp.choices[0].message.content);
Get an API key Browse integration guides
Frequently asked questions
How is gemini-2.5-pro billed on CaMeL Hub?
Input and output tokens are billed separately: $1.25 per 1M input tokens and $10.00 per 1M output tokens for prompts up to 200K tokens. When a single prompt exceeds 200K tokens, the request is billed at the long-context tier: $2.50 per 1M input and $15.00 per 1M output. Usage is pay-as-you-go against your account balance.
What are the context window and maximum output?
The input token limit is 1,048,576 tokens and the output limit is 65,536 tokens per response, as documented by Google. Note that the model's internal reasoning ("thinking") tokens count toward output token usage.
Which features does gemini-2.5-pro support here?
Streaming responses, image (vision) input, extended reasoning, function calling, and web-search grounding. You can call it through the OpenAI-compatible endpoint or a Gemini-native endpoint on the same API key.
Why is the first token slower than other models?
Gemini 2.5 Pro is a reasoning model: it works through the problem internally before streaming visible text. Expect a longer time-to-first-token than Flash-class or non-reasoning models — the tradeoff is markedly better answers on complex tasks.
How do I get started?
Create an account at https://api.camel-hub.com/console, generate an API key, and set base_url to https://api.camel-hub.com/v1 in the OpenAI SDK with model "gemini-2.5-pro". Top up via Alipay, WeChat Pay, or international cards, or use a subscription plan — one key works across every model on the platform.