| パラメータ | タイプ | デフォルト値 | 説明 |
|---|---|---|---|
| n | 整数 | 1 | 出力画像数。qwen-image-edit-plus:1–6をサポート |
| negative_prompt | string | — | 逆プロンプトで、出現して欲しくない内容を記述します • 英語と中国語に対応、≤500文字 • 例: 低品質, ぼやけた, 余分な指, 欠損, 誤った比率 |
| prompt_extend | boolean | true | インテリジェントプロンプト最適化を有効にするかどうか • 有効にすると、簡単な説明を自動的に強 化し、生成品質を向上させます • qwen-image-edit-plus シリーズのみサポート |
| watermark | ブール値 | false | 画像の右下に "Qwen-Image" ウォーターマークを追加するかどうか |
| size | string | — | カスタム出力解像度。形式:"幅*高さ" • 範囲: 512–2048 ピクセル • 例: "1024*1536" • 指定しない場合、入力画像(複数画像の場合は最後の画像)のアスペクト比を維持する |
| seed | integer | ランダム | 乱数シード、範囲 [0, 2147483647]• 同じ seed を使用すると結果の一貫性が向上します(ただし、完全に同じであることは保証されません) |
{
"model": "qwen-image-edit-plus-2025-12-15",
"input": {
"messages": [
{
"role": "user",
"content": [
{
"image": "https://help-static-aliyun-doc.aliyuncs.com/file-manage-files/zh-CN/20250925/thtclx/input1.png"
},
{
"image": "https://help-static-aliyun-doc.aliyuncs.com/file-manage-files/zh-CN/20250925/iclsnx/input2.png"
},
{
"image": "https://help-static-aliyun-doc.aliyuncs.com/file-manage-files/zh-CN/20250925/gborgw/input3.png"
},
{
"text": "図 1 の少女は、図 2 に示す黒いドレスを着て、図 3 に示す姿勢で座っています。"
}
]
}
]
},
"parameters": {
"n": 2,
"size": "1024*2048",
"negative_prompt": "低品質",
"prompt_extend": true,
"watermark": false
}
}curl --location --request POST 'https://api.302.ai/aliyun/api/v1/services/aigc/multimodal-generation/generation' \
--header 'Authorization: Bearer ' \
--header 'Content-Type: application/json' \
--data-raw '{
"model": "qwen-image-edit-plus-2025-12-15",
"input": {
"messages": [
{
"role": "user",
"content": [
{
"image": "https://help-static-aliyun-doc.aliyuncs.com/file-manage-files/zh-CN/20250925/thtclx/input1.png"
},
{
"image": "https://help-static-aliyun-doc.aliyuncs.com/file-manage-files/zh-CN/20250925/iclsnx/input2.png"
},
{
"image": "https://help-static-aliyun-doc.aliyuncs.com/file-manage-files/zh-CN/20250925/gborgw/input3.png"
},
{
"text": "図 1 の少女は、図 2 に示す黒いドレスを着て、図 3 に示す姿勢で座っています。"
}
]
}
]
},
"parameters": {
"n": 2,
"size": "1024*2048",
"negative_prompt": "低品質",
"prompt_extend": true,
"watermark": false
}
}'{
"output": {
"choices": [
{
"finish_reason": "stop",
"message": {
"role": "assistant",
"content": [
{
"image": "https://file.302.ai/gpt/imgs/20250821/b7a6dce523e947859f0d1cc3c985f099.png"
}
]
}
}
]
},
"usage": {
"width": 1248,
"image_count": 1,
"height": 832
},
"request_id": "83c1cd46-35aa-9c2a-9e41-ac788b8fcfdc"
}