图像生成视频(创建任务)
POST/api/v5/video/generate
调用此接口创建视频生成任务,如果没有异常返回,可根据 requestId 进行异步视频结果查询。
Request
Header Parameters
Authorization stringrequired
用户个人令牌
- application/json
Body
img_urlstringrequired
支持输入 Base64 或图片 URL
Example:
https://cdn-static.gitcode.com/_nuxtaihub/chatexample_67.pngmodelstringrequired
模型名称
Example:
Wan2.2-I2V-A14Bpromptstringrequired
提示词
Example:
小猫在散步seedint64
随机种子,范围 0-2147483648
Default value:
0Example:
0Responses
- 200
Response Headers
- application/json
- Schema
- Example (auto)
Schema
request_idstring
请求ID
statusstring
处理状态
Example:
runningerror_messagestring
错误信息(仅异常时出现)
{
"request_id": "string",
"status": "running",
"error_message": "string"
}