> ## 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 Plus

> Qwen Image Plus：根据文字生成图片。请用 `input.prompt`，不要用 `input.messages`。

根据文字生成图片。请用 `input.prompt`，不要用 `input.messages`。

`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-plus",
  "input": {
    "prompt": "A red ceramic mug on a white table."
  },
  "parameters": {
    "size": "1024*1024",
    "n": 1
  }
}'
```

当 `output.task_status` 为 `SUCCEEDED` 时，从 `output.results[].url` 读取图片地址。

## 参数和限制

| 字段 | 说明 |
| - | - |
| `model` | `qwen-image-plus`. 填写示例中的完整模型 ID。 |
| `input.prompt` | 描述要生成的图片。 |
| `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.