1. gemini-2.5-pro
Nexconn-AI
  • Nexconn LLM API Service
  • Quick Start
  • Key Concepts and Terminology
  • Try Nexconn Large Model API Online
  • How to Get API-KEY
  • FAQ
  • Model
    • Model List
      GET
  • Chat
    • Bypass Interface
      • Bypass Anthropic Protocol
      • bypass Vertex/Gemini protocol
      • bypass Responses protocol
    • gemini-3.1-pro-preview
      • gemini-3.1-pro-preview reasoning
      • gemini-3.1-pro-preview qfile
    • gemini-2.5-pro
      • gemini-2.5-pro reasoning
        POST
    • openai/gpt-5
      • openai/gpt-5 reasoning
    • openai/gpt-5.2
      • openai/gpt-5.2 Reasoning
    • openai/gpt-5.2-codex
      • openai/gpt-5.2-codex
    • gemini-2.5-flash
      • gemini-2.5-flash Reasoning
    • claude-4.5-sonnet
      • claude-4.5-sonnet reasoning
    • claude-4.6-opus
      • claude-4.6-opus reasoning
    • deepseek/deepseek-v3.2-251201
      • deepseek/deepseek-v3.2-251201 reasoning
    • deepseek-v3
      • Chat
    • claude-3.7-sonnet
      • Chat completion
    • doubao-seed-1.6
      • doubao-seed-1.6
    • qwen3-max-2026-01-23
      • Chat completion
    • moonshotai/kimi-k2.5
      • Chat completion
    • Chat completion
      POST
    • Anthropic Protocol
      POST
  • Video
    • Veo
      • Create Video Generation Task
      • Query Video Generation Task
    • sora-2
      • Create Video Generation Task
      • Query Video Generation Status
      • Video Remix
    • sora-2-pro
      • Create Video Generation Task
      • Query Video Generation Status
      • Video Remix
    • kling-v2-1
      • Create Video Task
      • Query Video Generation Status
    • kling-v2-5-turbo
      • Create Video Task
      • Query Video Generation Status
    • kling-v2-6
      • Create Video Task
      • Query Video Generation Status
    • kling-v3
      • Create Video Task
      • Query Video Generation Status
    • kling-video-o1
      • Create Video Task
      • Query Video Generation Status
    • kling-v3-omni
      • Create Video Task
      • Query Video Generation Status
    • bytedance/doubao-seedance-2-0-260128
      • Create Video Generation Task
      • Query Video Generation Task
    • vidu
      • viduq1
        • Create text-to-video task
        • Create reference to video task - Non-subject invocation (video generation)
        • Create reference to video task - Subject invocation (supports video with audio function)
        • Query task status
        • Query task results
      • viduq2
        • Create text-to-video task
        • Create reference to video task - Non-subject invocation (video generation
        • Create reference to video task - Subject invocation (supports video with audio function)
        • Query task status
        • Query task results
      • viduq2-pro
        • Create Image-to-Video Task
        • Create First and Last Frame to Video Task
        • Create reference video generation task - non-subject invocation (video generation)
        • Query task status
        • Query task results
      • viduq2-turbo
        • Create Image-to-Video Task
        • Create First and Last Frame to Video Task
        • Query task status
        • Query task results
      • viduq3-pro
        • Create Image-to-Video Task
        • Create text-to-video task
        • Create First and Last Frame to Video Task
        • Query task status
        • Query task results
      • viduq3-turbo
        • Create Image-to-Video Task
        • Create text-to-video task
        • Create First and Last Frame to Video Task
        • Query task status
        • Query task results
  • Image Generation
    • kling-v1
      • Create text-to-image or single image-to-image task
      • Query task status
    • kling-v1-5
      • Create text-to-image or single image-to-image task
      • Query task status
    • kling-v2
      • Create text-to-image or single image-to-image task
      • Create multi-image-to-image task
      • Query task status
    • kling-v2-new
      • Create single image-to-image task
      • Query task status
    • kling-v2-1
      • Create text-to-image or single image-to-image task
      • Create multi-image-to-image task
      • Query task status
    • gemini-2.5-flash-image
      • Chat interface - supports text-to-image, image-to-image, and pure conversation
      • Text-to-image API - Generate images from text descriptions
      • Image-to-image API - Generate new images based on input images
    • gemini-3.0-pro-image-preview
      • Chat interface - supports text-to-image, image-to-image, and pure conversation
      • Text-to-image API - Generate images from text descriptions
      • Image-to-image API - Generate new images based on input images
    • gemini-3.1-flash-image-preview
      • Chat interface - supports text-to-image, image-to-image, and pure conversation
      • Text-to-image API - Generate images from text descriptions
      • Image-to-image API - Generate new images based on input images
    • kling-image-o1
      • Create image generation task
      • Query image generation task
      • Get Result
  • Files
    • Create file upload task
    • Query file status
    • List user files
  • Schemas
    • Chat
      • ChatCompletionRequest
      • ChatCompletionRequestMessage
      • ToolObject
      • ChatTemplateKwargs
      • ThinkType
      • ReasoningType
      • ImageConfig
      • SafetySetting
      • MessageContent
      • ImageUrl
      • VideoUrl
      • InputAudio
      • FileUrl
      • CacheControl
      • FunctionCall
      • ToolCall
      • ToolCallFunction
      • Image
      • ThinkingBlock
      • ToolFunction
      • ToolParameters
    • Video
      • kling-v2-1
        • KlingV21CreateRequest
        • KlingV21CreateResponse
        • KlingV21StatusResponse
      • kling-v2-5-turbo
        • KlingV25TurboCreateRequest
        • KlingV25TurboCreateResponse
        • KlingV25TurboStatusResponse
      • kling-video-o1
        • KlingVideoO1CreateRequest
        • KlingVideoO1CreateResponse
        • KlingVideoO1StatusResponse
      • kling-v3-omni
        • KlingV3OmniCreateRequest
      • kling-v3
        • KlingV3CreateRequest
      • kling-v2-6
        • KlingV26CreateRequest
        • KlingV26CreateResponse
        • KlingV26VideoStatusResponse
      • Veo
        • CreateVideoGenerationRequest
        • CreateVideoGenerationResponse
        • VideoGenerationJobInfo
        • ErrorResponse
        • Instance
        • ImageInput
        • LastFrameInput
        • VideoInput
        • ReferenceImage
        • Parameters
        • VideoGenerationData
        • VideoResult
      • VideoCreateResponse
    • Image Generation
      • kling-v1
        • KlingV1CreateImageRequest
      • kling-v1-5
        • KlingV15CreateImageRequest
      • kling-v2
        • KlingV2CreateImageRequest
        • KlingV2EditImageRequest
      • kling-v2-new
        • KlingV2NewCreateImageRequest
      • kling-v2-1
        • KlingV21CreateImageRequest
        • KlingV21EditImageRequest
      • gemini-2.5-flash-image
        • Gemini25FlashImageChatCompletionRequest
        • Gemini25FlashImageGenerationRequest
        • Gemini25FlashImageEditRequest
        • Gemini25FlashImageConfig
      • gemini-3.0-pro-image-preview
        • Gemini30ProImageChatCompletionRequest
        • Gemini30ProImageGenerationRequest
        • Gemini30ProImageEditRequest
        • Gemini30ProImageConfig
      • KlingImageTaskResponse
      • KlingImageTaskStatusResponse
      • ChatCompletionResponse
      • ImageGenerationResponse
      • FalOmniImageRequest
      • Gemini31FlashImageChatCompletionRequest
      • Gemini31FlashImageGenerationRequest
      • Gemini31FlashImageEditRequest
      • ChatMessage
      • Gemini31FlashImageConfig
    • CreateFileRequest
    • QueueStatus
    • ContentItem
    • FileResponse
    • Veo31FirstLastFrameToVideoInput
    • ToolItem
    • CreateVideoTaskResponse
    • FileListResponse
    • ApiErrorBody
    • FileDeleteResponse
    • GetVideoTaskResponse
    • Veo31ImageToVideoInput
    • Veo31ImageToVideoOutput
    • ChatCompletionResponse
    • FileError
    • ImageGenerationResponse
    • ErrorResponse
    • KodoSource
    • File
    • ImageUrlObject
    • VideoUrlObject
    • AudioUrlObject
    • DraftTaskObject
    • ChatMessage
    • VideoTaskOutputContent
    • VideoTaskToolUsageItem
    • VideoTaskUsage
  1. gemini-2.5-pro

gemini-2.5-pro reasoning

POST
/v1/chat/completions
You can use the reasoning_effort and thinking fields to control reasoning length
Gemini 2.5 Pro, reasoning cannot be disabled

Request

Authorization
Add parameter in header
Example:
X-Token: ********************
Body Params application/json

Examples
{
    "model": "gemini-2.5-pro",
    "messages": [
        {
            "content": [
                {
                    "text": "What is the sun",
                    "type": "text"
                }
            ],
            "role": "user"
        }
    ],
    "reasoning_effort": "minimal"
}

Request Code Samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
cURL
curl --location 'https://api-xmodel.nexconn.ai/v1/chat/completions' \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
    "model": "gemini-2.5-pro",
    "messages": [
        {
            "content": [
                {
                    "text": "What is the sun",
                    "type": "text"
                }
            ],
            "role": "user"
        }
    ],
    "reasoning_effort": "minimal"
}'

