Skip to main content
VideoRetalk

VideoRetalk — Create a task

Replace the lip movements in a video with those that match an audio file

POST
/services/aigc/image2video/video-synthesis
cURL
# China North 2 (Beijing). This model is available only in this region.
# API keys are region-specific. See https://docs.qwencloud.com/developer-guides/getting-started/regions
curl --request POST \
  --url https://cn-beijing.maas.qwencloudapi.com/api/v1/services/aigc/image2video/video-synthesis \
  --header 'X-DashScope-Async: enable' \
  --header "Authorization: Bearer $DASHSCOPE_API_KEY" \
  --header 'Content-Type: application/json' \
  --data '{
  "model": "videoretalk",
  "input": {
    "video_url": "https://example.com/video.mp4",
    "audio_url": "https://example.com/audio.wav"
  },
  "parameters": {
    "video_extension": false
  }
}'
{
  "output": {
    "task_id": "a8532587-fa8c-4ef8-82be-0c46b17950d1",
    "task_status": "PENDING"
  },
  "request_id": "7574ee8f-38a3-4b1e-9280-11c33ab46e51"
}
videoretalk generates a new video in which the speaker's lip movements match an input audio file, based on a person video. Supported regions: China North 2 (Beijing) only. Use an API key created in that region and the https://cn-beijing.maas.qwencloudapi.com endpoint. See Regions and endpoints. Input requirements:
InputRequirements
VideoMP4, AVI, or MOV; up to 300 MB; 2-120 seconds; 15-60 fps; H.264 or H.265; side length 640-2,048 pixels; close-up, front-facing person
AudioWAV, MP3, or AAC; up to 30 MB; 2-120 seconds; clear human voice without ambient noise or music
Reference image (optional)JPEG, PNG, BMP, or WEBP; up to 10 MB; aspect ratio no more than 2; longest side no more than 4,096 pixels; clear frontal face of a person in the video
URLFiles must be publicly accessible over HTTP or HTTPS. Local paths are not supported.
Processing is asynchronous: this operation returns a task_id, and you poll Query the result until the task finishes.

Authorizations

string
header
required

QwenCloud API key. See API keys.

Header Parameters

enum<string>
required

Fixed value enable, which enables asynchronous mode.

enable

Body

application/json
enum<string>
required

Model name. Fixed to videoretalk.

videoretalk
object
required
object

Response

200-application/json
string

Unique ID of the request.

object