提交 OmniHuman 2.0 视频任务
curl --request POST \
--url https://api.poyo.ai/api/generate/submit \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "omnihuman-2.0",
"input": {
"image_urls": [
"https://example.com/character.png"
],
"audio_url": "https://example.com/speech.mp3"
}
}
'import requests
url = "https://api.poyo.ai/api/generate/submit"
payload = {
"model": "omnihuman-2.0",
"input": {
"image_urls": ["https://example.com/character.png"],
"audio_url": "https://example.com/speech.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: 'omnihuman-2.0',
input: {
image_urls: ['https://example.com/character.png'],
audio_url: 'https://example.com/speech.mp3'
}
})
};
fetch('https://api.poyo.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.poyo.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' => 'omnihuman-2.0',
'input' => [
'image_urls' => [
'https://example.com/character.png'
],
'audio_url' => 'https://example.com/speech.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.poyo.ai/api/generate/submit"
payload := strings.NewReader("{\n \"model\": \"omnihuman-2.0\",\n \"input\": {\n \"image_urls\": [\n \"https://example.com/character.png\"\n ],\n \"audio_url\": \"https://example.com/speech.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.poyo.ai/api/generate/submit")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"model\": \"omnihuman-2.0\",\n \"input\": {\n \"image_urls\": [\n \"https://example.com/character.png\"\n ],\n \"audio_url\": \"https://example.com/speech.mp3\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.poyo.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\": \"omnihuman-2.0\",\n \"input\": {\n \"image_urls\": [\n \"https://example.com/character.png\"\n ],\n \"audio_url\": \"https://example.com/speech.mp3\"\n }\n}"
response = http.request(request)
puts response.read_body{
"code": 200,
"data": {
"task_id": "task-unified-1792190000-example",
"status": "not_started",
"created_time": "2026-10-17T10:30:00"
}
}{
"code": 400,
"error": {
"message": "Invalid request parameters",
"type": "invalid_request_error"
}
}{
"code": 400,
"error": {
"message": "Invalid request parameters",
"type": "invalid_request_error"
}
}ByteDance
OmniHuman 2.0
用一段 4–300 秒的驱动音频和可选的表演指令,让一张角色图片动起来。
POST
/
api
/
generate
/
submit
提交 OmniHuman 2.0 视频任务
curl --request POST \
--url https://api.poyo.ai/api/generate/submit \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "omnihuman-2.0",
"input": {
"image_urls": [
"https://example.com/character.png"
],
"audio_url": "https://example.com/speech.mp3"
}
}
'import requests
url = "https://api.poyo.ai/api/generate/submit"
payload = {
"model": "omnihuman-2.0",
"input": {
"image_urls": ["https://example.com/character.png"],
"audio_url": "https://example.com/speech.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: 'omnihuman-2.0',
input: {
image_urls: ['https://example.com/character.png'],
audio_url: 'https://example.com/speech.mp3'
}
})
};
fetch('https://api.poyo.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.poyo.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' => 'omnihuman-2.0',
'input' => [
'image_urls' => [
'https://example.com/character.png'
],
'audio_url' => 'https://example.com/speech.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.poyo.ai/api/generate/submit"
payload := strings.NewReader("{\n \"model\": \"omnihuman-2.0\",\n \"input\": {\n \"image_urls\": [\n \"https://example.com/character.png\"\n ],\n \"audio_url\": \"https://example.com/speech.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.poyo.ai/api/generate/submit")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"model\": \"omnihuman-2.0\",\n \"input\": {\n \"image_urls\": [\n \"https://example.com/character.png\"\n ],\n \"audio_url\": \"https://example.com/speech.mp3\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.poyo.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\": \"omnihuman-2.0\",\n \"input\": {\n \"image_urls\": [\n \"https://example.com/character.png\"\n ],\n \"audio_url\": \"https://example.com/speech.mp3\"\n }\n}"
response = http.request(request)
puts response.read_body{
"code": 200,
"data": {
"task_id": "task-unified-1792190000-example",
"status": "not_started",
"created_time": "2026-10-17T10:30:00"
}
}{
"code": 400,
"error": {
"message": "Invalid request parameters",
"type": "invalid_request_error"
}
}{
"code": 400,
"error": {
"message": "Invalid request parameters",
"type": "invalid_request_error"
}
}- 提交后会返回
task_id。如果提供了callback_url,当任务状态变为finished或failed时,系统会向callback_url发送 POST 请求。 - 无论是否提供
callback_url,都可以通过统一的查询任务状态接口获取结果。
模型
- omnihuman-2.0 — 音频驱动的角色动画
功能
- 用驱动音频让一张角色图片动起来。
- 通过可选的文本提示词引导动作和表演。
必填参数
image_urls(array of strings):恰好一个角色图片 URL。audio_url(string):驱动音频 URL。音频时长必须为 4–300 秒,大小不超过 15 MB。
可选参数
prompt(string):可选的动作和表演指令。
示例
请求示例只使用必填的image_urls 和 audio_url 字段。需要表演指令时,在 input 中添加 prompt。
注意事项
- 所有生成参数都放在
input中。 - 图片必须使用可公开访问的 HTTP 或 HTTPS URL。
audio_url必须是可公开访问的 HTTP 或 HTTPS URL。- 不接受单独的
duration参数;请求的表演时长由驱动音频决定。
授权
所有 API 接口都需要 Bearer Token 认证。
创建 API Key:登录 PoYo,进入 仪表盘 → API 密钥(poyo.ai/zh/dashboard/api-key),点击创建 Key。
在请求头中添加:
Authorization: Bearer YOUR_API_KEY
请求体
application/json
响应
任务提交成功
Show child attributes
Show child attributes