Qwen-Image-Edit(Alibaba Cloud配置)
通義千問-画像編集モデル(Qwen-Image-Edit)は、正確な中英バイリンガル文字編集、色調補正、ディテール強化、スタイル転送、物体の追加・削除、位置や動作の変更などの操作をサポートし、複雑な画像とテキストの編集を実現します。
Request
Body Params application/json
{
"model": "qwen-image-edit",
"input": {
"messages": [
{
"role": "user",
"content": [
{
"image": "https://dashscope.oss-cn-beijing.aliyuncs.com/images/dog_and_girl.jpeg"
},
{
"text": "将图中的人物改为站立姿势,弯腰握住狗的前爪"
}
]
}
]
},
"parameters": {
"negative_prompt": "",
"watermark": false
}
}
Request Code Samples
curl --location --request POST 'https://api.302.ai/aliyun/api/v1/services/aigc/multimodal-generation/generation' \
--header 'Authorization: Bearer sk-mfYQzy0XTFfz4P16vRE4gFrKK1Nly4TozsMqbbb9PSiJUvFO' \
--header 'Content-Type: application/json' \
--data-raw '{
"model": "qwen-image-edit",
"input": {
"messages": [
{
"role": "user",
"content": [
{
"image": "https://dashscope.oss-cn-beijing.aliyuncs.com/images/dog_and_girl.jpeg"
},
{
"text": "将图中的人物改为站立姿势,弯腰握住狗的前爪"
}
]
}
]
},
"parameters": {
"negative_prompt": "",
"watermark": false
}
}'
Responses
application/json {
"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"
}
Modified at 2025-08-26 02:17:43