# qwen4-max (latest model)

> Qwen4-Max is a new-generation flagship multimodal model of Tongyi Qianwen that integrates text generation, image and video understanding, and deep thinking capabilities, and is suitable for programming development, office work, front-end design, and complex agent tasks. The model supports web search, tool calls, and structured output, and is compatible with OpenAI and Anthropic APIs, helping developers build intelligent applications with multimodal understanding and task execution capabilities

<meta property="og:title" content="Qwen4-Max" />

Model calling ID (value of the `model` parameter): `qwen4-max`

## Inference Service Provider

Alibaba Cloud Model Studio

## Model Capabilities

<Tabs>
  <Tab title="China (Beijing)">
    <table style={{ display: "table", tableLayout: "fixed", width: "100%", overflowWrap: "anywhere" }}><colgroup><col style={{ width: "25%" }} /><col style={{ width: "25%" }} /><col style={{ width: "25%" }} /><col style={{ width: "25%" }} /></colgroup><thead><tr><th style={{ verticalAlign: "top" }}><p>Capability</p></th><th style={{ verticalAlign: "top" }}><p>Support status</p></th><th style={{ verticalAlign: "top" }}><p>Capability</p></th><th style={{ verticalAlign: "top" }}><p>Support status</p></th></tr></thead><tbody><tr><td style={{ verticalAlign: "top" }}><p>Input Modality</p></td><td style={{ verticalAlign: "top" }}><p>Text, Image, Video</p></td><td style={{ verticalAlign: "top" }}><p>Output Modality</p></td><td style={{ verticalAlign: "top" }}><p>Text</p></td></tr><tr><td style={{ verticalAlign: "top" }}><p>Streaming output</p></td><td style={{ verticalAlign: "top" }}><p>Supported</p></td><td style={{ verticalAlign: "top" }}><p>Deep thinking</p></td><td style={{ verticalAlign: "top" }}><p>Supported</p></td></tr><tr><td style={{ verticalAlign: "top" }}><p>Parallel tool calls</p></td><td style={{ verticalAlign: "top" }}><p>Supported</p></td><td style={{ verticalAlign: "top" }}><p>Web search</p></td><td style={{ verticalAlign: "top" }}><p>Supported</p></td></tr><tr><td style={{ verticalAlign: "top" }}><p>Prefix completion</p></td><td style={{ verticalAlign: "top" }}><p>Supported</p></td><td style={{ verticalAlign: "top" }}><p>Function Calling</p></td><td style={{ verticalAlign: "top" }}><p>Supported</p></td></tr><tr><td style={{ verticalAlign: "top" }}><p>Chain-of-thought summarization and encryption</p></td><td style={{ verticalAlign: "top" }}><p>Supported</p></td><td style={{ verticalAlign: "top" }}><p>OpenAI Chat Completions、Responses、Anthropic Messages、DashScope</p></td><td style={{ verticalAlign: "top" }}><p>Supported</p></td></tr><tr><td style={{ verticalAlign: "top" }}><p>Structured output (JSON Object, JSON Schema)</p></td><td style={{ verticalAlign: "top" }}><p>Supported</p></td><td style={{ verticalAlign: "top" }}><p>Explicit cache, implicit cache</p></td><td style={{ verticalAlign: "top" }}><p>Supported</p></td></tr><tr><td style={{ verticalAlign: "top" }}><p>Batch inference</p></td><td style={{ verticalAlign: "top" }}><p>Supported</p></td><td style={{ verticalAlign: "top" }}><p>Model fine-tuning</p></td><td style={{ verticalAlign: "top" }}><p>Not supported</p></td></tr><tr><td style={{ verticalAlign: "top" }}><p>Model deployment</p></td><td style={{ verticalAlign: "top" }}><p>Not supported</p></td><td style={{ verticalAlign: "top" }}><p /></td><td style={{ verticalAlign: "top" }}><p /></td></tr></tbody></table>
  </Tab>

  <Tab title="Singapore">
    Deployment scope: International

    <table style={{ display: "table", tableLayout: "fixed", width: "100%", overflowWrap: "anywhere" }}><colgroup><col style={{ width: "25%" }} /><col style={{ width: "25%" }} /><col style={{ width: "25%" }} /><col style={{ width: "25%" }} /></colgroup><thead><tr><th style={{ verticalAlign: "top" }}><p>Capability</p></th><th style={{ verticalAlign: "top" }}><p>Support status</p></th><th style={{ verticalAlign: "top" }}><p>Capability</p></th><th style={{ verticalAlign: "top" }}><p>Support status</p></th></tr></thead><tbody><tr><td style={{ verticalAlign: "top" }}><p>Input Modality</p></td><td style={{ verticalAlign: "top" }}><p>Text, Image, Video</p></td><td style={{ verticalAlign: "top" }}><p>Output Modality</p></td><td style={{ verticalAlign: "top" }}><p>Text</p></td></tr><tr><td style={{ verticalAlign: "top" }}><p>Streaming output</p></td><td style={{ verticalAlign: "top" }}><p>Supported</p></td><td style={{ verticalAlign: "top" }}><p>Deep thinking</p></td><td style={{ verticalAlign: "top" }}><p>Supported</p></td></tr><tr><td style={{ verticalAlign: "top" }}><p>Parallel tool calls</p></td><td style={{ verticalAlign: "top" }}><p>Supported</p></td><td style={{ verticalAlign: "top" }}><p>Web search</p></td><td style={{ verticalAlign: "top" }}><p>Supported</p></td></tr><tr><td style={{ verticalAlign: "top" }}><p>Prefix completion</p></td><td style={{ verticalAlign: "top" }}><p>Supported</p></td><td style={{ verticalAlign: "top" }}><p>Function Calling</p></td><td style={{ verticalAlign: "top" }}><p>Supported</p></td></tr><tr><td style={{ verticalAlign: "top" }}><p>Chain-of-thought summarization and encryption</p></td><td style={{ verticalAlign: "top" }}><p>Supported</p></td><td style={{ verticalAlign: "top" }}><p>OpenAI Chat Completions、Responses、Anthropic Messages、DashScope</p></td><td style={{ verticalAlign: "top" }}><p>Supported</p></td></tr><tr><td style={{ verticalAlign: "top" }}><p>Structured output (JSON Object, JSON Schema)</p></td><td style={{ verticalAlign: "top" }}><p>Supported</p></td><td style={{ verticalAlign: "top" }}><p>Explicit cache, implicit cache</p></td><td style={{ verticalAlign: "top" }}><p>Supported</p></td></tr><tr><td style={{ verticalAlign: "top" }}><p>Batch inference</p></td><td style={{ verticalAlign: "top" }}><p>Not supported</p></td><td style={{ verticalAlign: "top" }}><p>Model fine-tuning</p></td><td style={{ verticalAlign: "top" }}><p>Not supported</p></td></tr><tr><td style={{ verticalAlign: "top" }}><p>Model deployment</p></td><td style={{ verticalAlign: "top" }}><p>Not supported</p></td><td style={{ verticalAlign: "top" }}><p /></td><td style={{ verticalAlign: "top" }}><p /></td></tr></tbody></table>
  </Tab>

  <Tab title="Germany (Frankfurt)">
    Deployment scope: Global

    <table style={{ display: "table", tableLayout: "fixed", width: "100%", overflowWrap: "anywhere" }}><colgroup><col style={{ width: "25%" }} /><col style={{ width: "25%" }} /><col style={{ width: "25%" }} /><col style={{ width: "25%" }} /></colgroup><thead><tr><th style={{ verticalAlign: "top" }}><p>Capability</p></th><th style={{ verticalAlign: "top" }}><p>Support status</p></th><th style={{ verticalAlign: "top" }}><p>Capability</p></th><th style={{ verticalAlign: "top" }}><p>Support status</p></th></tr></thead><tbody><tr><td style={{ verticalAlign: "top" }}><p>Input Modality</p></td><td style={{ verticalAlign: "top" }}><p>Text, Image, Video</p></td><td style={{ verticalAlign: "top" }}><p>Output Modality</p></td><td style={{ verticalAlign: "top" }}><p>Text</p></td></tr><tr><td style={{ verticalAlign: "top" }}><p>Streaming output</p></td><td style={{ verticalAlign: "top" }}><p>Supported</p></td><td style={{ verticalAlign: "top" }}><p>Deep thinking</p></td><td style={{ verticalAlign: "top" }}><p>Supported</p></td></tr><tr><td style={{ verticalAlign: "top" }}><p>Parallel tool calls</p></td><td style={{ verticalAlign: "top" }}><p>Supported</p></td><td style={{ verticalAlign: "top" }}><p>Web search</p></td><td style={{ verticalAlign: "top" }}><p>Supported</p></td></tr><tr><td style={{ verticalAlign: "top" }}><p>Prefix completion</p></td><td style={{ verticalAlign: "top" }}><p>Supported</p></td><td style={{ verticalAlign: "top" }}><p>Function Calling</p></td><td style={{ verticalAlign: "top" }}><p>Supported</p></td></tr><tr><td style={{ verticalAlign: "top" }}><p>Chain-of-thought summarization and encryption</p></td><td style={{ verticalAlign: "top" }}><p>Supported</p></td><td style={{ verticalAlign: "top" }}><p>OpenAI Chat Completions、Responses、Anthropic Messages、DashScope</p></td><td style={{ verticalAlign: "top" }}><p>Supported</p></td></tr><tr><td style={{ verticalAlign: "top" }}><p>Structured output (JSON Object, JSON Schema)</p></td><td style={{ verticalAlign: "top" }}><p>Supported</p></td><td style={{ verticalAlign: "top" }}><p>Explicit cache, implicit cache</p></td><td style={{ verticalAlign: "top" }}><p>Supported</p></td></tr><tr><td style={{ verticalAlign: "top" }}><p>Batch inference</p></td><td style={{ verticalAlign: "top" }}><p>Not supported</p></td><td style={{ verticalAlign: "top" }}><p>Model fine-tuning</p></td><td style={{ verticalAlign: "top" }}><p>Not supported</p></td></tr><tr><td style={{ verticalAlign: "top" }}><p>Model deployment</p></td><td style={{ verticalAlign: "top" }}><p>Not supported</p></td><td style={{ verticalAlign: "top" }}><p /></td><td style={{ verticalAlign: "top" }}><p /></td></tr></tbody></table>
  </Tab>

  <Tab title="United States (Virginia)">
    Deployment scope: Global / Virginia

    <table style={{ display: "table", tableLayout: "fixed", width: "100%", overflowWrap: "anywhere" }}><colgroup><col style={{ width: "25%" }} /><col style={{ width: "25%" }} /><col style={{ width: "25%" }} /><col style={{ width: "25%" }} /></colgroup><thead><tr><th style={{ verticalAlign: "top" }}><p>Capability</p></th><th style={{ verticalAlign: "top" }}><p>Support status</p></th><th style={{ verticalAlign: "top" }}><p>Capability</p></th><th style={{ verticalAlign: "top" }}><p>Support status</p></th></tr></thead><tbody><tr><td style={{ verticalAlign: "top" }}><p>Input Modality</p></td><td style={{ verticalAlign: "top" }}><p>Text, Image, Video</p></td><td style={{ verticalAlign: "top" }}><p>Output Modality</p></td><td style={{ verticalAlign: "top" }}><p>Text</p></td></tr><tr><td style={{ verticalAlign: "top" }}><p>Streaming output</p></td><td style={{ verticalAlign: "top" }}><p>Supported</p></td><td style={{ verticalAlign: "top" }}><p>Deep thinking</p></td><td style={{ verticalAlign: "top" }}><p>Supported</p></td></tr><tr><td style={{ verticalAlign: "top" }}><p>Parallel tool calls</p></td><td style={{ verticalAlign: "top" }}><p>Supported</p></td><td style={{ verticalAlign: "top" }}><p>Web search</p></td><td style={{ verticalAlign: "top" }}><p>Supported</p></td></tr><tr><td style={{ verticalAlign: "top" }}><p>Prefix completion</p></td><td style={{ verticalAlign: "top" }}><p>Supported</p></td><td style={{ verticalAlign: "top" }}><p>Function Calling</p></td><td style={{ verticalAlign: "top" }}><p>Supported</p></td></tr><tr><td style={{ verticalAlign: "top" }}><p>Chain-of-thought summarization and encryption</p></td><td style={{ verticalAlign: "top" }}><p>Supported</p></td><td style={{ verticalAlign: "top" }}><p>OpenAI Chat Completions、Responses、Anthropic Messages、DashScope</p></td><td style={{ verticalAlign: "top" }}><p>Supported</p></td></tr><tr><td style={{ verticalAlign: "top" }}><p>Structured output (JSON Object, JSON Schema)</p></td><td style={{ verticalAlign: "top" }}><p>Supported</p></td><td style={{ verticalAlign: "top" }}><p>Explicit cache, implicit cache</p></td><td style={{ verticalAlign: "top" }}><p>Supported</p></td></tr><tr><td style={{ verticalAlign: "top" }}><p>Batch inference</p></td><td style={{ verticalAlign: "top" }}><p>Not supported</p></td><td style={{ verticalAlign: "top" }}><p>Model fine-tuning</p></td><td style={{ verticalAlign: "top" }}><p>Not supported</p></td></tr><tr><td style={{ verticalAlign: "top" }}><p>Model deployment</p></td><td style={{ verticalAlign: "top" }}><p>Not supported</p></td><td style={{ verticalAlign: "top" }}><p /></td><td style={{ verticalAlign: "top" }}><p /></td></tr></tbody></table>
  </Tab>

  <Tab title="Japan (Tokyo)">
    Deployment scope: Global

    <table style={{ display: "table", tableLayout: "fixed", width: "100%", overflowWrap: "anywhere" }}><colgroup><col style={{ width: "25%" }} /><col style={{ width: "25%" }} /><col style={{ width: "25%" }} /><col style={{ width: "25%" }} /></colgroup><thead><tr><th style={{ verticalAlign: "top" }}><p>Capability</p></th><th style={{ verticalAlign: "top" }}><p>Support status</p></th><th style={{ verticalAlign: "top" }}><p>Capability</p></th><th style={{ verticalAlign: "top" }}><p>Support status</p></th></tr></thead><tbody><tr><td style={{ verticalAlign: "top" }}><p>Input Modality</p></td><td style={{ verticalAlign: "top" }}><p>Text, Image, Video</p></td><td style={{ verticalAlign: "top" }}><p>Output Modality</p></td><td style={{ verticalAlign: "top" }}><p>Text</p></td></tr><tr><td style={{ verticalAlign: "top" }}><p>Streaming output</p></td><td style={{ verticalAlign: "top" }}><p>Supported</p></td><td style={{ verticalAlign: "top" }}><p>Deep thinking</p></td><td style={{ verticalAlign: "top" }}><p>Supported</p></td></tr><tr><td style={{ verticalAlign: "top" }}><p>Parallel tool calls</p></td><td style={{ verticalAlign: "top" }}><p>Supported</p></td><td style={{ verticalAlign: "top" }}><p>Web search</p></td><td style={{ verticalAlign: "top" }}><p>Supported</p></td></tr><tr><td style={{ verticalAlign: "top" }}><p>Prefix completion</p></td><td style={{ verticalAlign: "top" }}><p>Supported</p></td><td style={{ verticalAlign: "top" }}><p>Function Calling</p></td><td style={{ verticalAlign: "top" }}><p>Supported</p></td></tr><tr><td style={{ verticalAlign: "top" }}><p>Chain-of-thought summarization and encryption</p></td><td style={{ verticalAlign: "top" }}><p>Supported</p></td><td style={{ verticalAlign: "top" }}><p>OpenAI Chat Completions、Responses、Anthropic Messages、DashScope</p></td><td style={{ verticalAlign: "top" }}><p>Supported</p></td></tr><tr><td style={{ verticalAlign: "top" }}><p>Structured output (JSON Object, JSON Schema)</p></td><td style={{ verticalAlign: "top" }}><p>Supported</p></td><td style={{ verticalAlign: "top" }}><p>Explicit cache, implicit cache</p></td><td style={{ verticalAlign: "top" }}><p>Supported</p></td></tr><tr><td style={{ verticalAlign: "top" }}><p>Batch inference</p></td><td style={{ verticalAlign: "top" }}><p>Not supported</p></td><td style={{ verticalAlign: "top" }}><p>Model fine-tuning</p></td><td style={{ verticalAlign: "top" }}><p>Not supported</p></td></tr><tr><td style={{ verticalAlign: "top" }}><p>Model deployment</p></td><td style={{ verticalAlign: "top" }}><p>Not supported</p></td><td style={{ verticalAlign: "top" }}><p /></td><td style={{ verticalAlign: "top" }}><p /></td></tr></tbody></table>
  </Tab>

  <Tab title="Hong Kong (China)">
    Deployment scope: Global

    <table style={{ display: "table", tableLayout: "fixed", width: "100%", overflowWrap: "anywhere" }}><colgroup><col style={{ width: "25%" }} /><col style={{ width: "25%" }} /><col style={{ width: "25%" }} /><col style={{ width: "25%" }} /></colgroup><thead><tr><th style={{ verticalAlign: "top" }}><p>Capability</p></th><th style={{ verticalAlign: "top" }}><p>Support status</p></th><th style={{ verticalAlign: "top" }}><p>Capability</p></th><th style={{ verticalAlign: "top" }}><p>Support status</p></th></tr></thead><tbody><tr><td style={{ verticalAlign: "top" }}><p>Input Modality</p></td><td style={{ verticalAlign: "top" }}><p>Text, Image, Video</p></td><td style={{ verticalAlign: "top" }}><p>Output Modality</p></td><td style={{ verticalAlign: "top" }}><p>Text</p></td></tr><tr><td style={{ verticalAlign: "top" }}><p>Streaming output</p></td><td style={{ verticalAlign: "top" }}><p>Supported</p></td><td style={{ verticalAlign: "top" }}><p>Deep thinking</p></td><td style={{ verticalAlign: "top" }}><p>Supported</p></td></tr><tr><td style={{ verticalAlign: "top" }}><p>Parallel tool calls</p></td><td style={{ verticalAlign: "top" }}><p>Supported</p></td><td style={{ verticalAlign: "top" }}><p>Web search</p></td><td style={{ verticalAlign: "top" }}><p>Supported</p></td></tr><tr><td style={{ verticalAlign: "top" }}><p>Prefix completion</p></td><td style={{ verticalAlign: "top" }}><p>Supported</p></td><td style={{ verticalAlign: "top" }}><p>Function Calling</p></td><td style={{ verticalAlign: "top" }}><p>Supported</p></td></tr><tr><td style={{ verticalAlign: "top" }}><p>Chain-of-thought summarization and encryption</p></td><td style={{ verticalAlign: "top" }}><p>Supported</p></td><td style={{ verticalAlign: "top" }}><p>OpenAI Chat Completions、Responses、Anthropic Messages、DashScope</p></td><td style={{ verticalAlign: "top" }}><p>Supported</p></td></tr><tr><td style={{ verticalAlign: "top" }}><p>Structured output (JSON Object, JSON Schema)</p></td><td style={{ verticalAlign: "top" }}><p>Supported</p></td><td style={{ verticalAlign: "top" }}><p>Explicit cache, implicit cache</p></td><td style={{ verticalAlign: "top" }}><p>Supported</p></td></tr><tr><td style={{ verticalAlign: "top" }}><p>Batch inference</p></td><td style={{ verticalAlign: "top" }}><p>Not supported</p></td><td style={{ verticalAlign: "top" }}><p>Model fine-tuning</p></td><td style={{ verticalAlign: "top" }}><p>Not supported</p></td></tr><tr><td style={{ verticalAlign: "top" }}><p>Model deployment</p></td><td style={{ verticalAlign: "top" }}><p>Not supported</p></td><td style={{ verticalAlign: "top" }}><p /></td><td style={{ verticalAlign: "top" }}><p /></td></tr></tbody></table>
  </Tab>
