BeeRoute logoBeeRoute.

Home / Docs / Vidu Video Generation API Documentation

Vidu Video Generation API Documentation

Call the BeeRoute video generation API to generate video content. This document is dedicated to the Vidu Q3 series of video generation models, supporting text-to-video, image-to-video, first/last-frame-to-video, reference-to-video, and multi-subject reference-to-video.

Download the MD file of this document


1. Supported Models

Model List

Model NameDescriptionUse Cases
viduq3-proVidu Q3 Pro, quality firstText-to-video, image-to-video, first/last frame
viduq3-turboVidu Q3 Turbo, speed firstText-to-video, image-to-video, first/last frame
viduq3-turbo-r2vVidu Q3 Turbo reference-to-video dedicated aliasReference-to-video (subject / non-subject mode)
viduq3-mixVidu Q3 Mix, balanced qualityReference-to-video (non-subject mode)
viduq3Vidu Q3 standard version, multi-shot consistencyReference-to-video (subject / non-subject mode)

viduq3-turbo-r2v is the reference-to-video alias of viduq3-turbo; upstream it actually uses the viduq3-turbo model. Use this model name when you need Turbo speed for reference-to-video.


Vidu Video Generation

ModelResolutionPrice (USD)
viduq3-pro540P$0.0306 / second
720P$0.0755 / second
1080P$0.0899 / second
viduq3-turbo540P$0.0239 / second
720P$0.0363 / second
1080P$0.0421 / second
viduq3540P$0.0306 / second
720P$0.0602 / second
1080P$0.0755 / second
viduq3-mix720P$0.0755 / second
1080P$0.0899 / second

Billing Notes:

  • Billed by the actual duration (seconds) of the generated video; the duration parameter directly affects the cost.
  • Different resolutions (540p / 720p / 1080p) are billed by a multiplier; see the group configuration in the backend for details.
  • Actual billing is based on the upstream response after the task completes (refund for overcharge, charge for undercharge).

2. Generate Video

Since video generation tasks take a relatively long time (usually 1-5 minutes), the API uses asynchronous calls. The entire process consists of two core steps: "Create task → Poll for result".

API Endpoint

POST /v1/videos

Request Headers

ParameterTypeRequiredDescription
AuthorizationstringYesUser authentication token (Bearer sk-xxxx)
Content-TypestringYesapplication/json

Common Parameters

BeeRoute's Vidu integration uses a passthrough mode; the request body fully matches Vidu's original parameters.

ParameterTypeRequiredDescription
modelstringYesModel name: viduq3-pro / viduq3-turbo / viduq3 / viduq3-mix
promptstringConditionally requiredPrompt. Required for text-to-video; optional for other scenarios.
Max length: ≤ 5000 characters per task (≤ 2000 characters for reference-to-video non-subject mode).
durationintegerNoGenerated video duration (seconds). Default 5.
- Text-to-video / image-to-video / first-last frame: 1 ~ 16
- Reference-to-video: 3 ~ 16
⚠️ Directly affects cost, billed per second.
resolutionstringNoVideo resolution, defaults to 720p.
- viduq3-pro / viduq3-turbo / viduq3: 540p / 720p / 1080p
- viduq3-mix: 720p / 1080p
aspect_ratiostringNoAspect ratio, defaults to 16:9.
- Text-to-video: 16:9 / 9:16 / 1:1 / 3:4 / 4:3
- Reference-to-video (subject mode): 16:9 / 9:16 / 1:1
- Image-to-video / first-last frame / reference-to-video (non-subject) follow the input image.
seedintegerNoRandom seed; the same seed + parameters can be reproduced. 0 or omitted means random.
movement_amplitudestringNoCamera movement amplitude: auto (default) / small / medium / large. Currently not effective for the Q3 series, retained for backward compatibility.
bgmbooleanNoWhether to generate background music, defaults to false. Limited in the Q3 series, may not take effect.
audiobooleanNoWhether to generate video with sound. Defaults to true for the Q3 series.
watermarkbooleanNoWhether to add a watermark, defaults to false.
wm_positionintegerNoWatermark position: 1 top-left / 2 top-right / 3 bottom-right (default) / 4 bottom-left.
wm_urlstringNoCustom watermark image URL; if not provided, the AI default watermark is used.
off_peakbooleanNoWhether to use off-peak resources (cheaper, completed within 48 hours), defaults to false. Only effective with Q3 + audio.
callback_urlstringNoCallback URL for task status changes; the system will POST and push processing / success / failed statuses.
payloadstringNoPassthrough string, returned as-is, max 1048576 characters.
meta_datastringNoJSON-format metadata, used for business tracking.

