> ## 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-Hans/api-reference/endpoint/qwen-image.md)


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