Create a video edit
POST/videos/edits
Create a new video generation job by editing a source video or existing generated video.
Create a video edit
curl https://api.openai.com/v1/videos/edits \
-H 'Content-Type: application/json' \
-H "Authorization: Bearer $OPENAI_API_KEY" \
-d '{
"prompt": "x",
"video": {
"id": "video_123"
}
}'{
"id": "id",
"completed_at": 0,
"created_at": 0,
"error": {
"code": "code",
"message": "message",
"misalignment": {
"detailed_explanation": "detailed_explanation",
"error_type": "potentially_unintended_data_transfer",
"steer": {
"message": "message"
}
}
},
"expires_at": 0,
"model": "sora-2",
"object": "video",
"progress": 0,
"prompt": "prompt",
"remixed_from_video_id": "remixed_from_video_id",
"seconds": "string",
"size": "720x1280",
"status": "queued"
}Returns Examples
{
"id": "id",
"completed_at": 0,
"created_at": 0,
"error": {
"code": "code",
"message": "message",
"misalignment": {
"detailed_explanation": "detailed_explanation",
"error_type": "potentially_unintended_data_transfer",
"steer": {
"message": "message"
}
}
},
"expires_at": 0,
"model": "sora-2",
"object": "video",
"progress": 0,
"prompt": "prompt",
"remixed_from_video_id": "remixed_from_video_id",
"seconds": "string",
"size": "720x1280",
"status": "queued"
}