ToAPIs
    homeToAPIs
    ModelsModel PricingAPI Docs
    LoginStart for Free

    Quick Answer

    • Supports Chat Completions for low-friction SDK migration.
    • Supports streaming and tool-calling for agent workflows.
    • Stabilize system/messages parameters before production rollout.

    Key Parameters

    • model | string | required | gemini-2.5-pro-official | - | Exact model identifier from ToAPIs.
    • messages | object[] | required | - | - | Conversation messages in chronological order.
    • max_tokens | integer | required | - | >=1 | Maximum output tokens.
    • stream | boolean | optional | false | - | Enable SSE streaming output.
    • tools | object[] | optional | - | - | Tool/function definitions for tool-calling.

    Common Errors

    • 400 invalid_request_error: trigger=Missing fields or invalid payload types.; fix=Validate model/messages/max_tokens schema.; retry=Retry only after payload fix.
    • 401 authentication_error: trigger=Missing or invalid API key.; fix=Verify Authorization header and key scope.; retry=Retry after authentication fix.

    gemini-2.5-pro-official

    gemini-2.5-pro-official by Google (Gemini) is designed for chat, reasoning, and tool-calling workflows with ToAPIs-aligned integration contracts.

    Model Type:
    Pricing: Input 200 credits/1M, Output 1,600 credits/1M
    PlaygroundSimilarREADMEAPI

    Set chat parameters

    Advanced options

    Example params

    Request preview

    {
      "model": "gemini-2.5-pro-official",
      "messages": [
        {
          "role": "system",
          "content": "You are a precise, direct AI assistant that is strong at engineering decomposition."
        },
        {
          "role": "user",
          "content": "Use gemini-2.5-pro-official to break a complex product requirement into actionable engineering tasks."
        }
      ],
      "stream": true,
      "max_tokens": 4096,
      "temperature": 0.7
    }
    View API Docs
    Type a message to test the model.

    Transparent pricing

    gemini-2.5-pro-official pricing

    Text usage is billed by actual token consumption. Final billing follows the current account quote.

    Top up credits
    Input 200 credits/1M, Output 1,600 credits/1M

    Why ToAPIs

    Why call gemini-2.5-pro-official through ToAPIs?

    Keep model access, API keys, billing, and usage management in one workflow.

    Chat and reasoning

    Supports multi-turn context and structured outputs.

    Streaming output

    SSE token streaming for real-time UX.

    Tool calling

    Compose retrieval/execution workflows with tools.

    Connect in three steps

    Create a key, send a compatible chat request, and monitor usage.

    1. 1

      Step 1

      Set Authorization: Bearer <YOUR_API_KEY>.

    2. 2

      Step 2

      Call chat endpoint with model, messages, and max_tokens.

    3. 3

      Step 3

      Enable stream or tools when needed.

    When to use gemini-2.5-pro-official

    Use case 1

    When building coding/Q&A assistants and task agents.

    Use case 2

    When streaming and tool-calling are required.

    FAQ

    gemini-2.5-pro-official FAQ

    What is gemini-2.5-pro-official best for?

    Best for chat, reasoning, coding, and tool-calling assistant workflows.

    gemini-2.5-pro-official API

    Start building with gemini-2.5-pro-official

    Test a request here, then continue in the dashboard or API documentation.

    Start for freeView API Docs

    Try gemini-2.5-pro-official with one ToAPIs key.

    Use the same account and API surface across supported text models.

    Sign up to get free credits
    ToAPIs
    homeToAPIs

    Enterprise AI API gateway: text, image, video, and audio models behind one interface.

    运营主体:
    鯨樞智能科技有限公司
    JINGSHU INTELLIGENT LIMITED
    注册地址:
    ROOM 5042, 5/F, YAU LEE CENTRE, NO.45, HOI YUEN ROAD, KWUN TONG, KOWLOON, HONG KONG
    联系方式:
    support@toapis.com

    Models

    • Sora 2 API
    • Veo 3.1 API
    • GPT Image 2 API
    • All models

    Alternatives

    • Fal.ai alternative
    • Wavespeed AI alternative
    • PiAPI alternative
    • CometAPI alternative
    • Replicate alternative
    • AIMLAPI alternative

    Resources

    • Docs
    • Service status
    • Pricing
    • Privacy
    • Terms
    • Acceptable Use
    • Data Deletion
    • Data Retention
    • Subprocessors & Regions
    • Billing & Refunds
    • Cookie Policy
    • Sitemap
    • About

    © 2026 ToAPIs. All rights reserved.