| 模型名称 | 说明 | 适用场景 |
|---|---|---|
| wan2.7-image-pro | 高级版模型 | 需要更高质量图像生成的场景 |
| wan2.7-image | 标准版模型 | 标准质量图像生成,性价比更高 |
| 尺寸 | 说明 | 宽高比 |
|---|---|---|
| 512*512 | 小尺寸正方形 | 1:1 |
| 720*1280 | 竖屏 | 9:16 |
| 1024*1024 | 标准正方形(默认) | 1:1 |
| 1280*720 | 横屏 | 16:9 |
| 2048*2048 | 高清正方形 | 1:1 |
{
"model": "wan2.7-image-pro",
"input": {
"messages": [
{
"role": "user",
"content": [
{
"text": "一间有着精致窗户的花店,漂亮的木质门,摆放着花朵"
}
]
}
]
},
"parameters": {
"size": "2K",
"n": 1,
"watermark": false,
"thinking_mode": true
}
}curl --location --request POST 'https://api.302.ai/aliyun/api/v1/services/aigc/multimodal-generation/generation' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"model": "wan2.7-image-pro",
"input": {
"messages": [
{
"role": "user",
"content": [
{
"text": "一间有着精致窗户的花店,漂亮的木质门,摆放着花朵"
}
]
}
]
},
"parameters": {
"size": "2K",
"n": 1,
"watermark": false,
"thinking_mode": true
}
}'{
"output": {
"choices": [
{
"message": {
"role": "string",
"content": [
{
"image": "string"
}
]
}
}
]
},
"usage": {
"image_count": 0
},
"request_id": "string"
}