Image Resource Restrictions (apply to the images / subjects fields)

  • Format: PNG / JPEG / JPG / WEBP
  • Pixels: both width and height ≥ 128 px
  • Image aspect ratio: must be between 1:4 ~ 4:1 (i.e. the aspect ratio does not exceed 4x)
  • Single image size: ≤ 50MB
  • Total request body size: ≤ 20MB (if using base64, prefer URLs for multiple images)
  • Input method: HTTPS URL or base64

Request Examples

1. Text-to-Video

Dedicated parameters: none (common parameters only)

curl --location --request POST 'https://beeroute.ai/v1/videos' \
--header 'Authorization: Bearer sk-xxx' \
--header 'Content-Type: application/json' \
--data-raw '{
    "model": "viduq3-pro",
    "prompt": "Blue sky and white clouds, horses galloping, a cheetah in pursuit",
    "duration": 5,
    "resolution": "720p",
    "aspect_ratio": "16:9"
}'

2. Image-to-Video

Dedicated parameters

ParameterTypeRequiredDescription
imagesarray[string]YesInput image, only 1 (first frame). HTTPS URL or base64.

Request Example

curl --location --request POST 'https://beeroute.ai/v1/videos' \
--header 'Authorization: Bearer sk-xxx' \
--header 'Content-Type: application/json' \
--data-raw '{
    "model": "viduq3-pro",
    "images": [
        "https://example.com/first_frame.png"
    ],
    "prompt": "The camera slowly pushes in as the person smiles, their hair blowing in the breeze",
    "duration": 5,
    "resolution": "720p"
}'

3. First/Last-Frame-to-Video

Dedicated parameters

ParameterTypeRequiredDescription
imagesarray[string]YesExactly 2: the 1st is the first frame, the 2nd is the last frame.
Additional constraint: the resolution ratio of the two images must be between 0.8 ~ 1.25 (similar dimensions).

Request Example

curl --location --request POST 'https://beeroute.ai/v1/videos' \
--header 'Authorization: Bearer sk-xxx' \
--header 'Content-Type: application/json' \
--data-raw '{
    "model": "viduq3-pro",
    "images": [
        "https://example.com/first_frame.jpeg",
        "https://example.com/last_frame.jpeg"
    ],
    "prompt": "The camera rises from eye level to a high-angle shot, with a soft lighting transition",
    "duration": 5
}'

4. Reference-to-Video (Non-Subject Mode, images)

Applies to viduq3 / viduq3-turbo / viduq3-mix; generates a video by fusing multiple reference images.

Dedicated parameters

ParameterTypeRequiredDescription
imagesarray[string]YesReference image list, 1 ~ 7 images.

In this mode, the prompt length limit is ≤ 2000 characters. The resolution of viduq3-mix only supports 720p / 1080p.

Request Example

curl --location --request POST 'https://beeroute.ai/v1/videos' \
--header 'Authorization: Bearer sk-xxx' \
--header 'Content-Type: application/json' \
--data-raw '{
    "model": "viduq3",
    "images": [
        "https://example.com/ref1.png",
        "https://example.com/ref2.png",
        "https://example.com/ref3.png"
    ],
    "prompt": "Santa Claus and the bear hug by the lakeside.",
    "off_peak": false
}'

5. Reference-to-Video (Subject Mode, subjects)

Applies to viduq3 / viduq3-turbo; achieves multi-subject fusion generation via named subjects + reference images.

Note: viduq3-mix and viduq3-pro do not support subject mode.

Dedicated parameters

ParameterTypeRequiredDescription
subjectsarray[object]YesSubject list.
Up to 7 subjects; each subject object contains:
- name: subject identifier (string, must be referenced in the prompt via [@name])
- images: array of reference image URLs for this subject, up to 3 per subject
promptstringYesRequired. Must reference subjects via [@name], e.g. [@1] and [@2] hug. Max 5000 characters.
aspect_ratiostringNoOnly supports 16:9 (default) / 9:16 / 1:1.

Request Example

curl --location --request POST 'https://beeroute.ai/v1/videos' \
--header 'Authorization: Bearer sk-xxx' \
--header 'Content-Type: application/json' \
--data-raw '{
    "model": "viduq3",
    "subjects": [
        {
            "name": "1",
            "images": [
                "https://example.com/subject1.png"
            ]
        },
        {
            "name": "2",
            "images": [
                "https://example.com/subject2.png"
            ]
        }
    ],
    "prompt": "[@1] and [@2] are eating hot pot together.",
    "duration": 8,
    "resolution": "720p"
}'

