---
title: Gemini 2.5 Pro API | Text Generation | ModelsLab
description: Advanced multimodal LLM with 1M token context, excels in reasoning, code, math, and STEM—handles text, images, audio, video, and complex problem-solving.
url: https://modelslab.com/models/google/gemini-2.5-pro/api.md
canonical: https://modelslab.com/models/google/gemini-2.5-pro/api.md
type: product
component: Playground/LLM/Index
generated_at: 2026-05-31T02:16:30.906681Z
---

Gemini 2.5 Pro
---

 [LLMs.txt](https://modelslab.com/models/google/gemini-2.5-pro/llms.txt) [.md](https://modelslab.com/models/google/gemini-2.5-pro.md)

Gemini 2.5 Pro
---

Choose a prompt below to get started or type your own message

 Explain quantum computing in simple terms

 Write a Python function to sort a list

 Create a marketing email for a SaaS product

 Compare REST vs GraphQL APIs

Send

### Gemini 2.5 Pro

google gemini-2.5-pro

Copy model ID

PricingInput $1.25 / 1M tokens

Output $10.00 / 1M tokens

API EndpointsOpenAI Compatible

`https://modelslab.com/api/v7/llm/chat/completions`Endpoint

Anthropic Compatible

`https://modelslab.com/api/v7/llm/v1/messages`Messages

`https://modelslab.com/api/v7/llm/v1/messages/count_tokens`Count Tokens

`https://modelslab.com/api/v7/llm/v1/models`Models

Use with Claude Code

cURL Example

ParametersSystem MessageYou are a helpful AI assistant specialized in providing accurate and detailed responses.

Temperature0.7

Max Tokens1000

Top P0.9

Frequency Penalty0

Presence Penalty0

Model Info

Support

Related Models
---

Discover similar models you might be interested in

 [View all LLM Models](https://modelslab.com/models?feature=llmaster)

[#### meta/Meta Llama 3.2 11B Vision Instruct Turbo

meta-llama-Llama-3.2-11B-Vision-Instruct-Turbo

From $0.05/M tokens](https://modelslab.com/models/meta/meta-llama-Llama-3.2-11B-Vision-Instruct-Turbo)

[#### open\_router/Z.ai: GLM 4.5V

z-ai-glm-4.5v

From $1.20/M tokens](https://modelslab.com/models/open_router/z-ai-glm-4.5v)

[#### open\_router/OpenAI: GPT-4o Search Preview

openai-gpt-4o-search-preview

From $6.25/M tokens](https://modelslab.com/models/open_router/openai-gpt-4o-search-preview)

[#### nous\_research/Nous Hermes 2 Mixtral 8X7B Dpo

NousResearch-Nous-Hermes-2-Mixtral-8x7B-DPO

From $0.60/M tokens](https://modelslab.com/models/nous_research/NousResearch-Nous-Hermes-2-Mixtral-8x7B-DPO)

[#### open\_router/Google: Nano Banana 2 (Gemini 3.1 Flash Image Preview)

google-gemini-3.1-flash-image-preview

From $1.75/M tokens](https://modelslab.com/models/open_router/google-gemini-3.1-flash-image-preview)

[#### open\_router/Meta: Llama 4 Maverick

meta-llama-llama-4-maverick

From $0.38/M tokens](https://modelslab.com/models/open_router/meta-llama-llama-4-maverick)

[#### open\_router/IBM: Granite 4.0 Micro

ibm-granite-granite-4.0-h-micro

From $0.06/M tokens](https://modelslab.com/models/open_router/ibm-granite-granite-4.0-h-micro)

[#### open\_router/Google: Gemma 3n 4B

google-gemma-3n-e4b-it

From $0.09/M tokens](https://modelslab.com/models/open_router/google-gemma-3n-e4b-it)

[#### open\_router/Google: Gemini 2.0 Flash Lite

google-gemini-2.0-flash-lite-001

From $0.19/M tokens](https://modelslab.com/models/open_router/google-gemini-2.0-flash-lite-001)

[#### open\_router/DeepSeek: R1 Distill Llama 70B

deepseek-deepseek-r1-distill-llama-70b

From $0.75/M tokens](https://modelslab.com/models/open_router/deepseek-deepseek-r1-distill-llama-70b)

[#### open\_router/Mistral Large 2407

mistralai-mistral-large-2407

From $4.00/M tokens](https://modelslab.com/models/open_router/mistralai-mistral-large-2407)

[#### open\_router/Sao10k: Llama 3 Euryale 70B v2.1

sao10k-l3-euryale-70b

From $1.48/M tokens](https://modelslab.com/models/open_router/sao10k-l3-euryale-70b)

[#### open\_router/Cohere: Command A

cohere-command-a

From $6.25/M tokens](https://modelslab.com/models/open_router/cohere-command-a)

[#### open\_router/Mistral: Mistral Nemo

mistralai-mistral-nemo

From $0.03/M tokens](https://modelslab.com/models/open_router/mistralai-mistral-nemo)

[#### open\_router/MoonshotAI: Kimi K2.6 (free)

moonshotai-kimi-k2.6-free

Free](https://modelslab.com/models/open_router/moonshotai-kimi-k2.6-free)

[#### open\_router/OpenAI: GPT-5 Nano

openai-gpt-5-nano

From $0.23/M tokens](https://modelslab.com/models/open_router/openai-gpt-5-nano)

[#### open\_router/Cohere: Command R (08-2024)

cohere-command-r-08-2024

From $0.38/M tokens](https://modelslab.com/models/open_router/cohere-command-r-08-2024)

[#### open\_router/Meta: Llama 3 70B Instruct

meta-llama-llama-3-70b-instruct

From $0.63/M tokens](https://modelslab.com/models/open_router/meta-llama-llama-3-70b-instruct)

About Gemini 2.5 Pro
---

Gemini 2.5 Pro is Google’s most powerful AI model, built for advanced reasoning and multimodal tasks across text, code, and media.

### Technical Specifications

Model IDgemini-2.5-pro

CategoryLLM Models

TaskText Generation

Price$5.625 per million tokens

AddedAugust 5, 2025

### Key Features

- Chat completion and multi-turn conversation API
- Streaming response with token-by-token output
- Function calling and tool use support
- System prompts and role-based messaging
- JSON mode and structured output

### Quick Start

Integrate Gemini 2.5 Pro into your application with a single API call. Get your API key from the [pricing page](https://modelslab.com/pricing) to get started.

PythonJavaScriptcURLPHP

```
<code>import requests
import json

url = "https://modelslab.com/api/v7/llm/chat/completions"

headers = {
    "Content-Type": "application/json"
}

data = {
        "model_id": "gemini-2.5-pro",
        "messages": [
            {
                "role": "user",
                "content": "Hello!"
            }
        ],
        "max_tokens": 1000,
        "key": "YOUR_API_KEY"
    }

try:
    response = requests.post(url, headers=headers, json=data)
    response.raise_for_status()  # Raises an HTTPError for bad responses (4XX or 5XX)
    result = response.json()
    print("API Response:")
    print(json.dumps(result, indent=2))
except requests.exceptions.HTTPError as http_err:
    print(f"HTTP error occurred: {http_err} - {response.text}")
except Exception as err:
    print(f"Other error occurred: {err}")</code>
```

### Pricing

Gemini 2.5 Pro API costs $5.625000 per million tokens. Pay only for what you use with no minimum commitments. [View pricing plans](https://modelslab.com/pricing)

### Use Cases

- AI chatbots and virtual assistants
- Code generation and developer tools
- Content writing and copywriting automation
- Data analysis, summarization, and extraction

[Learn more about Gemini 2.5 Pro](https://modelslab.com/gemini-25-pro) [Browse LLM Models](https://modelslab.com/models?feature=llmaster) [More from Google](https://modelslab.com/models/open_router) [View Pricing](https://modelslab.com/pricing)

Gemini 2.5 Pro FAQ
---

### What is Gemini 2.5 Pro?

Gemini 2.5 Pro is Google’s most powerful AI model, built for advanced reasoning and multimodal tasks across text, code, and media.

### How do I use the Gemini 2.5 Pro API?

You can integrate Gemini 2.5 Pro into your application with a single API call. Sign up on ModelsLab to get your API key, then use the model ID "gemini-2.5-pro" in your API requests. We provide SDKs for Python, JavaScript, and cURL examples in the API documentation.

### How much does Gemini 2.5 Pro cost?

Gemini 2.5 Pro costs $5.625000 per million tokens. ModelsLab uses pay-per-use pricing with no minimum commitments. A free tier is available to get started.

### What is the Gemini 2.5 Pro model ID?

The model ID for Gemini 2.5 Pro is "gemini-2.5-pro". Use this ID in your API requests to specify this model.

### Does Gemini 2.5 Pro have a free tier?

Yes, ModelsLab offers a free tier that lets you try Gemini 2.5 Pro and other AI models. Sign up to get free API credits and start building immediately.

---

*This markdown version is optimized for AI agents and LLMs.*

**Links:**
- [Website](https://modelslab.com)
- [API Documentation](https://docs.modelslab.com)
- [Blog](https://modelslab.com/blog)

---
*Generated by ModelsLab - 2026-05-31*