google

Google: Gemini 2.5 Flash Preview 4 17 Thinking

models/Gemini 2.5 Flash Preview 4 17 Thinking

Gemini 2.5 Flash is Google's state of the art workhorse model, specifically designed for advanced reasoning, coding, mathematics, and scientific tasks. It includes built in "thinking" capabilities, enabling it to provide responses with greater accuracy and nuanced context handling. This thinking variant allows the model to generate thinking tokens, which incurs higher output pricing but enables more complex reasoning capabilities.
Currency$USD
Input$0.15
Output$3.50
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-flash-preview-04-17-thinking
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-flash-preview-04-17-thinking",
        temperature:"0.7"
    )
 
    # Print the response
    print(response["data"])