{
"contentType": "application/json",
"properties": {
"img_ids": {
"description": "通过上传接口获取的img_id, 最多支持3个",
"items": {
"type": "integer"
},
"type": "array",
"x-i18n": {
"en-US": {
"description": "The img_id obtained through the upload interface supports up to 3"
}
}
},
"keyframe_ids": {
"description": "指定使用视频中的哪一帧进行替换(编辑)",
"type": "integer",
"x-i18n": {
"en-US": {
"description": "Specify which frame in the video to use for replacement (editing)"
}
}
},
"mask_ids": {
"description": "通过swap-mask接口获取的mask_id, 最多支持3个",
"items": {
"type": "string"
},
"type": "array",
"x-i18n": {
"en-US": {
"description": "The mask_id obtained through the swap-mask interface supports up to 3"
}
}
},
"prompt": {
"description": "如果 Prompt 中使用了 mask,请使用 @selection0、@selection1;如果使用参考图片,请使用 @img0、@img1\n, 支持 5000字符",
"type": "string",
"x-i18n": {
"en-US": {
"description": "If a mask is used in the prompt, please use @selection0, @selection1; if a reference image is used, please use @img0, @img1\n, supports 5000 characters"
}
}
},
"quality": {
"description": "\"360p\",\"540p\",\"720p\"",
"type": "string"
},
"source_video_id": {
"description": "通过拍我AI 生成的视频video_id,必传source_video_id 或 video_media_id\n",
"type": "string",
"x-i18n": {
"en-US": {
"description": "The video_id generated by Paiwo AI must be passed in source_video_id or video_media_id"
}
}
},
"video_media_id": {
"description": "通过接口上传的视频 media_id,必传source_video_id 或 video_media_id",
"type": "integer",
"x-i18n": {
"en-US": {
"description": "For videos uploaded through the interface media_id, source_video_id or video_media_id must be passed"
}
}
}
},
"required": [
"prompt",
"quality",
"source_video_id"
]
}