Submission parameters
Body parametersapplication/json
modelstringRequiredExample:
your-video-edit-model-idvideoobjectRequiredExample:
{"url":"https://cdn.example.com/source.mp4"}promptstringOptionalExample:
Remove all hard-coded subtitlesEdit jobs return an OpenAI Video object with queued, in_progress, completed, or failed status. Poll GET /v1/videos/{id} and download with GET /v1/videos/{id}/content.
Query a task
GET
/v1/videos/{id}Returns submitted, running, succeeded, or failed. Successful results include urls and duration_sec. Terminal results are cached, so repeated queries do not call the upstream again.
Request and response bodies
Use the examples below to verify the request and response structures. To send a request, select Debug at the top of the page.
Subtitle removal · 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