Responses

🟢200Success
application/json
Bodyapplication/json

Example
{
    "id": "chatcmpl-d84f639147a04fbf87ee14c0b73d9bab",
    "object": "chat.completion",
    "created": 1766971771,
    "model": "gemini-2.5-pro",
    "choices": [
        {
            "index": 0,
            "message": {
                "role": "assistant",
                "content": "Alright, this is a great question! We can understand \"what is the sun\" from different perspectives.\n\nSimply put, **the sun is the star at the center of our solar system**. It is a massive, hot, luminous ball of gas and is the most important energy source for all life on Earth.\n\nLet me explain in detail from several aspects:\n\n### 1. Basic Profile of the Sun\n\n*   **Type**: Star (specifically a yellow dwarf)\n*   **Age**: About 4.6 billion years (currently in its middle age, expected to burn stably for another 5 billion years)\n*   **Diameter**: About 1.392 million kilometers, 109 times Earth's diameter.\n*   **Mass**: About 330,000 times Earth's mass, accounting for 99.86% of the total mass of the solar system.\n*   **Temperature**:\n    *   **Core**: About 15 million degrees Celsius\n    *   **Surface (Photosphere)**: About 5,500 degrees Celsius\n    *   **Corona (outermost atmosphere)**: Can reach millions of degrees Celsius\n*   **Composition**: Mainly hydrogen (about 74%) and helium (about 24%), with the rest being heavier elements like oxygen, carbon, and iron.\n\n---\n\n### 2. Why Does the Sun Emit Light and Heat?\n\nThe sun's energy comes from **nuclear fusion reactions** occurring in its core.\n\n1.  **Massive gravity**: The sun's enormous mass generates powerful gravity, compressing the gas in the core region tightly.\n2.  **High temperature and pressure**: In this extreme high-temperature, high-pressure environment, hydrogen nuclei are stripped of electrons and become plasma.\n3.  **Fusion reaction**: Hydrogen nuclei (protons) overcome mutual repulsion, collide, and fuse into heavier helium nuclei.\n4.  **Mass defect**: In this process, a small amount of mass \"disappears\" and is converted into enormous energy according to Einstein's famous mass-energy equation **E=mc²**.\n5.  **Energy release**: This energy, in the form of light and heat, takes a long time (possibly hundreds of thousands of years) to transfer from the core to the sun's surface, then radiates into space.\n\n**A vivid analogy**: Imagine the sun as a giant \"hydrogen bomb\" that never goes out, constantly undergoing controlled nuclear explosions, providing us with energy.\n\n---\n\n### 3. Structure of the Sun (from inside out)\n\nLike an onion, the sun is also layered:\n\n1.  **Core**: The sun's \"engine,\" where nuclear fusion occurs.\n2.  **Radiative Zone**: Energy is slowly transferred outward in the form of photons (electromagnetic radiation), like moving through a crowded crowd, stopping and starting.\n3.  **Convective Zone**: Energy is rapidly transferred to the surface through gas convection (like boiling water, hot rises and cold sinks).\n4.  **Solar Atmosphere**:\n    *   **Photosphere**: The sun's \"surface\" that we see with the naked eye (through filtering equipment), where sunspots appear.\n    *   **Chromosphere**: Located above the photosphere, rose-red in color, usually invisible, only briefly visible during total solar eclipses.\n    *   **Corona**: The sun's outermost atmosphere, very thin but extremely hot. It extends outward, forming the **solar wind**.\n\n---\n\n### 4. Importance of the Sun to Earth\n\nFor Earth, the sun is the \"source of life,\" and its importance is reflected in all aspects:\n\n1.  **Light and heat**: Provides almost all the light and heat that life on Earth depends on, maintaining suitable surface temperatures.\n2.  **Foundation of life**: Plants convert solar energy into chemical energy through **photosynthesis**, becoming the bottom of Earth's food chain and supporting the entire ecosystem.\n3.  **Climate and weather**: Solar radiation drives Earth's atmospheric circulation and water cycle, forming weather phenomena like wind, clouds, rain, snow, and seasonal changes.\n4.  **Earth's \"protective umbrella\": The sun's gravity keeps Earth and other planets stable in their respective orbits, maintaining order in the solar system.\n5.  **Energy source**: The fossil fuels we use (coal, oil, natural gas) are essentially solar energy stored by ancient plants and animals. Renewable energy like wind and hydropower also originates from the sun.\n\n---\n\n### Summary\n\n**The sun is both an ordinary star** (there are billions of stars like it in the universe), **and a unique, vital star for us**. It is not only the central celestial body of the solar system but also the creator and guardian of life on Earth. Understanding the sun is understanding where we come from.",
                "reasoning_content": "**Initiating Inquiry on The Sun**\n\nI'm starting with a dissection of the user's simple question. \"What is the Sun?\" is the core. I'll need to develop an answer that is comprehensive, yet readily understandable, a significant challenge given the vastness of the subject. I'm focusing on the accessibility aspect first.\n\n\n"
            },
            "finish_reason": "stop"
        }
    ],
    "usage": {
        "prompt_tokens": 2,
        "completion_tokens": 1147,
        "total_tokens": 1149,
        "prompt_tokens_details": {
            "text_tokens": 2
        },
        "completion_tokens_details": {
            "reasoning_tokens": 67,
            "text_tokens": 1080
        }
    }
}
Modified at 2026-04-24 10:39:56
Previous
gemini-3.1-pro-preview qfile
Next
openai/gpt-5 reasoning
Built with