Skip to content

Vidu text-to-video

Submit a text-only video generation task.

http
POST /vidu/ent/v2/text2video

Available models

ModelDescription
Efficient high-quality audio/video generation
Latest model
Clear visuals, smooth transitions, stable camera

Headers

NameTypeRequiredDescription
stringYesRequest authentication. Use a Bearer Token, for example: .
stringYesRequest content type; must be .

Request body

NameTypeRequiredDescription
stringYesModel name. See Available models above.
stringNoStyle. : general style; : anime style. Note: ignored for q2 and q3 models.
stringYesText prompt. Text description of the video to generate; Chinese and English are supported.
integerNoVideo duration in seconds. : default 5s, range 1–10s; other models use their defaults.
integerNoRandom seed. Omit or pass 0 for a random seed; set manually to use a fixed seed.
stringNoAspect ratio. Options: (default), , , , . Note: and are only supported on q2 and q3 models.
stringNoResolution. Default depends on model and duration. (1–10s): default 720p; options 540p, 720p, 1080p.
booleanNoWhether to add background music. : pick suitable music from the preset BGM library; : no BGM. Note: ignored when q2 duration is 9 or 10 seconds; ignored for q3 models.
booleanNoDirect audio/video output (q3 models only). : output video with dialogue and ambient audio; : silent video.
booleanNoOff-peak mode. : generate during off-peak hours at a lower credit cost; : generate immediately.
booleanNoWhether to add a watermark. : add watermark; : no watermark. Note: watermark text is fixed as "AI-generated content"; off by default.
integerNoWatermark position. : top-left; : top-right; : bottom-right; : bottom-left.
stringNoWatermark image URL. Uses the default watermark when omitted.
stringNoPassthrough parameter. Not processed; transmitted as-is.
stringNoMetadata identifier. JSON string; passthrough field.

Request example

bash
curl -X POST https://octopusx.ai/vidu/ent/v2/text2video \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '
{
  "model": "viduq3-pro",
  "style": "general",
  "prompt": "A cat chasing butterflies on the grass",
  "duration": 5,
  "seed": 0,
  "aspect_ratio": "16:9",
  "resolution": "720p",
  "bgm": false,
  "audio": true,
  "off_peak": false,
  "watermark": false
}'

Response example

json
{
  "task_id": "48038932-0ff5-4251-8b4b-7a76c09fd114",
  "status": "processing",
  "created_at": 1774494511
}

Response fields

NameTypeDescription
stringTask ID, used to query task status.
stringTask status. Options: (in progress), (failed), (completed).
integerCreation timestamp (Unix timestamp).