gemini-2.5-pro API

At provider list price streamingvisionreasoningfunction-callingweb-search

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 tokensper 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
Google
Context window
1048576 tokens
Max output
65536 tokens
Capabilities
streaming, vision, reasoning, function-calling, web-search
Endpoints
gemini, openai
Gemini 2.5 Pro is the most capable model in Google's 2.5 generation: a thinking model that reasons through a problem before it answers. That design shows up most clearly on hard coding tasks, multi-step math, and analysis that spans very long inputs — its 1,048,576-token input limit comfortably holds an entire codebase, a set of contracts, or several research papers in one prompt, and it can return up to 65,536 output tokens in a single response. On cost, it sits in the middle of the market: far below top-priced frontier flagships, but above the fast Flash-class models. The base rate is $1.25 per 1M input tokens and $10.00 per 1M output tokens. Pricing is segmented by prompt size — once a single prompt exceeds 200K tokens, that request is billed at the long-context tier of $2.50 input / $15.00 output per 1M. If you routinely feed it near-window-sized inputs, it is worth chunking work below the 200K boundary where possible. On CaMeL Hub you can reach gemini-2.5-pro two ways: through the OpenAI-compatible /v1/chat/completions endpoint (keep your existing OpenAI SDK, change only base_url and the model name) or through a Gemini-native endpoint if you prefer Google's request format. Streaming, image input, function calling, and web-search grounding are all supported. One behavior to plan for: because the model spends internal "thinking" tokens before emitting text, time-to-first-token is noticeably longer than on non-reasoning models, and those thinking tokens are counted as output tokens in usage.

What it is good for

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.

More from Google