{
"id": "task_example",
"object": "video",
"model": "YOUR_MODEL_ID",
"status": "queued",
"progress": 0,
"created_at": 1700000000
}Create video task
Request format, responses, and capability boundaries.
{
"id": "task_example",
"object": "video",
"model": "YOUR_MODEL_ID",
"status": "queued",
"progress": 0,
"created_at": 1700000000
}POST /v1/videos
Provide model and prompt, plus supported seconds, size, or a reference image. The executing plugin interprets JSON/multipart. Upload files through multipart input_reference.
The current host returns HTTP 200 and a public task id, not necessarily a completed result. Save the ID and query status; never POST again as part of polling. A retained protocol does not prove upstream availability, particularly for the discontinued OpenAI Sora service.
Integration guide and runnable example
简体中文Authorizations
模型调用 API Key,不是控制台登录凭据 / Model API key, not console login credentials
Body
当前密钥可用且支持此接口的模型 ID / Model ID available to the key and supporting this endpoint
"YOUR_MODEL_ID"
任务描述;遵循模型的长度和内容要求 / Task description; follow model length and content requirements
请求时长,单位秒;使用插件和模型允许的值,不以宿主安全上限作为模型能力 / Duration in seconds; use plugin/model values, not the host safety ceiling
"4"
模型支持的宽x高 / Model-supported widthxheight
"1280x720"
可选参考图片文件,格式与尺寸需模型支持 / Optional reference image file; format and dimensions must be supported
Response
接受任务,不代表生成完成 / Task accepted, not necessarily completed
网关公开任务 ID,后续查询/下载使用此值 / Public gateway task ID; use for retrieval/download
"task_example"
"video"
当前密钥可用且支持此接口的模型 ID / Model ID available to the key and supporting this endpoint
"YOUR_MODEL_ID"
以状态判断完成;unknown 必须单独处理 / Determine completion from status; handle unknown separately
queued, in_progress, completed, failed, unknown 进度提示,不等同于完成保证 / Progress hint, not proof of completion
Unix 秒 / Unix seconds
完成时间,可省略 / Completion timestamp; may be omitted
渠道可能提供的过期时间 / Optional expiry from channel
Show child attributes
Show child attributes