</Tabs>

## Rate Limit & Context

<table style={{ display: "table", tableLayout: "fixed", width: "100%", overflowWrap: "anywhere" }}><colgroup><col style={{ width: "25%" }} /><col style={{ width: "25%" }} /><col style={{ width: "25%" }} /><col style={{ width: "25%" }} /></colgroup><thead><tr><th style={{ verticalAlign: "top" }}><p>Parameter</p></th><th style={{ verticalAlign: "top" }}><p>Token</p></th><th style={{ verticalAlign: "top" }}><p>Parameter</p></th><th style={{ verticalAlign: "top" }}><p>Token</p></th></tr></thead><tbody><tr><td style={{ verticalAlign: "top" }}><p>Maximum Input</p></td><td style={{ verticalAlign: "top" }}><p>991,808</p></td><td style={{ verticalAlign: "top" }}><p>Maximum Output</p></td><td style={{ verticalAlign: "top" }}><p>131,072</p></td></tr><tr><td style={{ verticalAlign: "top" }}><p>Maximum Input (thinking mode)</p></td><td style={{ verticalAlign: "top" }}><p>983,616</p></td><td style={{ verticalAlign: "top" }}><p>Maximum Output (thinking mode)</p></td><td style={{ verticalAlign: "top" }}><p>262,144</p></td></tr><tr><td style={{ verticalAlign: "top" }}><p>Context Length</p></td><td style={{ verticalAlign: "top" }}><p>1,000,000</p></td><td style={{ verticalAlign: "top" }}><p>Maximum Chain-of-Thought</p></td><td style={{ verticalAlign: "top" }}><p>262,144</p></td></tr></tbody></table>

