omni-fast. Video generation is asynchronous: create a task first, poll its status, and read the output URL from the status response once finished.| Inputs | Mode | Asset Limits |
|---|---|---|
Omit both images and videos | Text-to-video | No reference assets |
Pass images only | Image-to-video | Up to 5 images |
Pass videos | Video-to-video | Up to 1 video, plus up to 3 optional images |
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
model | string | Yes | — | Must be omni-fast. |
prompt | string | Yes | — | Video description or editing instructions. |
duration | integer | No | 10 | Recommended to omit. Text-to-video and image-to-video always run at 10 seconds (any other value is normalized to 10). Ignored for video-to-video, where output duration is determined by the source media and generated result rather than this field. |
size | string | No | 1280x720 | Supports 1280x720 (landscape) and 720x1280 (portrait). Actual encoded pixel dimensions follow the output file. |
images | string[] | No | — | Direct HTTPS URLs to reference images. Up to 5 for image-to-video, or up to 3 when combined with videos. |
videos | string[] | No | — | Direct HTTPS URL to the source video (at most 1). |
{
"model": "omni-fast",
"prompt": "A vintage sports car cruising slowly down a neon-lit street on a rainy night, low-angle tracking shot",
"size": "1280x720"
}{
"model": "omni-fast",
"prompt": "Keep the character and outfit consistent as the person walks forward naturally",
"size": "720x1280",
"images": [
"https://example.com/reference.png"
]
}{
"model": "omni-fast",
"prompt": "Preserve the motion and camera work of the source video while applying the subject and visual style from the reference images",
"videos": [
"https://example.com/source-video.mp4"
],
"images": [
"https://example.com/subject.png",
"https://example.com/style.png",
"https://example.com/detail.png"
]
}{
"id": "task_xxxxxxxxxxxxxxxxxxxxxxxx",
"status": "queued"
}id from the response as task_id when calling the status endpoint.| Status | Action |
|---|---|
queued | Task is waiting to be processed; continue polling. |
in_progress | Video is being generated; continue polling. |
completed | Generation finished; read metadata.url. |
failed | Generation failed; read error. |
completed or failed; treat any status value not listed above as incomplete and continue polling.metadata.url (result_url holds the same value and can be used as a fallback). Result URLs expire and may no longer be returned in polling responses after expiration—download or persist the video immediately upon completion.size, returns a parameter error.duration; output duration depends on the input assets and generated result.messages, temperature, or stream.| HTTP Status | Common Cause |
|---|---|
400 | Invalid parameters; querying a non-existent task also returns 400 with code set to task_not_exist |
401 | Missing or invalid API key |
403 | Insufficient balance/quota, or no permission for the requested model |
429 | Rate limit exceeded |
503 | Service temporarily unavailable |
500 / 502 | Transient service error |