Skip to main content
POST
OpenAI SDK — videos.create (async)

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
model
string
required
Example:

"sora-2"

prompt
string
required
seconds
string
Example:

"8"

size
string
Example:

"1280x720"

Response

OpenAI Video job (status=queued)

id
string
Example:

"ms-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"

object
string
Example:

"video"

model
string
status
enum<string>
Available options:
queued,
processing,
completed,
failed
progress
integer | null
created_at
integer