## Default Parameters

<table style={{ display: "table", tableLayout: "fixed", width: "100%", overflowWrap: "anywhere" }}><colgroup><col style={{ width: "40%" }} /><col style={{ width: "60%" }} /></colgroup><thead><tr><th style={{ verticalAlign: "top" }}><p>Parameter</p></th><th style={{ verticalAlign: "top" }}><p>Default Value</p></th></tr></thead><tbody><tr><td style={{ verticalAlign: "top" }}><p>temperature</p></td><td style={{ verticalAlign: "top" }}><p>1.0 in thinking mode and 0.7 in non-thinking mode.</p></td></tr><tr><td style={{ verticalAlign: "top" }}><p>top\_p</p></td><td style={{ verticalAlign: "top" }}><p>0.95 in thinking mode and 0.8 in non-thinking mode.</p></td></tr><tr><td style={{ verticalAlign: "top" }}><p>top\_k</p></td><td style={{ verticalAlign: "top" }}><p>20</p></td></tr><tr><td style={{ verticalAlign: "top" }}><p>repetition\_penalty</p></td><td style={{ verticalAlign: "top" }}><p>1.0</p></td></tr><tr><td style={{ verticalAlign: "top" }}><p>presence\_penalty</p></td><td style={{ verticalAlign: "top" }}><p>0.0 (thinking); 1.5 (non-thinking)</p></td></tr><tr><td style={{ verticalAlign: "top" }}><p>logprobs</p></td><td style={{ verticalAlign: "top" }}><p>false</p></td></tr><tr><td style={{ verticalAlign: "top" }}><p>enable\_thinking</p></td><td style={{ verticalAlign: "top" }}><p>true</p></td></tr><tr><td style={{ verticalAlign: "top" }}><p>preserve\_thinking</p></td><td style={{ verticalAlign: "top" }}><p>true</p></td></tr><tr><td style={{ verticalAlign: "top" }}><p>reasoning\_effort</p></td><td style={{ verticalAlign: "top" }}><p>high</p></td></tr><tr><td style={{ verticalAlign: "top" }}><p>thinking\_budget</p></td><td style={{ verticalAlign: "top" }}><p>131072</p></td></tr><tr><td style={{ verticalAlign: "top" }}><p>max\_completion\_tokens</p></td><td style={{ verticalAlign: "top" }}><p>262144 (thinking); 131072 (non-thinking)</p></td></tr></tbody></table>