Response Format

200 - Submitted Successfully

{
    "id": "task-xxxxxxxxxxxx",
    "object": "video.generation",
    "status": "pending"
}

Note: The task ID is valid for 24 hours; the result cannot be queried after expiration. Do not create duplicate tasks; just poll using the returned ID.

Error Response

{
    "code": "InvalidApiKey",
    "message": "No API-key provided.",
    "request_id": "7438d53d-6eb8-4596-8835-xxxxxx"
}

3. Query Task Status

Video generation usually takes 1-5 minutes; poll the status using the task ID. A polling interval of 15 seconds is recommended.

API Endpoint

GET /v1/videos/{video_id}

Path Parameters

ParameterTypeRequiredDescription
video_idstringYesThe id returned by the generation API

Request Example

curl --location --request GET 'https://beeroute.ai/v1/videos/task-xxxxxxxxxxxx' \
--header 'Authorization: Bearer sk-xxx'

Response Format

200 - Completed Successfully (Completed)

{
    "id": "task-xxxxxxxxxxxx",
    "object": "video.generation",
    "model": "viduq3-pro",
    "status": "completed",
    "progress": "100%",
    "created_at": 1769263230,
    "started_at": 1769263245,
    "completed_at": 1769263322,
    "video_url": "https://xxx/xxx.mp4"
}

200 - Processing

{
    "id": "task-xxxxxxxxxxxx",
    "object": "video.generation",
    "model": "viduq3-pro",
    "status": "processing",
    "progress": "50%",
    "created_at": 1769263230,
    "started_at": 1769263245
}

200 - Queued

{
    "id": "task-xxxxxxxxxxxx",
    "object": "video.generation",
    "model": "viduq3-pro",
    "status": "queued",
    "progress": "0%",
    "created_at": 1769263230
}

200 - Task Failed (Failed)

{
    "id": "task-xxxxxxxxxxxx",
    "object": "video.generation",
    "model": "viduq3-pro",
    "status": "failed",
    "created_at": 1769263230,
    "started_at": 1769263245,
    "completed_at": 1769263322,
    "error": {
        "code": "generation_failed",
        "message": "The parameter is invalid xxxxxx"
    }
}

Key Field Descriptions

FieldTypeDescription
idstringTask ID.
objectstringFixed as video.generation.
modelstringThe model name used.
statusstringTask status:
queued: queued
processing: processing
completed: completed
failed: failed
progressstringGeneration progress percentage (e.g. "50%", "100%").
created_atintegerTask creation time (Unix timestamp).
started_atintegerTask processing start time (Unix timestamp).
completed_atintegerTask completion time (Unix timestamp).
video_urlstringVideo download link (returned only when completed). MP4 format; the link validity follows the upstream, please download promptly.
error.codestringError code (returned only when failed).
error.messagestringError details (returned only when failed).

4. Task Status Transitions

queued → processing → completed / failed
  • The initial query status is usually queued or processing.
  • When the status becomes completed, the response will include video_url.
  • If the status is failed, check the error.code and error.message error information and retry.
  • The task ID is valid for 24 hours; the result cannot be queried after expiration.

5. Applicable Models per Scenario (Quick Reference)

Scenarioviduq3viduq3-providuq3-turboviduq3-turbo-r2vviduq3-mix
Text-to-video❌✅✅❌❌
Image-to-video (first frame)❌✅✅❌❌
First/last-frame-to-video❌✅✅❌❌
Reference-to-video (non-subject, images)✅❌❌✅✅
Reference-to-video (subject, subjects)✅❌❌✅❌

6. Parameter Restrictions Overview (Quick Reference)

DimensionRestriction
prompt max length5000 characters (2000 for reference-to-video non-subject mode)
duration rangeText/image/first-last frame: 1 ~ 16; reference-to-video: 3 ~ 16, default 5
resolution options540p / 720p / 1080p (mix only 720p/1080p)
aspect_ratio optionsText-to-video: 16:9 / 9:16 / 1:1 / 3:4 / 4:3; reference subject: 16:9 / 9:16 / 1:1
Single image size≤ 50MB
Single image pixelsWidth/height ≥ 128 px, aspect ratio between 1:4 ~ 4:1
Total request body size≤ 20MB (be careful with base64 images)
Image-to-video images countMust be 1
First/last-frame images countMust be 2, resolution ratio 0.8 ~ 1.25
Reference-to-video images count1 ~ 7
Multi-subject subjects countUp to 7 subjects, up to 3 images per subject
Task ID validity24 hours

Last updated 2026-11-27 · Markdown source · llms.txt