> ## 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.messages` ではなく `input.prompt` を使います。

テキストから画像を生成します。`input.messages` ではなく `input.prompt` を使います。

`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 回のリクエストでは `1` のみ指定できます。 |

## API リファレンス

* [Qwen 画像生成](https://mixroute.ai/docs/ja/api-reference/endpoint/qwen-image.md)


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