Skip to main content
POST
Create video

Autorisations

Authorization
string
header
requis

Authenticate with a Bearer Token. Format: Authorization: Bearer sk-xxxxxx

Corps

multipart/form-data
model
string

Model name

Exemple:

"sora-2"

prompt
string

Prompt

Exemple:

"cute cat dance"

seconds
string

Generated duration in seconds

Exemple:

"8"

input_reference
file

Reference image file

Réponse

Video task created successfully

id
string
requis

Video ID

object
string
requis

Object type

model
string
requis

Model used

status
string
requis

Task status

progress
integer
requis

Progress percentage

created_at
integer
requis

Creation timestamp

seconds
string
requis

Video duration

completed_at
integer

Completion timestamp

expires_at
integer

Expiration timestamp

size
string

Video size

error
object

OpenAI video error information

metadata
object

Additional metadata