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

# Qwen Image Max

> Qwen Image Max：使用 Qwen 多模態格式送出文字生成圖片請求。此路由只接受文字區塊，不接受參考圖。

使用 Qwen 多模態格式送出文字生成圖片請求。此路由只接受文字區塊，不接受參考圖。

`POST /v1/images/generations`

## 快速範例

執行前請設定 `MIXROUTE_API_KEY`。

```bash theme={null}
curl --request POST 'https://api.mixroute.ai/v1/images/generations' \
  --header "Authorization: Bearer $MIXROUTE_API_KEY" \
  --header 'Content-Type: application/json' \
  --data '{
  "model": "qwen-image-max",
  "input": {
    "messages": [
      {
        "role": "user",
        "content": [
          {
            "text": "A red ceramic mug on a white table."
          }
        ]
      }
    ]
  },
  "parameters": {
    "size": "1024*1024",
    "n": 1
  }
}'
```

從 `output.choices[].message.content[].image` 取得圖片。

## 參數與限制

| 欄位 | 說明 |
| - | - |
| `model` | `qwen-image-max`. 請填寫範例中的完整模型 ID。 |
| `input.messages[].content[].text` | 在一則 `user` 訊息中放入一個文字區塊。 |
| `parameters.size` | 使用 `寬度*高度`，例如 `1024*1024`。 |
| `parameters.n` | 每次請求只支援 `1`。 |

## API 參考

* [Qwen 圖片生成](https://mixroute.ai/docs/zh-Hant/api-reference/endpoint/qwen-image.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.