1. Overview
- GregAPI endpoint:
POST $BASE_URL/vidu/ent/v2/{action} - Vidu official endpoint:
POST https://api.vidu.cn/ent/v2/{action}
2. Available models
3. Common parameters
4. Text-to-video
prompt(required): prompt, up to 2000 charactersstyle:general(general) oranime(anime)audio: whether video and audio are generated together (q3 series only)
5. Image-to-video
images(required): image URL array, must contain exactly 1 image
6. First/last-frame generation
images(required): image URL array, must contain exactly 2 images (first frame + last frame)
7. Reference-to-video
images(required): reference image URL array, 1–7 imagesprompt(required): prompt, up to 2000 characters
8. Response example
task_id / id is the Vidu upstream task ID and can be used directly with Vidu’s official query interface. platform_id is GregAPI’s unified tracking ID (video_<ULID>) and can be used for platform-side query and cancel operations. Query and cancel both accept either ID.
A successful creation only means the task is enqueued; get the final result through the Task Query endpoint.
9. Notes
- Off-peak mode:
off_peak=truehalves the price but may delay generation - Resolution and duration: the q3 series supports 1–16 seconds; the Q2 series supports 1–8 seconds;
vidu2.0supports 4s/8s;vidu1.5does not support first/last frame - Async tasks: all generations are asynchronous; poll or set a callback to get results