google

Google: Gemini 2.5 Pro Preview

models/Gemini 2.5 Pro Preview

Gemini 2.5 Pro is Google's state of the art AI model designed for advanced reasoning, coding, mathematics, and scientific tasks. It employs 'thinking' capabilities, enabling it to reason through responses with enhanced accuracy and nuanced context handling. Gemini 2.5 Pro achieves top tier performance on multiple benchmarks, including first place positioning on the LMArena leaderboard, reflecting superior human preference alignment and complex problem solving abilities.
Currency$USD
Input$1.25
Output$10.00
Context window1M

Generate API Key Generate your API Key to securely access IndoxHub's AI models. Integrate with OpenAI-compatible tools, run queries, and build powerful AI applications — all with a single secure key.
Endpoint
POSThttps://api.indoxhub.com/api/v1/chat/completions
Configgoogle/gemini-2.5-pro-preview
from indoxhub import Client
 
# Initialize the client
with Client(api_key="[LOGIN TO GET API KEY]") as client:
    # Generate a chat completion
    response = client.chat(
        messages=[{"role":"system","content":"You are a helpful assistant."},{"role":"user","content":"What is machine learning and why is it important?"}],
        model="google/gemini-2.5-pro-preview",
        temperature:"0.7"
    )
 
    # Print the response
    print(response["data"])