Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.gpuhub.com/llms.txt

Use this file to discover all available pages before exploring further.

gemini-3.1-pro-preview is available through the Gemini-compatible AI Gateway endpoint. It is suitable for advanced reasoning, analysis, and multimodal-ready application workflows when supported by the selected model configuration.
Create or copy your API key from the console before calling the API. Use the model unit price displayed in the console as the source of truth.

Endpoint

CompatibilityBase URL
Gemini-compatiblehttps://api.gpuhub.com/api/v1/gemini
Some tools may require the versioned base URL:
https://api.gpuhub.com/api/v1/gemini/v1beta

Python

# Install the SDK first if needed:
# pip install google-genai

from google import genai

client = genai.Client(
    api_key="YOUR_API_KEY",
    http_options={"base_url": "https://api.gpuhub.com/api/v1/gemini"},
)

response = client.models.generate_content(
    model="gemini-3.1-pro-preview",
    contents="Hello! Please summarize the key tradeoffs of long-context models.",
)

print(response.text)

Use with Cherry Studio

To use this model in Cherry Studio, configure the matching provider type and add the model name shown on this page. See Cherry Studio for setup details.