Skip to content

Vidu · Q2 · Reference to Video · Pro

Integrate

Model id vidu/q2/reference-to-video/pro
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.com/v1/run/vidu/q2/reference-to-video/pro?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field"
  }'

# Still "queued" or "running"? Poll with the id from the response:
curl "https://api.doitong.com/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

Files like the example: $0.30 300 API credits your files are measured before the run Run it on this page

Get API key
Vidu · Video

Your first result goes here

Build a request below and run it with your API key. Outputs are copied to our storage, kept forever or 7 days for free.

Build a request

Controls are generated from the model schema. The code and the price update as you change them.

•required 88 / 2000

Text instructions for generating a video, limited to 2000 characters.

resolution default 720p

Resolution of the resulting video.

default 16:9

Set the video's width-to-height proportions using auto, 16:9, 9:16, 1:1, or another W:H value.

default 4

Video length in seconds; 0 selects an automatic duration.

Advanced images · reference_video_urls · movement_amplitude · seed · bgm
reference_image_urls
Drop a file, or

Subject-appearance reference image URLs, capped at 7 images without video inputs. Including videos reduces the image allowance to 4.

Drop a file, or

Reference video inputs supplied by URL, limited to 2; they serve either as editing material or as motion references.

movement_amplitude default auto

Extent of object movement within the frame.

Seed that makes generation reproducible. Setting it to None selects a seed randomly.

POST /run/vidu/q2/reference-to-video/pro?wait=20 quote → $0.30
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.com/v1/run/vidu/q2/reference-to-video/pro?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field"
  }'

# Still "queued" or "running"? Poll with the id from the response:
curl "https://api.doitong.com/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

Run this request

Your key stays in this browser: it is sent only to the Doitong API and saved (localStorage) only if you tick Remember. Get an API key

About Vidu · Q2 · Reference to Video · Pro

Generates video from a prompt of up to 2000 characters plus reference media. `reference_image_urls` allows up to 7 images, or 4 when videos are supplied; `reference_video_urls` accepts up to 2 videos for editing or motion reference. `duration` is 1-8 seconds, `resolution` is 540p, 720p or 1080p, and `aspect_ratio` is free-form. `bgm` is optional.

Parameters

Send either the canonical name or the native name, not both. Canonical names

NameType DefaultAllowed Description
promptrequired
Typestring
≤ 2,000 characters
Text instructions for generating a video, limited to 2000 characters.
reference_image_urlsoptional images
Typeurl[] · image
Subject-appearance reference image URLs, capped at 7 images without video inputs. Including videos reduces the image allowance to 4.
reference_video_urlsoptional
Typeurl[] · video
Reference video inputs supplied by URL, limited to 2; they serve either as editing material or as motion references.
seedoptional
Typeinteger | null
Seed that makes generation reproducible. Setting it to None selects a seed randomly.
durationoptional
Typeinteger
Default4
1 – 8
Video length in seconds; 0 selects an automatic duration.
resolutionoptional
Typeenum
Default720p
540p720p1080p
Resolution of the resulting video.
aspect_ratiooptional
Typestring
Default16:9
Set the video's width-to-height proportions using auto, 16:9, 9:16, 1:1, or another W:H value.
movement_amplitudeoptional
Typeenum
Defaultauto
autosmallmediumlarge
Extent of object movement within the frame.
bgmoptional
Typeboolean
Defaultfalse
Controls whether the generated video includes background music.
required Canonical name, also accepted

File parameters take a public https:// URL, a data: URI up to 10 MB, or the file_url of an upload. Files

Output

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "vidu/q2/reference-to-video/pro",
  "status": "succeeded",
  "created_at": "2026-10-20T12:00:00Z",
  "started_at": "2026-10-20T12:00:02Z",
  "completed_at": "2026-10-20T12:00:09Z",
  "queue_position": null,
  "cost": {
    "credits": 300,
    "usd": "0.30",
    "charged": 300,
    "refunded": 0
  },
  "input": {
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field"
  },
  "output": {
    "video": {
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.mp4",
      "content_type": "video/mp4",
      "file_name": "0-output.mp4",
      "file_size": 1843200
    }
  },
  "outputs": [
    {
      "type": "video",
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.mp4",
      "content_type": "video/mp4",
      "file_size": 1843200,
      "width": 1280,
      "height": 720,
      "duration": 5,
      "stored": true
    }
  ],
  "error": null,
  "metrics": {
    "inference_seconds": 6.8
  },
  "urls": {
    "self": "https://api.doitong.com/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t",
    "cancel": "https://api.doitong.com/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t/cancel"
  }
}
Your files, your choiceEvery outputs[].url is a copy on our storage: kept forever (paid per GB-month) or 7 days for free, by your account setting or ?storage=.
Same shape on every modeltype, url, content_type, width, height and duration, for images, video and audio alike. output is the model’s own result object.
Fields of output
video
object {url, content_type, file_name, file_size}Q2 Pro video output whose generation is guided by video or image references.

More models: Reference to Video

For AI agents: this page as Markdown is at https://doitong.com/developers/models/vidu/q2/reference-to-video/pro.md. All models and guides: https://doitong.com/developers/llms.txt