{
"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
}
}
curl --location --request POST 'https://api.302.ai/aliyun/api/v1/services/aigc/multimodal-generation/generation' \
--header 'Authorization: Bearer sk-jls4AaVBGoe1GwZD64qZA1qyKTN1MPHa4NmvH1cT68z7K1Zz' \
--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
}
}'
{
"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"
}