> ## 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` | 1 件の `user` メッセージにテキストブロックを 1 つ指定します。 |
| `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.