When `reasoning_effort` and `thinking_budget` are not specified, `reasoning_effort=high` and `thinking_budget=131072` are used by default.

## Reasoning Effort

| Protocol                            | Parameter              | Available values       | Default value | Mapping                                               |
| ----------------------------------- | ---------------------- | ---------------------- | ------------- | ----------------------------------------------------- |
| OpenAI Chat Completions / DashScope | `reasoning_effort`     | `low`, `high`, `xhigh` | `high`        | `minimal` → `low`; `medium` → `high`; `max` → `xhigh` |
| OpenAI Responses                    | `reasoning.effort`     | `low`, `high`, `xhigh` | `high`        | `minimal` → `low`; `medium` → `high`; `max` → `xhigh` |
| Anthropic Messages                  | `output_config.effort` | `low`, `high`, `xhigh` | `high`        | `medium` → `high`; `max` → `xhigh`                    |

## Model Price

<Tabs>
  <Tab title="Singapore">
    <table style={{ display: "table", tableLayout: "fixed", width: "100%", overflowWrap: "anywhere" }}>
      <colgroup>
        <col style={{ width: "14.285714%" }} />

        <col style={{ width: "14.285714%" }} />

        <col style={{ width: "14.285714%" }} />

        <col style={{ width: "14.285714%" }} />

        <col style={{ width: "14.285714%" }} />

        <col style={{ width: "14.285714%" }} />

        <col style={{ width: "14.285714%" }} />
      </colgroup>

      <thead>
        <tr>
          <th style={{ verticalAlign: "top" }}>
            <strong>Model ID</strong>
          </th>

          <th style={{ verticalAlign: "top" }}>
            <strong>Service Deployment Scope</strong>
          </th>

          <th style={{ verticalAlign: "top" }}>
            <strong>Pattern</strong>
          </th>

          <th style={{ verticalAlign: "top" }}>
            <strong>Input tokens per request</strong>
          </th>

          <th style={{ verticalAlign: "top" }}>
            <strong>Input unit price (per million tokens)</strong>
          </th>

          <th style={{ verticalAlign: "top" }}>
            <strong>Output unit price (per million tokens)</strong>

            > <strong>Chain-of-thought + response</strong>
          </th>

          <th style={{ verticalAlign: "top" }}>
            <strong>Free quota</strong>[(Note)](/help/zh/model-studio/new-free-quota#591f3dfedfyzj)

            <sup>Validity: within 90 days from the date of Model Studio activation, model release, or application approval (whichever is later)</sup>
          </th>
        </tr>
      </thead>

      <tbody>
        <tr>
          <td style={{ verticalAlign: "top" }}>
            qwen4-max

            > [Cache unit price (per million tokens)](/help/zh/model-studio/explicit-cache-qwen4#billing)
          </td>

          <td style={{ verticalAlign: "top" }}>
            International
          </td>

          <td style={{ verticalAlign: "top" }}>
            Non-thinking and thinking modes
          </td>

          <td style={{ verticalAlign: "top" }}>
            0\<Token≤1M
          </td>

          <td style={{ verticalAlign: "top" }}>
            \$1.5
          </td>

          <td style={{ verticalAlign: "top" }}>
            \$4.5
          </td>

          <td style={{ verticalAlign: "top" }}>
            1 million tokens
          </td>
        </tr>
      </tbody>
    </table>
  </Tab>

  <Tab title="China (Beijing)">
    <table style={{ display: "table", tableLayout: "fixed", width: "100%", overflowWrap: "anywhere" }}>
      <colgroup>
        <col style={{ width: "20%" }} />

        <col style={{ width: "20%" }} />

        <col style={{ width: "20%" }} />

        <col style={{ width: "20%" }} />

        <col style={{ width: "20%" }} />
      </colgroup>

      <thead>
        <tr>
          <th style={{ verticalAlign: "top" }}>
            <strong>Model ID</strong>
          </th>

          <th style={{ verticalAlign: "top" }}>
            <strong>Pattern</strong>
          </th>

          <th style={{ verticalAlign: "top" }}>
            <strong>Input tokens per request</strong>
          </th>

          <th style={{ verticalAlign: "top" }}>
            <strong>Input unit price (per million tokens)</strong>
          </th>

          <th style={{ verticalAlign: "top" }}>
            <strong>Output unit price (per million tokens)</strong>

            > <strong>Chain-of-thought + response</strong>
          </th>
        </tr>
      </thead>

      <tbody>
        <tr>
          <td style={{ verticalAlign: "top" }}>
            qwen4-max

            > [Cache unit price (per million tokens)](/help/zh/model-studio/explicit-cache-qwen4#billing)
          </td>

          <td style={{ verticalAlign: "top" }}>
            Non-thinking and thinking modes
          </td>

          <td style={{ verticalAlign: "top" }}>
            0\<Token≤1M
          </td>

          <td style={{ verticalAlign: "top" }}>
            \$1.413
          </td>

          <td style={{ verticalAlign: "top" }}>
            \$4.24
          </td>
        </tr>
      </tbody>
    </table>

    **qwen4-max — Batch unit price (per million tokens)**

| API                                                                                | Input            | Output          |
| ---------------------------------------------------------------------------------- | ---------------- | --------------- |
| [Batch File](/help/zh/model-studio/batch-interfaces-compatible-with-openai)             | \$0.707          | \$2.12          |
| [Batch Chat](/help/zh/model-studio/openai-compatible-batch-chat) (limited-time 50% off) | Original \$1.413 | Original \$4.24 |
  </Tab>

  <Tab title="Hong Kong (China)">
    <table style={{ display: "table", tableLayout: "fixed", width: "100%", overflowWrap: "anywhere" }}>
      <colgroup>
        <col style={{ width: "16.69%" }} />

        <col style={{ width: "16.69%" }} />

        <col style={{ width: "16.69%" }} />

        <col style={{ width: "16.69%" }} />

        <col style={{ width: "16.69%" }} />

        <col style={{ width: "16.55%" }} />
      </colgroup>

      <thead>
        <tr>
          <th style={{ verticalAlign: "top" }}>
            <strong>Model ID</strong>
          </th>

          <th style={{ verticalAlign: "top" }}>
            <strong>Service Deployment Scope</strong>
          </th>

          <th style={{ verticalAlign: "top" }}>
            <strong>Pattern</strong>
          </th>

          <th style={{ verticalAlign: "top" }}>
            <strong>Input tokens per request</strong>
          </th>

          <th style={{ verticalAlign: "top" }}>
            <strong>Input unit price (per million tokens)</strong>
          </th>

          <th style={{ verticalAlign: "top" }}>
            <strong>Output unit price (per million tokens)</strong>

            > <strong>Chain-of-thought + response</strong>
          </th>
        </tr>
      </thead>

      <tbody>
        <tr>
          <td style={{ verticalAlign: "top" }}>
            qwen4-max

            > [Cache unit price (per million tokens)](/help/zh/model-studio/explicit-cache-qwen4#billing)
          </td>

          <td style={{ verticalAlign: "top" }}>
            Global
          </td>

          <td style={{ verticalAlign: "top" }}>
            Non-thinking and thinking modes
          </td>

          <td style={{ verticalAlign: "top" }}>
            0\<Token≤1M
          </td>

          <td style={{ verticalAlign: "top" }}>
            \$1.413
          </td>

          <td style={{ verticalAlign: "top" }}>
            \$4.24
          </td>
        </tr>
      </tbody>
    </table>
  </Tab>

  <Tab title="Germany (Frankfurt)">
    <table style={{ display: "table", tableLayout: "fixed", width: "100%", overflowWrap: "anywhere" }}>
      <colgroup>
        <col style={{ width: "16.69%" }} />

        <col style={{ width: "16.69%" }} />

        <col style={{ width: "16.69%" }} />

        <col style={{ width: "16.69%" }} />

        <col style={{ width: "16.69%" }} />

        <col style={{ width: "16.55%" }} />
      </colgroup>

      <thead>
        <tr>
          <th style={{ verticalAlign: "top" }}>
            <strong>Model ID</strong>
          </th>

          <th style={{ verticalAlign: "top" }}>
            <strong>Service Deployment Scope</strong>
          </th>

          <th style={{ verticalAlign: "top" }}>
            <strong>Pattern</strong>
          </th>

          <th style={{ verticalAlign: "top" }}>
            <strong>Input tokens per request</strong>
          </th>

          <th style={{ verticalAlign: "top" }}>
            <strong>Input unit price (per million tokens)</strong>
          </th>

          <th style={{ verticalAlign: "top" }}>
            <strong>Output unit price (per million tokens)</strong>

            > <strong>Chain-of-thought + response</strong>
          </th>
        </tr>
      </thead>

      <tbody>
        <tr>
          <td style={{ verticalAlign: "top" }}>
            qwen4-max

            > [Cache unit price (per million tokens)](/help/zh/model-studio/explicit-cache-qwen4#billing)
          </td>

          <td style={{ verticalAlign: "top" }}>
            Global
          </td>

          <td style={{ verticalAlign: "top" }}>
            Non-thinking and thinking modes
          </td>

          <td style={{ verticalAlign: "top" }}>
            0\<Token≤1M
          </td>

          <td style={{ verticalAlign: "top" }}>
            \$1.413
          </td>

          <td style={{ verticalAlign: "top" }}>
            \$4.24
          </td>
        </tr>
      </tbody>
    </table>
  </Tab>

  <Tab title="United States (Virginia)">
    <table style={{ display: "table", tableLayout: "fixed", width: "100%", overflowWrap: "anywhere" }}>
      <colgroup>
        <col style={{ width: "16.69%" }} />

        <col style={{ width: "16.69%" }} />

        <col style={{ width: "16.69%" }} />

        <col style={{ width: "16.69%" }} />

        <col style={{ width: "16.69%" }} />

        <col style={{ width: "16.55%" }} />
      </colgroup>

      <thead>
        <tr>
          <th style={{ verticalAlign: "top" }}>
            <strong>Model ID</strong>
          </th>

          <th style={{ verticalAlign: "top" }}>
            <strong>Service Deployment Scope</strong>
          </th>

          <th style={{ verticalAlign: "top" }}>
            <strong>Pattern</strong>
          </th>

          <th style={{ verticalAlign: "top" }}>
            <strong>Input tokens per request</strong>
          </th>

          <th style={{ verticalAlign: "top" }}>
            <strong>Input unit price (per million tokens)</strong>
          </th>

          <th style={{ verticalAlign: "top" }}>
            <strong>Output unit price (per million tokens)</strong>

            > <strong>Chain-of-thought + response</strong>
          </th>
        </tr>
      </thead>

      <tbody>
        <tr>
          <td style={{ verticalAlign: "top" }}>
            qwen4-max

            > [Cache unit price (per million tokens)](/help/zh/model-studio/explicit-cache-qwen4#billing)
          </td>

          <td style={{ verticalAlign: "top" }}>
            Global
          </td>

          <td style={{ verticalAlign: "top" }}>
            Non-thinking and thinking modes
          </td>

          <td style={{ verticalAlign: "top" }}>
            0\<Token≤1M
          </td>

          <td style={{ verticalAlign: "top" }}>
            \$1.413
          </td>

          <td style={{ verticalAlign: "top" }}>
            \$4.24
          </td>
        </tr>

        <tr>
          <td style={{ verticalAlign: "top" }}>
            qwen4-max

            > [Cache unit price (per million tokens)](/help/en/model-studio/explicit-cache-qwen4#billing)
          </td>

          <td style={{ verticalAlign: "top" }}>
            Virginia
          </td>

          <td style={{ verticalAlign: "top" }}>
            Non-thinking and thinking modes
          </td>

          <td style={{ verticalAlign: "top" }}>
            0\<Token≤1M
          </td>

          <td style={{ verticalAlign: "top" }}>
            \$1.5
          </td>

          <td style={{ verticalAlign: "top" }}>
            \$4.5
          </td>
        </tr>
      </tbody>
    </table>
  </Tab>

  <Tab title="Japan (Tokyo)">
    <table style={{ display: "table", tableLayout: "fixed", width: "100%", overflowWrap: "anywhere" }}>
      <colgroup>
        <col style={{ width: "16.74%" }} />

        <col style={{ width: "16.74%" }} />

        <col style={{ width: "16.74%" }} />

        <col style={{ width: "16.74%" }} />

        <col style={{ width: "16.74%" }} />

        <col style={{ width: "16.3%" }} />
      </colgroup>

      <thead>
        <tr>
          <th style={{ verticalAlign: "top" }}>
            <strong>Model ID</strong>
          </th>

          <th style={{ verticalAlign: "top" }}>
            <strong>Service Deployment Scope</strong>
          </th>

          <th style={{ verticalAlign: "top" }}>
            <strong>Pattern</strong>
          </th>

          <th style={{ verticalAlign: "top" }}>
            <strong>Input tokens per request</strong>
          </th>

          <th style={{ verticalAlign: "top" }}>
            <strong>Input unit price (per million tokens)</strong>
          </th>

          <th style={{ verticalAlign: "top" }}>
            <strong>Output unit price (per million tokens)</strong>

            > <strong>Chain-of-thought + response</strong>
          </th>
        </tr>
      </thead>

      <tbody>
        <tr>
          <td style={{ verticalAlign: "top" }}>
            qwen4-max

            > [Cache unit price (per million tokens)](/help/zh/model-studio/explicit-cache-qwen4#billing)
          </td>

          <td style={{ verticalAlign: "top" }}>
            Global
          </td>

          <td style={{ verticalAlign: "top" }}>
            Non-thinking and thinking modes
          </td>

          <td style={{ verticalAlign: "top" }}>
            0\<Token≤1M
          </td>

          <td style={{ verticalAlign: "top" }}>
            \$1.413
          </td>

          <td style={{ verticalAlign: "top" }}>
            \$4.24
          </td>
        </tr>
      </tbody>
    </table>
  </Tab>
</Tabs>

For pricing and free quotas, see [Model Calling billing](/help/zh/model-studio/model-pricing).

## Rate limits

<Tabs>
  <Tab title="Singapore">
    <table style={{ display: "table", tableLayout: "fixed", width: "100%", overflowWrap: "anywhere" }}><colgroup><col style={{ width: "25.00%" }} /><col style={{ width: "25.00%" }} /><col style={{ width: "25.00%" }} /><col style={{ width: "25.00%" }} /></colgroup><thead style={{ verticalAlign: "top" }}><tr><th style={{ verticalAlign: "top" }}><p><strong>Monthly Model Studio spending:</strong></p></th><th style={{ verticalAlign: "top" }}><p><strong>Level 1 (Current) ≤\$8,000</strong></p></th><th style={{ verticalAlign: "top" }}><p><strong>Level 2 \$8,000\~\$140,000</strong></p></th><th style={{ verticalAlign: "top" }}><p><strong>Level 3 >\$140,000</strong></p></th></tr><tr><th style={{ verticalAlign: "top" }}><p><strong>Supported models</strong></p></th><th colSpan={3} style={{ verticalAlign: "top" }}><p><strong>TPM rate limit tiers</strong></p></th></tr></thead><tbody><tr><td style={{ verticalAlign: "top" }}><p><strong>qwen4-max</strong></p></td><td style={{ verticalAlign: "top" }}><p>5,000,000</p></td><td style={{ verticalAlign: "top" }}><p>10,000,000</p></td><td style={{ verticalAlign: "top" }}><p>20,000,000</p></td></tr></tbody></table>
  </Tab>

  <Tab title="China (Beijing)">
    <table style={{ display: "table", tableLayout: "fixed", width: "100%", overflowWrap: "anywhere" }}><colgroup><col style={{ width: "25.00%" }} /><col style={{ width: "25.00%" }} /><col style={{ width: "25.00%" }} /><col style={{ width: "25.00%" }} /></colgroup><thead style={{ verticalAlign: "top" }}><tr><th style={{ verticalAlign: "top" }}><p><strong>Monthly Model Studio spending:</strong></p></th><th style={{ verticalAlign: "top" }}><p><strong>Level 1 (Current) ≤\$8,000</strong></p></th><th style={{ verticalAlign: "top" }}><p><strong>Level 2 \$8,000\~\$140,000</strong></p></th><th style={{ verticalAlign: "top" }}><p><strong>Level 3 >\$140,000</strong></p></th></tr><tr><th style={{ verticalAlign: "top" }}><p><strong>Supported models</strong></p></th><th colSpan={3} style={{ verticalAlign: "top" }}><p><strong>TPM rate limit tiers</strong></p></th></tr></thead><tbody><tr><td style={{ verticalAlign: "top" }}><p><strong>qwen4-max</strong></p></td><td style={{ verticalAlign: "top" }}><p>5,000,000</p></td><td style={{ verticalAlign: "top" }}><p>10,000,000</p></td><td style={{ verticalAlign: "top" }}><p>20,000,000</p></td></tr></tbody></table>
  </Tab>

  <Tab title="United States (Virginia)">
    <table style={{ display: "table", tableLayout: "fixed", width: "100%", overflowWrap: "anywhere" }}>
      <colgroup>
        <col style={{ width: "35%" }} />

        <col style={{ width: "15%" }} />

        <col style={{ width: "25%" }} />

        <col style={{ width: "25%" }} />
      </colgroup>

      <thead>
        <tr>
          <th rowSpan={2} style={{ verticalAlign: "top" }}>
            <strong>Model</strong>
          </th>

          <th rowSpan={2} style={{ verticalAlign: "top" }}>
            <strong>Service Deployment Scope</strong>
          </th>

          <th colSpan={2} style={{ verticalAlign: "top" }}>
            <strong>Rate limit conditions (rate limiting is triggered when any value is exceeded)</strong>

            > <strong>The following are per-minute rate limit conditions; the service may also limit by RPS (RPM/60) and TPS (TPM/60)</strong>
          </th>
        </tr>

        <tr>
          <th style={{ verticalAlign: "top" }}>
            <strong>Requests per minute (RPM)</strong>
          </th>

          <th style={{ verticalAlign: "top" }}>
            <strong>Tokens per minute (TPM)</strong>

            > <strong>Includes input and output tokens</strong>
          </th>
        </tr>
      </thead>

      <tbody>
        <tr>
          <td style={{ verticalAlign: "top" }}>
            qwen4-max
          </td>

          <td style={{ verticalAlign: "top" }}>
            Global
          </td>

          <td style={{ verticalAlign: "top" }}>
            30,000
          </td>

          <td style={{ verticalAlign: "top" }}>
            5,000,000
          </td>
        </tr>

        <tr>
          <td style={{ verticalAlign: "top" }}>
            qwen4-max
          </td>

          <td style={{ verticalAlign: "top" }}>
            Virginia
          </td>

          <td style={{ verticalAlign: "top" }}>
            15,000
          </td>

          <td style={{ verticalAlign: "top" }}>
            3,000,000
          </td>
        </tr>
      </tbody>
    </table>
  </Tab>

  <Tab title="Germany (Frankfurt)">
    <table style={{ display: "table", tableLayout: "fixed", width: "100%", overflowWrap: "anywhere" }}>
      <colgroup>
        <col style={{ width: "35%" }} />

        <col style={{ width: "15%" }} />

        <col style={{ width: "25%" }} />

        <col style={{ width: "25%" }} />
      </colgroup>

      <thead>
        <tr>
          <th rowSpan={2} style={{ verticalAlign: "top" }}>
            <strong>Model</strong>
          </th>

          <th rowSpan={2} style={{ verticalAlign: "top" }}>
            <strong>Service Deployment Scope</strong>
          </th>

          <th colSpan={2} style={{ verticalAlign: "top" }}>
            <strong>Rate limit conditions (rate limiting is triggered when any value is exceeded)</strong>

            > <strong>The following are per-minute rate limit conditions; the service may also limit by RPS (RPM/60) and TPS (TPM/60)</strong>
          </th>
        </tr>

        <tr>
          <th style={{ verticalAlign: "top" }}>
            <strong>Requests per minute (RPM)</strong>
          </th>

          <th style={{ verticalAlign: "top" }}>
            <strong>Tokens per minute (TPM)</strong>

            > <strong>Includes input and output tokens</strong>
          </th>
        </tr>
      </thead>

      <tbody>
        <tr>
          <td style={{ verticalAlign: "top" }}>
            qwen4-max
          </td>

          <td style={{ verticalAlign: "top" }}>
            Global
          </td>

          <td style={{ verticalAlign: "top" }}>
            30,000
          </td>

          <td style={{ verticalAlign: "top" }}>
            5,000,000
          </td>
        </tr>
      </tbody>
    </table>
  </Tab>

  <Tab title="Hong Kong (China)">
    <table style={{ display: "table", tableLayout: "fixed", width: "100%", overflowWrap: "anywhere" }}>
      <colgroup>
        <col style={{ width: "35%" }} />

        <col style={{ width: "15%" }} />

        <col style={{ width: "25%" }} />

        <col style={{ width: "25%" }} />
      </colgroup>

      <thead>
        <tr>
          <th rowSpan={2} style={{ verticalAlign: "top" }}>
            <strong>Model</strong>
          </th>

          <th rowSpan={2} style={{ verticalAlign: "top" }}>
            <strong>Service Deployment Scope</strong>
          </th>

          <th colSpan={2} style={{ verticalAlign: "top" }}>
            <strong>Rate limit conditions (rate limiting is triggered when any value is exceeded)</strong>

            > <strong>The following are per-minute rate limit conditions; the service may also limit by RPS (RPM/60) and TPS (TPM/60)</strong>
          </th>
        </tr>

        <tr>
          <th style={{ verticalAlign: "top" }}>
            <strong>Requests per minute (RPM)</strong>
          </th>

          <th style={{ verticalAlign: "top" }}>
            <strong>Tokens per minute (TPM)</strong>

            > <strong>Includes input and output tokens</strong>
          </th>
        </tr>
      </thead>

      <tbody>
        <tr>
          <td style={{ verticalAlign: "top" }}>
            qwen4-max
          </td>

          <td style={{ verticalAlign: "top" }}>
            Global
          </td>

          <td style={{ verticalAlign: "top" }}>
            30,000
          </td>

          <td style={{ verticalAlign: "top" }}>
            5,000,000
          </td>
        </tr>
      </tbody>
    </table>
  </Tab>

  <Tab title="Japan (Tokyo)">
    <table style={{ display: "table", tableLayout: "fixed", width: "100%", overflowWrap: "anywhere" }}>
      <colgroup>
        <col style={{ width: "35%" }} />

        <col style={{ width: "15%" }} />

        <col style={{ width: "25%" }} />

        <col style={{ width: "25%" }} />
      </colgroup>

      <thead>
        <tr>
          <th rowSpan={2} style={{ verticalAlign: "top" }}>
            <strong>Model</strong>
          </th>

          <th rowSpan={2} style={{ verticalAlign: "top" }}>
            <strong>Service Deployment Scope</strong>
          </th>

          <th colSpan={2} style={{ verticalAlign: "top" }}>
            <strong>Rate limit conditions (rate limiting is triggered when any value is exceeded)</strong>

            > <strong>The following are per-minute rate limit conditions; the service may also limit by RPS (RPM/60) and TPS (TPM/60)</strong>
          </th>
        </tr>

        <tr>
          <th style={{ verticalAlign: "top" }}>
            <strong>Requests per minute (RPM)</strong>
          </th>

          <th style={{ verticalAlign: "top" }}>
            <strong>Tokens per minute (TPM)</strong>

            > <strong>Includes input and output tokens</strong>
          </th>
        </tr>
      </thead>

      <tbody>
        <tr>
          <td style={{ verticalAlign: "top" }}>
            qwen4-max
          </td>

          <td style={{ verticalAlign: "top" }}>
            Global
          </td>

          <td style={{ verticalAlign: "top" }}>
            30,000
          </td>

          <td style={{ verticalAlign: "top" }}>
            5,000,000
          </td>
        </tr>
      </tbody>
    </table>
  </Tab>
</Tabs>

For rate limit values and AutoTPM tiers, see [Rate limits](/help/zh/model-studio/rate-limit).

## Call Method

- [OpenAI Chat Completions](/help/zh/model-studio/qwen-api-via-openai-chat-completions)
- [OpenAI Responses](/help/zh/model-studio/qwen-api-via-openai-responses)
- [Anthropic Messages](/help/zh/model-studio/anthropic-api-messages)
- [DashScope](/help/zh/model-studio/qwen-api-via-dashscope)
- [Model Capabilities](/help/zh/model-studio/text-generation-model)
- [CoT Summary](/help/zh/model-studio/cot-summary)
- [Prompt Cache](/help/zh/model-studio/explicit-cache-qwen4)

## Usage Instructions

### Explicit Cache

Reuse common input prefixes such as system prompts, tool descriptions, and reference documents to reduce the cost of repeated input. Supported with OpenAI Chat Completions, Responses, and Anthropic Messages, with TTL options of `5m` and `1h`. For configuration and billing, see [Explicit Cache](/help/zh/model-studio/explicit-cache-qwen4).

### Chain-of-thought summary and encryption

Returns a chain-of-thought summary and ciphertext: the summary is for display, and the ciphertext is used to restore historical reasoning in subsequent turns. In multi-turn conversations, the historical ciphertext must be passed back as-is. For how to enable it in each protocol, streaming responses, and complete examples, see [Chain-of-thought summary and encryption](/help/zh/model-studio/cot-summary).