curl --request POST \
--url https://api.dreamto.ai/api/v1/services/aigc/multimodal-generation/generation \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "qwen-image-3.0-pro",
"input": {
"messages": [
{
"role": "user",
"content": [
{
"text": "一只橘猫坐在洒满阳光的木质窗台上,窗外是雨后的城市街景,玻璃上挂着水珠,柔和的自然光,写实摄影风格"
}
]
}
]
},
"parameters": {
"size": "1328*1328",
"n": 1,
"prompt_extend": true,
"watermark": false
}
}
'{
"request_id": "req_7c1e9a4b2d3f5a6b8c9d0e1f",
"output": {
"choices": [
{
"finish_reason": "stop",
"message": {
"role": "assistant",
"content": [
{
"type": "image",
"image": "https://dashscope-463f.oss-accelerate.aliyuncs.com/1d/bd/20261117/2299ae9b/qwen_image3_serving_output_0.png?Expires=1794997226&Signature=..."
}
]
}
}
],
"rewrite_status": "not_use"
},
"usage": {
"output_width": 1024,
"output_height": 1024,
"input_image_count": 0,
"input_image_type": "qima_input_1k",
"output_image_count": 1,
"output_image_type": "qima_output_1k"
}
}Qwen-Image 3.0 Pro
生成图片
Qwen-Image 图像生成与编辑(阿里云百炼 DashScope 协议)。input.messages 中的唯一一条消息只含 1 条 text 时为文生图;再加 1 ~ 3 张 image 时为图生图 / 图片编辑。请求是同步的,阻塞到出图完成后在 output.choices[0].message.content 中返回图片链接(PNG,24 小时内有效)。
POST
/
api
/
v1
/
services
/
aigc
/
multimodal-generation
/
generation
curl --request POST \
--url https://api.dreamto.ai/api/v1/services/aigc/multimodal-generation/generation \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "qwen-image-3.0-pro",
"input": {
"messages": [
{
"role": "user",
"content": [
{
"text": "一只橘猫坐在洒满阳光的木质窗台上,窗外是雨后的城市街景,玻璃上挂着水珠,柔和的自然光,写实摄影风格"
}
]
}
]
},
"parameters": {
"size": "1328*1328",
"n": 1,
"prompt_extend": true,
"watermark": false
}
}
'{
"request_id": "req_7c1e9a4b2d3f5a6b8c9d0e1f",
"output": {
"choices": [
{
"finish_reason": "stop",
"message": {
"role": "assistant",
"content": [
{
"type": "image",
"image": "https://dashscope-463f.oss-accelerate.aliyuncs.com/1d/bd/20261117/2299ae9b/qwen_image3_serving_output_0.png?Expires=1794997226&Signature=..."
}
]
}
}
],
"rewrite_status": "not_use"
},
"usage": {
"output_width": 1024,
"output_height": 1024,
"input_image_count": 0,
"input_image_type": "qima_input_1k",
"output_image_count": 1,
"output_image_type": "qima_output_1k"
}
}请求体
application/json

