Skip to Content

视频生成

通过统一任务接口提交,URL 路径第三段 {task}text-to-video

curl http://YOUR_HOST:8000/api/v3/{vendor}/{model}/text-to-video \ -H "Authorization: Bearer wk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" \ -H "Content-Type: application/json" \ -d '{ "prompt": "a cat walking", "duration": 5 }'

视频生成耗时较长,接口统一异步,提交后请轮询结果,见 任务轮询