curl --request POST \
--url https://kaienapi.com/jimeng/ \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "jimeng_vgfm_t2v_l20",
"prompt": "一段产品展示视频,镜头缓慢推进",
"duration": 5
}
'{}{
"error": {
"message": "<string>",
"type": "<string>",
"code": "<string>"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"code": "<string>"
}
}即梦视频生成入口,提交文生视频或图生视频任务。
请求格式
使用 application/json。常见字段包括 model、prompt、duration、image、ratio 等,具体字段以模型说明为准。
任务状态
- 提交任务并保存返回的任务 ID。
- 使用对应查询接口轮询任务状态。
- 完成后读取视频 URL 或文件信息。
结果保存
图生视频优先传公网可访问的参考图 URL。结果需要长期保存时,在任务完成后转存到对象存储。
POST
/
jimeng
/
curl --request POST \
--url https://kaienapi.com/jimeng/ \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "jimeng_vgfm_t2v_l20",
"prompt": "一段产品展示视频,镜头缓慢推进",
"duration": 5
}
'{}{
"error": {
"message": "<string>",
"type": "<string>",
"code": "<string>"
}
}{
"error": {
"message": "<string>",
"type": "<string>",
"code": "<string>"
}
}Authorizations
在请求头中传入:Authorization: Bearer sk-...
Body
application/json
Response
成功响应
The response is of type object.