VIDEO / Video Generation
Video Generation API
Unified video generation API supporting multiple models including Wan, HappyHorse, and PixVerse. The API is asynchronous: first create a task to get a task_id, then poll for the result. Video generation usually takes 1-5 minutes.
HTTP Call Flow
1
Create a task to get task_idPOST
https://nexusflow.hk/v1/tasks2
Poll the result by task_idGET
https://nexusflow.hk/v1/tasks/{task_id}Supported Models
Billed by output video duration (e.g. 720P 5 sec = unit price x 5). Only successful tasks are billed; failed tasks are not charged.
Notes:
- Video generation is asynchronous only; there is no synchronous endpoint. After creating a task, poll the result using the
id(the task_id). Do not recreate the task. - Poll at a recommended interval of 10-15 seconds, and use exponential backoff for retries.
- task_id queries are valid for 24 hours; after that they cannot be queried.
- Video URLs are valid for 24 hours; download and save them immediately.
Request Parameters
Code Examples
Step 1 Response: Get task_id
On success, task information is returned; the id is the task_id used for subsequent queries.
Step 2: Poll the Result by task_id
GET
https://nexusflow.hk/v1/tasks/{task_id}Query Request
Task Succeeded
Task Failed
Response Parameters
HappyHorse API
View the HappyHorse model-specific API docs
Async Tasks API
General async task API documentation
Full Pricing
View pricing for all models