---
title: "gemini-2.5-pro pricing and API | Inference.net"
description: "gemini-2.5-pro pricing, context limits, capabilities, and an OpenAI-compatible quickstart on Inference.net."
url: "https://inference.net/models/gemini-2.5-pro/"
---

# Gemini 2.5 Pro

Google's multimodal model, served through one OpenAI-compatible endpoint with transparent per-token pricing and project-scoped API keys.

Google Multimodal Model

[Get started](https://inference.net/register/) [Documentation](https://inference.net/docs/api/quickstart)

MODEL API PRICING

PER 1M TOKENS

Input

$1.25

Cache read

$0.125

Output

$10.00

[See all pricing](https://inference.net/subscription/)

MODEL SPEC

Developed by

Google

Model family

Gemini 2.5 Pro

Size

—

Architecture

Transformer

Context window

1M tokens

Max output

66K tokens

License

Provider license

Overview

Gemini 2.5 Pro is a multimodal model from Google, available through the Inference.net serverless API. Use the same OpenAI-compatible request shape across the catalog and switch models by changing a single identifier.

The API supports streaming responses and project-scoped credentials. Usage, token volume, and spend appear in the dashboard automatically, so the model can move from evaluation to production without a second integration path.

QUICKSTART [Get API key](https://inference.net/dashboard/api-keys/)

```typescript
import OpenAI from 'openai'

const client = new OpenAI({
  baseURL: 'https://api.inference.net/v1',
  apiKey: process.env.INFERENCE_API_KEY,
})

const completion = await client.chat.completions.create({
  model: 'gemini-2.5-pro',
  messages: [{ role: 'user', content: 'Hello' }],
})
```

PROMPT CACHING

1. Keep the stable system content block byte-identical across calls.
2. Mark it with cache_control: { "type": "ephemeral" } to set a cache point.
3. Long prompts are required. As a practical target, use roughly 4,000 stable tokens for Gemini 3.1 Pro Preview or 9,000 for the other listed Gemini models; these are not guaranteed provider minimums.
4. Check usage.prompt_tokens_details.cached_tokens in the response to confirm cache reads.

```
{
  "messages": [{
    "role": "system",
    "content": [{
      "type": "text",
      "text": "Stable system content...",
      "cache_control": { "type": "ephemeral" }
    }]
  }]
}
```

AGENT INTEGRATIONS [View all](https://inference.net/docs/integrations/overview/)

[### Claude Code Native Anthropic /v1/messages. Six model slots for every Claude Code workload. `fast claude on`](https://inference.net/docs/integrations/claude-code/) [### Codex OpenAI-compatible Responses API with a reversible Codex configuration. `fast codex on`](https://inference.net/docs/integrations/codex/) [### Grok Chat completions with a catalog-backed section for each supported alias. `fast grok on`](https://inference.net/docs/integrations/grok/) [### OpenCode Chat completions with Inference.net models registered as an OpenCode provider. `fast opencode on`](https://inference.net/docs/integrations/opencode/) [### Pi Chat completions with model and provider settings written for Pi Agent. `fast pi on`](https://inference.net/docs/integrations/pi/) [### Hermes Hermes provider configuration is documented while its CLI adapter is in preview. `CLI adapter in preview`](https://inference.net/docs/integrations/hermes/) [### OpenClaw OpenClaw provider routing is documented while its CLI adapter is in preview. `CLI adapter in preview`](https://inference.net/docs/integrations/openclaw/) [### Fx Fx gateway configuration is documented while its CLI adapter is in preview. `CLI adapter in preview`](https://inference.net/docs/integrations/fx/) [### Cursor Cursor base URL routing is documented while its CLI adapter is in preview. `CLI adapter in preview`](https://inference.net/docs/integrations/cursor/)

Ready when you are

## Start building with Gemini 2.5 Pro today

Serverless, OpenAI-compatible, and billed per token. No commitments.

[Get started](https://inference.net/register/) [Read the docs](https://inference.net/docs/api/quickstart)
