---
title: "create video by text or image or reference image"
method: POST
path: "/generation/vidu/viduq2-pro"
tags: ["generation", "video generation"]
---

# create video by text or image or reference image

`POST /generation/vidu/viduq2-pro`

## Request body

- object
  - `input` object, required
    - `prompt` string — The prompt of the generation
    - `image` string, uri, required — Only image URLs are accepted (HTTPS preferred); base64 is not allowed. Supported formats include JPG, PNG, and JPEG. Image aspect ratio must be less than 1:4 or 4:1.
    - `imageTail` string, uri — URL of the tail image for video generation. Only image URLs are accepted (HTTPS preferred); base64 is not allowed. Supported formats include JPG, PNG, and JPEG. Image aspect ratio must be less than 1:4 or 4:1.
    - `length` 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 — The length of the generation
    - `resolution` '540p' | '720p' | '1080p' — The resolution of the generation
    - `seed` number — The seed of the generation
    - `generateAudio` boolean — Generate natural-sounding, fitting audio for the output video.
  - `webhookUrl` string
  - `clientSource` string

## Response `200`

Successful response

- object
  - `taskId` string, required
  - `status` 'waiting' | 'succeed' | 'failed' | 'processing', required

## Other responses

- `default` — Error response

---

[API](https://skmtc.net/pollo/apis/pollo-ai-video-collection.md) · [All operations](https://skmtc.net/pollo/apis/pollo-ai-video-collection/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/pollo/pollo-ai-video-collection/revisions/b3c228cf4e87/schema)
