Create a video generation task, supporting text-to-video and image-to-video. After submission, a task ID will be returned. You need to use the query interface to poll the task status and retrieve the generated video. Supports more resolutions Portrait: 720x1280 Landscape: 1280x720 Portrait: 1024x1792 Landscape: 1792x1024
Request
Authorization
API Key
Add parameter in header
Authorization
Example:
Authorization: ********************
or
Body Params application/jsonRequired
Examples
{"model":"sora-2-pro","prompt":"A cute orange cat chasing butterflies in a sunny garden, photographic style, high definition","seconds":"4","size":"1280x720"}
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'https://api-xmodel.nexconn.ai/v1/videos' \
--header'Authorization: <api-key>' \
--header'Content-Type: application/json' \
--data'{
"model": "sora-2-pro",
"prompt": "A cute orange cat chasing butterflies in a sunny garden, photographic style, high definition",
"seconds": "4",
"size": "1280x720"
}'