> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mixroute.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Qwen3.7-Max

> Qwen3.7-Max: general-purpose language model. Request examples and parameters for MixRoute.

Qwen3.7-Max is a general-purpose language model from Alibaba.

Call `qwen3.7-max` through MixRoute using the endpoint shown below.

## Key capabilities

* OpenAI-compatible - Works with the OpenAI SDK by changing base\_url
* Streaming - Real-time token output through SSE
* Multi-turn conversations - Uses role-based messages

## Quick example

<Tabs>
  <Tab title="cURL">
    ```bash theme={null}
    curl "https://api.mixroute.ai/v1/chat/completions" \
      -H "Authorization: Bearer YOUR_API_KEY" \
      -H "Content-Type: application/json" \
      -d '{
      "model": "qwen3.7-max",
      "messages": [
        {
          "role": "user",
          "content": "Explain quantum entanglement in simple terms."
        }
      ],
      "max_tokens": 256
    }'
    ```
  </Tab>

  <Tab title="Python">
    ```python theme={null}
    from openai import OpenAI

    client = OpenAI(api_key="YOUR_API_KEY", base_url="https://api.mixroute.ai/v1")

    response = client.chat.completions.create(
        model="qwen3.7-max",
        messages=[{"role": "user", "content": "Explain quantum entanglement in simple terms."}],
        max_tokens=256,
    )

    print(response.choices[0].message.content)
    ```
  </Tab>

  <Tab title="Streaming">
    ```python theme={null}
    from openai import OpenAI

    client = OpenAI(api_key="YOUR_API_KEY", base_url="https://api.mixroute.ai/v1")

    stream = client.chat.completions.create(
        model="qwen3.7-max",
        messages=[{"role": "user", "content": "Write a short poem about the sea."}],
        max_tokens=256,
        stream=True,
    )

    for chunk in stream:
        print(chunk.choices[0].delta.content or "", end="")
    ```
  </Tab>
</Tabs>

## Parameters

| Parameter     | Type            | Required | Description                                       |
| ------------- | --------------- | -------- | ------------------------------------------------- |
| `model`       | string          | Yes      | Must be `qwen3.7-max`.                            |
| `messages`    | array           | Yes      | Conversation messages with role and content.      |
| `max_tokens`  | integer         | No       | Maximum generated tokens.                         |
| `stream`      | boolean         | No       | Enable SSE streaming. Default: false.             |
| `temperature` | number          | No       | Sampling temperature when supported by the model. |
| `top_p`       | number          | No       | Nucleus sampling threshold when supported.        |
| `stop`        | string \| array | No       | Sequences that stop generation.                   |
| `tools`       | array           | No       | OpenAI-compatible tool definitions.               |
