提交 Sync Lipsync 3 图生视频 任务
curl --request POST \
--url https://api.vidgo.ai/api/generate/submit \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "sync/lipsync-3/image-to-video",
"input": {
"image_urls": [
"https://cdn.vidgo.ai/apis/models/sync/lipsync-3/image-to-video/v1/01/input-photo.png"
],
"audio_url": "https://cdn.vidgo.ai/apis/models/sync/lipsync-3/image-to-video/v1/01/input-audio.mp3"
}
}
'import requests
url = "https://api.vidgo.ai/api/generate/submit"
payload = {
"model": "sync/lipsync-3/image-to-video",
"input": {
"image_urls": ["https://cdn.vidgo.ai/apis/models/sync/lipsync-3/image-to-video/v1/01/input-photo.png"],
"audio_url": "https://cdn.vidgo.ai/apis/models/sync/lipsync-3/image-to-video/v1/01/input-audio.mp3"
}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
model: 'sync/lipsync-3/image-to-video',
input: {
image_urls: [
'https://cdn.vidgo.ai/apis/models/sync/lipsync-3/image-to-video/v1/01/input-photo.png'
],
audio_url: 'https://cdn.vidgo.ai/apis/models/sync/lipsync-3/image-to-video/v1/01/input-audio.mp3'
}
})
};
fetch('https://api.vidgo.ai/api/generate/submit', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.vidgo.ai/api/generate/submit",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'model' => 'sync/lipsync-3/image-to-video',
'input' => [
'image_urls' => [
'https://cdn.vidgo.ai/apis/models/sync/lipsync-3/image-to-video/v1/01/input-photo.png'
],
'audio_url' => 'https://cdn.vidgo.ai/apis/models/sync/lipsync-3/image-to-video/v1/01/input-audio.mp3'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.vidgo.ai/api/generate/submit"
payload := strings.NewReader("{\n \"model\": \"sync/lipsync-3/image-to-video\",\n \"input\": {\n \"image_urls\": [\n \"https://cdn.vidgo.ai/apis/models/sync/lipsync-3/image-to-video/v1/01/input-photo.png\"\n ],\n \"audio_url\": \"https://cdn.vidgo.ai/apis/models/sync/lipsync-3/image-to-video/v1/01/input-audio.mp3\"\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.vidgo.ai/api/generate/submit")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"model\": \"sync/lipsync-3/image-to-video\",\n \"input\": {\n \"image_urls\": [\n \"https://cdn.vidgo.ai/apis/models/sync/lipsync-3/image-to-video/v1/01/input-photo.png\"\n ],\n \"audio_url\": \"https://cdn.vidgo.ai/apis/models/sync/lipsync-3/image-to-video/v1/01/input-audio.mp3\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.vidgo.ai/api/generate/submit")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"model\": \"sync/lipsync-3/image-to-video\",\n \"input\": {\n \"image_urls\": [\n \"https://cdn.vidgo.ai/apis/models/sync/lipsync-3/image-to-video/v1/01/input-photo.png\"\n ],\n \"audio_url\": \"https://cdn.vidgo.ai/apis/models/sync/lipsync-3/image-to-video/v1/01/input-audio.mp3\"\n }\n}"
response = http.request(request)
puts response.read_body{
"code": 200,
"data": {
"task_id": "task-example-001",
"status": "not_started",
"created_time": "2026-11-25T10:30:00"
}
}{
"detail": "audio_url is required"
}{
"detail": "audio_url is required"
}Sync Labs
Sync Lipsync 3 图生视频
Sync Lipsync 3 图生视频 API 用一张人脸图片和最长 300 秒的说话或歌唱音频生成口型同步的说话视频。
POST
/
api
/
generate
/
submit
提交 Sync Lipsync 3 图生视频 任务
curl --request POST \
--url https://api.vidgo.ai/api/generate/submit \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "sync/lipsync-3/image-to-video",
"input": {
"image_urls": [
"https://cdn.vidgo.ai/apis/models/sync/lipsync-3/image-to-video/v1/01/input-photo.png"
],
"audio_url": "https://cdn.vidgo.ai/apis/models/sync/lipsync-3/image-to-video/v1/01/input-audio.mp3"
}
}
'import requests
url = "https://api.vidgo.ai/api/generate/submit"
payload = {
"model": "sync/lipsync-3/image-to-video",
"input": {
"image_urls": ["https://cdn.vidgo.ai/apis/models/sync/lipsync-3/image-to-video/v1/01/input-photo.png"],
"audio_url": "https://cdn.vidgo.ai/apis/models/sync/lipsync-3/image-to-video/v1/01/input-audio.mp3"
}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
model: 'sync/lipsync-3/image-to-video',
input: {
image_urls: [
'https://cdn.vidgo.ai/apis/models/sync/lipsync-3/image-to-video/v1/01/input-photo.png'
],
audio_url: 'https://cdn.vidgo.ai/apis/models/sync/lipsync-3/image-to-video/v1/01/input-audio.mp3'
}
})
};
fetch('https://api.vidgo.ai/api/generate/submit', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.vidgo.ai/api/generate/submit",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'model' => 'sync/lipsync-3/image-to-video',
'input' => [
'image_urls' => [
'https://cdn.vidgo.ai/apis/models/sync/lipsync-3/image-to-video/v1/01/input-photo.png'
],
'audio_url' => 'https://cdn.vidgo.ai/apis/models/sync/lipsync-3/image-to-video/v1/01/input-audio.mp3'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.vidgo.ai/api/generate/submit"
payload := strings.NewReader("{\n \"model\": \"sync/lipsync-3/image-to-video\",\n \"input\": {\n \"image_urls\": [\n \"https://cdn.vidgo.ai/apis/models/sync/lipsync-3/image-to-video/v1/01/input-photo.png\"\n ],\n \"audio_url\": \"https://cdn.vidgo.ai/apis/models/sync/lipsync-3/image-to-video/v1/01/input-audio.mp3\"\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.vidgo.ai/api/generate/submit")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"model\": \"sync/lipsync-3/image-to-video\",\n \"input\": {\n \"image_urls\": [\n \"https://cdn.vidgo.ai/apis/models/sync/lipsync-3/image-to-video/v1/01/input-photo.png\"\n ],\n \"audio_url\": \"https://cdn.vidgo.ai/apis/models/sync/lipsync-3/image-to-video/v1/01/input-audio.mp3\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.vidgo.ai/api/generate/submit")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"model\": \"sync/lipsync-3/image-to-video\",\n \"input\": {\n \"image_urls\": [\n \"https://cdn.vidgo.ai/apis/models/sync/lipsync-3/image-to-video/v1/01/input-photo.png\"\n ],\n \"audio_url\": \"https://cdn.vidgo.ai/apis/models/sync/lipsync-3/image-to-video/v1/01/input-audio.mp3\"\n }\n}"
response = http.request(request)
puts response.read_body{
"code": 200,
"data": {
"task_id": "task-example-001",
"status": "not_started",
"created_time": "2026-11-25T10:30:00"
}
}{
"detail": "audio_url is required"
}{
"detail": "audio_url is required"
}- 提交后会返回
task_id。如果提供了callback_url,当任务状态变为finished或failed时,系统会向callback_url发送 POST 请求。 - 无论是否提供
callback_url,都可以通过统一的查询任务状态接口获取结果。
模型
- sync/lipsync-3/image-to-video — 一张人脸图片 + 音频,生成说话视频。
功能
- 一张静态图片即可生成说话视频。
- 音频最长 300 秒,视频时长与音频一致。
- 输出保持图片的构图和尺寸。
必填参数
image_urls(string[]):恰好一张人脸图片,须为可公开访问的 HTTP(S) 地址或 base64 图片。audio_url(string):说话或歌唱音频,最长 300 秒、最大 50 MB,须为可公开访问的 HTTP(S) 地址。
输出
- 查询任务状态和回调内容的
files数组中返回一个带音频的 MP4 视频。
示例
- 人像加一句台词:一张养蜂人人像和一句 3.5 秒的英文台词。
注意事项
- 清晰、正面、嘴部完整可见的图片口型同步最准确。
image_urls只接受一张图片。- 提交时会测量音频;无法下载或读取、或超过 300 秒的音频返回 400。
model和callback_url放在请求根级,与input并列。input只接受上述字段,sync_mode等其他字段返回 400。- 提交时按音频时长每秒扣除积分,向上取整到秒。任务失败会全额退还积分。当前价格见定价页。
授权
使用 Authorization: Bearer VIDGO_API_KEY。在 仪表盘 → API 密钥(https://vidgo.ai/apis/dashboard/api-key)创建密钥。
请求体
application/json