提交参数
Body 参数application/json
modelstring必填示例:
your-video-edit-model-idvideoobject必填示例:
{"url":"https://cdn.example.com/source.mp4"}promptstring可选示例:
Remove all hard-coded subtitles编辑任务返回 OpenAI Video 对象,状态使用 queued、in_progress、completed、failed;统一通过 GET /v1/videos/{id} 查询、GET /v1/videos/{id}/content 下载。
查询任务
GET
/v1/videos/{id}返回 submitted、running、succeeded 或 failed 状态。成功时包含 urls 和 duration_sec。终态结果会缓存,重复查询不会再次请求上游。
请求与响应体
用下面的示例确认请求格式与返回结构。需要在线发起请求时,点击页面顶部“调试”拉起在线运行面板。
擦字幕 · OpenAI Videos Edits
# Subtitle removal
curl https://zerofa.ai/v1/videos/edits \
-H "Authorization: Bearer sk-zerofa-xxx" \
-H "Content-Type: application/json" \
-d '{
"model": "your-video-edit-model-id",
"video": {"url": "https://cdn.example.com/source.mp4"},
"prompt": "Remove all hard-coded subtitles"
}'
# Poll and download the result
curl https://zerofa.ai/v1/videos/<video-edit-id> \
-H "Authorization: Bearer sk-zerofa-xxx"
curl -L https://zerofa.ai/v1/videos/<video-edit-id>/content \
-H "Authorization: Bearer sk-zerofa-xxx" -o result.mp4