> ## Documentation Index
> Fetch the complete documentation index at: https://docs.omniall.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Vidu Video API

> vidu-q4-720p / vidu-q4-1080p async video integration guide.

# Vidu Video API

Call **Vidu Q4** async video generation through Omniall AI.

| Use case | Method | Path |
| - | - | - |
| Create | `POST` | `/v1/video/generations` |
| Get | `GET` | `/v1/video/generations/{task_id}` |

**API host:** `https://api.omniall.ai` · Auth `Authorization: Bearer sk-...`.

## Models & specs

| Model | Resolution | Duration | Billing |
| - | - | - | - |
| `vidu-q4-720p` | 720P | 4–16 s (same price) | Per request |
| `vidu-q4-1080p` | 1080P | 4–16 s (same price) | Per request |

These are two different models — pick by resolution. Model ids match Model Square.

## Scenarios

| Scenario | How |
| - | - |
| Text-to-video | `prompt` + `seconds` (optional `size` / `resolution`) |
| Image / multi-image refs | `reference_image` or `reference_images` / `images` (max 10 total) |
| Reference audio | `reference_audios` (max 3; prefer at least one reference image) |

Reference videos are not supported — do not send `reference_videos`.

## Common fields

| Field | Required | Description |
| - | - | - |
| `model` | Yes | `vidu-q4-720p` or `vidu-q4-1080p` |
| `prompt` | Yes | Video description |
| `seconds` | No | Integer 4–16; alias `duration`; omit for model default |
| `resolution` | No | Matches tier: `720P` / `1080P` (optional; model implies it) |
| `size` | No | Only `16:9` / `9:16`; aliases `ratio` / `aspect_ratio`; default `16:9` |
| `count` | No | Must be 1 |
| `reference_image` | No | Single image URL |
| `reference_images` | No | Image URL array (alias `images`) |
| `reference_audios` | No | Audio URL array |

Generation often takes a few minutes; poll every 10–15 seconds.

## Examples

```bash theme={null}
# Text-to-video (vidu-q4-720p · 5s)
curl -X POST "https://api.omniall.ai/v1/video/generations" \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "vidu-q4-720p",
    "prompt": "An orange cat stretches on a sunny windowsill, slow push-in",
    "seconds": 5,
    "size": "16:9"
  }'
```

```bash theme={null}
# Image + audio refs (vidu-q4-1080p · 8s vertical)
curl -X POST "https://api.omniall.ai/v1/video/generations" \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "vidu-q4-1080p",
    "prompt": "The person in the reference image nods gently to the music and smiles",
    "seconds": 8,
    "size": "9:16",
    "reference_images": [
      "https://example.com/person.jpg"
    ],
    "reference_audios": [
      "https://example.com/bgm.mp3"
    ]
  }'
```

After create, poll with `id` / `task_id`:

```bash theme={null}
curl "https://api.omniall.ai/v1/video/generations/$TASK_ID" \
  -H "Authorization: Bearer $API_KEY"
```

Full fields and Playground: **API Reference → Video → Vidu**.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.