Submit a OmniHuman 2.0 video task
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
Animate one character image with a 4–300 second driving audio track and optional performance instructions.
POST
/
api
/
generate
/
submit
Submit a OmniHuman 2.0 video task
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"
}
}- After submission, a
task_idwill be returned. If you provided acallback_url, when the task status becomesfinishedorfailed, a POST request will be sent to thecallback_url. - Regardless of whether
callback_urlis provided, you can retrieve the response result through the unified Query Task Status endpoint.
Models
- omnihuman-2.0 — Audio-driven character animation
Features
- Animate one character image with a driving audio track.
- Guide motion and performance with an optional text prompt.
Required parameters
image_urls(array of strings): Exactly one character image URL.audio_url(string): Driving audio URL. Audio must be 4–300 seconds long and no larger than 15 MB.
Optional parameters
prompt(string): Optional instructions for motion and performance.
Examples
The request example uses only the requiredimage_urls and audio_url fields. Add prompt inside input when performance instructions are needed.
Notes
- Put all generation parameters inside
input. - Images must use publicly accessible HTTP or HTTPS URLs.
audio_urlmust be a publicly accessible HTTP or HTTPS URL.- A separate
durationparameter is not accepted; the driving audio determines the requested performance length.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/json
