cURL
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:
| Input | Requirements |
|---|---|
| Video | MP4, 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 |
| Audio | WAV, 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 |
| URL | Files must be publicly accessible over HTTP or HTTPS. Local paths are not supported. |
task_id, and you poll Query the result until the task finishes.Header Parameters
enum<string>
required
Fixed value enable, which enables asynchronous mode.
enable