使用 Qwen wan-2.5-preview 模型编辑和转换图片
POST /api/v3/alibaba/wan-2.5-preview/image-edit{
"data": {
"id": "abc123def456",
"model": "alibaba/wan-2.5-preview/image-edit",
"outputs": [],
"urls": {
"get": "https://surgeai.one/api/v3/predictions/abc123def456/result"
},
"status": "created",
"createdAt": "2025-12-01T10:00:00.000Z",
"error": "",
"executionTime": 0
},
"message": "success",
"code": 200
}| 参数 | 类型 | 必填 | 默认值 | 描述 |
|---|---|---|---|---|
prompt | string | 是 | - | 期望的图片转换或编辑指令的文本描述 |
images | array | 是 | - | 要编辑的图片 URL 数组。支持单个或多个输入图片 |
size | string | 否 | - | 输出图片的尺寸,单位为像素(宽高),例如 "12801786" |
seed | integer | 否 | -1 | 用于生成可重现性的随机种子。设置为 -1 表示随机生成 |
| 错误码 | 错误名称 | 描述 |
|---|---|---|
| 401 | Invalid signature | API 密钥缺失或无效 |
| 403 | Insufficient balance | 账户余额不足 |
| 500 | Internal server error | 服务器内部错误 |
| 503 | Content policy violation | 内容因安全原因被阻止 |