Skip to main content
Vidu reference-to-video

Vidu reference-to-video — Create a task

Generate a video from reference images and a prompt with Vidu

POST
/services/aigc/video-generation/video-synthesis
Reference-to-video
# Singapore (ap-southeast-1). This model is available only in this region.
# API keys are region-specific. See https://docs.qwencloud.com/developer-guides/getting-started/regions
curl --location 'https://ap-southeast-1.maas.qwencloudapi.com/api/v1/services/aigc/video-generation/video-synthesis' \
  --header 'X-DashScope-Async: enable' \
  --header "Authorization: Bearer $DASHSCOPE_API_KEY" \
  --header 'Content-Type: application/json' \
  --data '{
  "model": "vidu/viduq3-ad_reference2video",
  "input": {
    "prompt": "A man sits in a chair by a window, holding a guitar and playing a soothing American country folk song in a cafe.",
    "media": [
      {
        "type": "image",
        "url": "https://example.com/reference.png"
      }
    ]
  },
  "parameters": {
    "resolution": "720P",
    "size": "1280*720",
    "duration": 5,
    "audio": false,
    "watermark": false,
    "seed": 12345
  }
}'
{
  "output": {
    "task_status": "PENDING",
    "task_id": "0385dc79-5ff8-4d82-bcb6-xxxxxx"
  },
  "request_id": "4909100c-7b5a-9f92-bfe5-xxxxxx"
}
Vidu reference-to-video models use reference images and a text prompt to generate a video that keeps the subject consistent across scenes. Three models target different scenarios:
ModelUse this when
vidu/viduq3-ad_reference2videoAdvertising videos. Marketing-grade shot transitions, camera movement, and audio. Upload product images.
vidu/viduq3-drama_reference2videoPremium dramas and AI comics. Strong character consistency and realistic emotional expression.
vidu/viduq3-mix_reference2videoGeneral use. Balanced visual quality and motion.
Supported regions: Singapore only. Use an API key created in that region and the https://ap-southeast-1.maas.qwencloudapi.com endpoint. See Regions and endpoints.
  • Prompt: required, up to 5,000 characters.
  • Reference images: 1 to 7 images. JPEG, JPG, PNG, or WEBP; aspect ratio 1:4 to 4:1; up to 50 MB each; publicly accessible HTTP or HTTPS URL.
  • Duration: viduq3-ad 3 to 15s, viduq3-drama 2 to 15s, viduq3-mix 1 to 16s.
  • Audio: supported by viduq3-ad and viduq3-mix. viduq3-drama always outputs audio.
Processing is asynchronous: this operation returns a task_id, and you poll Query the result until the task finishes. Generation typically takes 1 to 5 minutes.

Authorizations

string
header
required

QwenCloud API key. See Get an API key.

Header Parameters

enum<string>
required

The content type of the request. Must be application/json.

application/json
enum<string>
required

Enables asynchronous processing. HTTP requests support only asynchronous calls, so this must be enable.

enable

Body

application/json
enum<string>
required

The model name. Choose a model based on the scenario:

  • viduq3-ad: advertising videos with marketing-grade shot transitions, camera movement, and audio.
  • viduq3-drama: narrative content with strong character consistency and emotional expression.
  • viduq3-mix: balanced visual quality for general reference-to-video tasks.
vidu/viduq3-ad_reference2video,vidu/viduq3-drama_reference2video,vidu/viduq3-mix_reference2video
vidu/viduq3-ad_reference2video
object
required

The input object, including reference images and a prompt.

object
required

Video generation parameters.

Response

200-application/json
string

Unique request identifier for tracing and troubleshooting.

object
string

Error code. Returned only when the request fails.

string

Detailed error message. Returned only when the request fails.