This document describes how to call the Xing series model inference service directly provided by Xingchen on the Alibaba Cloud Model Studio platform.
Activate the service
- Go to the Model Studio console, search for Xing, find the Xing/Xing4.1-Preview model card, and click Activate Now.
- In the pop-up window, confirm the activation and authorization.
Getting started
Prerequisites
- You have obtained and configured an API key.
- If you call the service using a software development kit (SDK), you must install the SDK.
- Thinking mode (default, or
enable_thinking: true): The model outputs its reasoning process (reasoning_content). - Non-thinking mode (
enable_thinking: false): The model directly outputs the result without the reasoning process.
enable_thinkingis not a standard OpenAI parameter. In the OpenAI Python SDK, pass it viaextra_body. In the Node.js SDK, pass it as a top-level parameter.- For streaming output,
include_usageinstream_optionsis forced totrueand cannot be disabled.
- Python
- Node.js
- curl
Other features
| Feature | Supported | Notes |
|---|---|---|
| Multi-turn conversation | Supported | — |
| Function calling | Supported | parallel_tool_calls defaults to true. Passing false does not take effect |
| Context cache | Supported | Implicit cache. Input tokens that hit the cache are billed at 2% of the input price |
| Structured output | Supported | response_format supports {"type": "json_object"} |
| Partial mode | Unsupported | — |
| Web search | Unsupported | — |
| Multimodal input | Unsupported | Supports only text input |
preserve_thinking, thinking_budget, tool_stream, enable_code_interpreter, enable_search, search_options, and skill.
Models and pricing
| Model | Description |
|---|---|
| Xing/Xing4.1-Preview | Hybrid thinking model with thinking mode enabled by default. Context length: 1,048,576 tokens |
In thinking mode, the chain-of-thought is billed as output tokens.