Submit a text/image-to-video task, deduct credits, and return taskId.
Request
Authorization
JWT Bearer
Add the parameter
Authorization
to Headers
Example:
Authorization: ********************
or
Body Params application/jsonRequired
Examples
{"model":"sora-2","prompt":"A cinematic shot of a futuristic city at sunset, captured in 4K.","aspectRatio":"9:16"}
Request Code Samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
cURL
curl--location--request POST '/api/v1/video/sora-video' \
--header'Authorization: Bearer <token>' \
--header'Content-Type: application/json' \
--data-raw'{
"model": "sora-2",
"prompt": "A cinematic shot of a futuristic city at sunset, captured in 4K.",
"aspectRatio": "9:16"
}'
Responses
🟢200
application/json
Always returns HTTP 200 with code indicating success or failure.