Skip to main content
POST
Create video

Авторизации

Authorization
string
header
обязательно

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

Тело

multipart/form-data
model
string

Model name

Пример:

"sora-2"

prompt
string

Prompt

Пример:

"cute cat dance"

seconds
string

Generated duration in seconds

Пример:

"8"

input_reference
file

Reference image file

Ответ

Video task created successfully

id
string
обязательно

Video ID

object
string
обязательно

Object type

model
string
обязательно

Model used

status
string
обязательно

Task status

progress
integer
обязательно

Progress percentage

created_at
integer
обязательно

Creation timestamp

seconds
string
обязательно

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