Sequentially Edit Generated Video
POST
/v1/chat/completions
- Sequentially edit an already generated Sora video via the Chat Completions streaming API
- Keep the previous assistant turn (generation progress/result) in
messages, then append a new user edit instruction - Set
stream: truein the request body - Official docs: Chat Completions
Authorizations
bearer
Type
HTTP (bearer)
Request Body
application/json
model
string
Required
Sora model variant
Valid values
"sora-2""sora-2-pro"messages
object[]
Required
Multi-turn chat; assistant messages should retain the previous video generation status and result
Expand
stream
boolean
Required
Must be true for SSE streaming of generation progress
Responses
SSE stream response
text/event-stream
object