Skip to main content
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

Authorization
string
header
required

模型调用 API Key,不是控制台登录凭据 / Model API key, not console login credentials

Body

model
string
required

当前密钥可用且支持此接口的模型 ID / Model ID available to the key and supporting this endpoint

Example:

"YOUR_MODEL_ID"

prompt
string
required

任务描述;遵循模型的长度和内容要求 / Task description; follow model length and content requirements

seconds
string

请求时长,单位秒;使用插件和模型允许的值,不以宿主安全上限作为模型能力 / Duration in seconds; use plugin/model values, not the host safety ceiling

Example:

"4"

size
string

模型支持的宽x高 / Model-supported widthxheight

Example:

"1280x720"

input_reference
file

可选参考图片文件,格式与尺寸需模型支持 / Optional reference image file; format and dimensions must be supported

Response

接受任务,不代表生成完成 / Task accepted, not necessarily completed

id
string
required

网关公开任务 ID,后续查询/下载使用此值 / Public gateway task ID; use for retrieval/download

Example:

"task_example"

object
string
required
Example:

"video"

model
string
required

当前密钥可用且支持此接口的模型 ID / Model ID available to the key and supporting this endpoint

Example:

"YOUR_MODEL_ID"

status
enum<string>
required

以状态判断完成;unknown 必须单独处理 / Determine completion from status; handle unknown separately

Available options:
queued,
in_progress,
completed,
failed,
unknown
progress
integer
required

进度提示,不等同于完成保证 / Progress hint, not proof of completion

created_at
integer
required

Unix 秒 / Unix seconds

completed_at
integer

完成时间,可省略 / Completion timestamp; may be omitted

expires_at
integer

渠道可能提供的过期时间 / Optional expiry from channel

seconds
string
size
string
error
object
metadata
object