Skip to main content
Create Vidu video generation tasks through GregAPI, supporting text-to-video, image-to-video, first/last-frame, and reference-to-video.

1. Overview

  • GregAPI endpoint: POST $BASE_URL/vidu/ent/v2/{action}
  • Vidu official endpoint: POST https://api.vidu.cn/ent/v2/{action}
All requests use the GregAPI API Token:

2. Available models

3. Common parameters

4. Text-to-video

Mode-specific parameters:
  • prompt (required): prompt, up to 2000 characters
  • style: general (general) or anime (anime)
  • audio: whether video and audio are generated together (q3 series only)

5. Image-to-video

Mode-specific parameters:
  • images (required): image URL array, must contain exactly 1 image

6. First/last-frame generation

Mode-specific parameters:
  • images (required): image URL array, must contain exactly 2 images (first frame + last frame)

7. Reference-to-video

Mode-specific parameters:
  • images (required): reference image URL array, 1–7 images
  • prompt (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=true halves the price but may delay generation
  • Resolution and duration: the q3 series supports 1–16 seconds; the Q2 series supports 1–8 seconds; vidu2.0 supports 4s/8s; vidu1.5 does not support first/last frame
  • Async tasks: all generations are asynchronous; poll or set a callback to get results