
This Seed Audio 1.5 API guide walks through submitting your first request, polling for completion or using webhooks, and downloading multi-file outputs across all four Seed Audio 1.5 model IDs (seed-audio-1.5, seed-audio-1.5-video-translation, seed-audio-1.5-video-dubbing, and seed-audio-1.5-stem-separation). Every JSON body below matches the live PoYo OpenAPI schema in the Seed Audio 1.5 API reference.
Prerequisites and Authentication
- Generate an API key in your PoYo dashboard and export it as
POYO_API_KEY. - Send all requests server-side to
https://api.poyo.aiwithAuthorization: Bearer $POYO_API_KEYandContent-Type: application/json. - Any
video_url,audio_url,reference_audio_urls,image_urls, orsubtitle_urlyou pass must be publicly reachable over HTTP or HTTPS without custom headers.
export POYO_API_KEY="YOUR_POYO_API_KEY_HERE"
1. First Request in cURL: Scene Audio Generation (seed-audio-1.5)
seed-audio-1.5 generates dialogue, ambience, sound effects, and background music from a single prompt at 0.5 credits ($0.0025) per billed second. Quote every spoken line and describe the speaker, emotion, environment, and target length directly in prompt.
curl -X POST "https://api.poyo.ai/api/generate/submit" \
-H "Authorization: Bearer $POYO_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "seed-audio-1.5",
"input": {
"prompt": "A warm, rainy evening inside a cozy Tokyo jazz cafe. Soft rain taps on the glass window, an espresso cup clinks gently on a saucer, and mellow lo-fi piano plays softly in the background. A calm young woman speaks warmly in English: \"Rainy nights are the best time to ship. One prompt, dialogue, rain, and jazz, all mixed in ten seconds.\" Keep the clip around 10 seconds.",
"output_format": "mp3",
"sample_rate": 44100
}
}'
The submit call returns immediately with a task_id:
{
"code": 200,
"data": {
"task_id": "0UE7HJQUU96FJZTI",
"status": "not_started"
}
}
Poll the status endpoint until data.status is "finished" or "failed":
curl -X GET "https://api.poyo.ai/api/generate/status/0UE7HJQUU96FJZTI" \
-H "Authorization: Bearer $POYO_API_KEY"
In our December 1, 2026 production run, this exact 10-second prompt finished in 30.0 seconds and billed 5.1 credits ($0.0255).
2. Working JSON Bodies for the Other Three Model IDs
Because all four models share the same async endpoint, switching workflows only changes model and input.
Video Translation into 30 Languages (seed-audio-1.5-video-translation)
Bills 3 credits ($0.015) per second of video. Accepts an EN or ZH MP4/MOV (4–360s) and returns the dubbed video, dubbed audio, target SRT, and source SRT.
{
"model": "seed-audio-1.5-video-translation",
"input": {
"video_url": "https://storage.poyo.ai/models/seed-audio-1-5/examples/input-memory-scene-3450acdd2b13.mp4",
"target_language": "ja",
"dialogue_enhancement": "medium",
"output_format": "mp3"
}
}
If you need fixed translations for brand names, pass glossaries (up to 1,000 {"source": "...", "target": "..."} objects). If you already have a translated SRT file, pass subtitle_url instead of glossaries.
Scripted Video Re-voicing (seed-audio-1.5-video-dubbing)
Bills 2 credits ($0.01) per second of video. Performs the complete script in prompt in time with the speakers in video_url, optionally guided by up to 6 reference_audio_urls.
{
"model": "seed-audio-1.5-video-dubbing",
"input": {
"video_url": "https://storage.poyo.ai/models/seed-audio-1-5/examples/input-shell-presenter-1619916465d3.mp4",
"prompt": "Clear, confident male narrator speaking in English at a steady pace: \"Welcome back. Today we are testing a single API call that replaces every spoken line in sync with the video.\"",
"output_format": "mp3",
"sample_rate": 44100
}
}
Stem Separation (seed-audio-1.5-stem-separation)
Bills 10 credits ($0.05) per audio minute of all returned tracks combined. Leave prompt empty to split a 2–360s WAV/MP3 into three default tracks: speaker (vocals), sfx (sound effects), and bgm (background music).
{
"model": "seed-audio-1.5-stem-separation",
"input": {
"audio_url": "https://storage.poyo.ai/models/seed-audio-1-5/examples/input-rain-bookshop-mix-4f3560ae6cfd.mp3",
"output_format": "mp3",
"sample_rate": 44100
}
}
3. Complete Python Client with Bounded Polling and Multi-File Download
Unlike single-file audio endpoints, seed-audio-1.5-video-translation returns up to four files (MP4, MP3, and two SRTs) and seed-audio-1.5-stem-separation returns multiple audio stems tagged with track_type. The Python script below handles all four models using only the standard library, with bounded polling and safe downloads (never forwarding your API key to the file CDN).
import json
import os
import time
import urllib.parse
import urllib.request
from pathlib import Path
API_KEY = os.environ["POYO_API_KEY"]
BASE_URL = "https://api.poyo.ai"
HEADERS = {
"Authorization": f"Bearer {API_KEY}",
"Content-Type": "application/json",
}
def api_call(path: str, payload: dict | None = None) -> dict:
data = json.dumps(payload).encode("utf-8") if payload is not None else None
req = urllib.request.Request(
f"{BASE_URL}{path}",
data=data,
headers=HEADERS,
method="POST" if data else "GET",
)
with urllib.request.urlopen(req, timeout=60) as resp:
body = json.loads(resp.read().decode("utf-8"))
if body.get("code") not in (0, 200):
raise RuntimeError(f"PoYo API error: {body}")
return body
def run_seed_audio(payload: dict, out_dir: str = "output") -> dict:
submitted = api_call("/api/generate/submit", payload)
task_id = submitted["data"]["task_id"]
print(f"Submitted {payload['model']} -> {task_id}")
for attempt in range(1, 121): # max 10 minutes at 5s intervals
status_resp = api_call(f"/api/generate/status/{task_id}")
data = status_resp["data"]
state = data.get("status")
print(f"[{attempt}] {state} (progress={data.get('progress')})")
if state == "failed":
raise RuntimeError(f"Task failed: {data.get('error_message')}")
if state == "finished":
Path(out_dir).mkdir(parents=True, exist_ok=True)
for idx, item in enumerate(data.get("files") or [], 1):
url = item["file_url"]
ext = Path(urllib.parse.urlparse(url).path).suffix or ".mp3"
label = item.get("track_type") or item.get("name") or item.get("file_type") or str(idx)
dest = Path(out_dir) / f"{task_id}-{idx}-{label}{ext}"
# Public CDN URL: do NOT send Authorization header
with urllib.request.urlopen(url, timeout=120) as r:
dest.write_bytes(r.read())
print(f"Saved {dest} ({dest.stat().st_size:,} bytes)")
print(f"Credits billed: {data.get('credits_amount')}")
return data
time.sleep(5)
raise TimeoutError(f"Task {task_id} did not finish within timeout")
if __name__ == "__main__":
run_seed_audio({
"model": "seed-audio-1.5-video-translation",
"input": {
"video_url": "https://storage.poyo.ai/models/seed-audio-1-5/examples/input-memory-scene-3450acdd2b13.mp4",
"target_language": "ja",
"dialogue_enhancement": "medium",
"output_format": "mp3",
},
})
For production workloads, add a top-level "callback_url": "https://your-app.example.com/webhooks/poyo" field to the submit payload so PoYo pushes the final status payload to your server instead of polling.
Validation Rules and Common Errors to Handle
- Unsupported duration: Videos under 4 seconds or over 360 seconds fail validation; stem separation inputs must be 2–360 seconds. Probe media with
ffprobebefore submitting. - Mutually exclusive fields: Passing both
glossariesandsubtitle_urltoseed-audio-1.5-video-translationis rejected. - Unreachable media URLs: Signed URLs that expire in under 5 minutes or block non-browser user agents will cause task failure. Ensure your media URL stays valid for at least 15 minutes.
- Insufficient balance (
402): Catch HTTP 402 or non-200codevalues and alert before retrying.
How Your First Bill Is Calculated
PoYo bills completed tasks in credits (1 credit = $0.005) and returns the exact charge in data.credits_amount:
- A 10-second
seed-audio-1.5clip bills ~5 credits ($0.025). - A 12-second
seed-audio-1.5-video-translationtask bills 36 credits ($0.18). - A 10.8-second
seed-audio-1.5-stem-separationtask returning 3 tracks (~32.4s total audio) bills 5.4 credits ($0.027).
For full unit economics and batch cost calculations, see Seed Audio 1.5 API Pricing and the Seed Audio 1.5 API overview.
Frequently asked questions
What endpoint does the Seed Audio 1.5 API use?
All four Seed Audio 1.5 models use POST https://api.poyo.ai/api/generate/submit to create a task and GET https://api.poyo.ai/api/generate/status/{task_id} to retrieve results.
Can I use webhooks instead of polling?
Yes. Include a top-level callback_url in your submit JSON body to receive completion and failure notifications directly.
How do I tell which stem is which in seed-audio-1.5-stem-separation?
Each object in data.files includes track_type (speaker, sfx, or bgm) and a description string alongside file_url.
What audio formats and sample rates are supported?
All four endpoints support mp3 (default), wav, pcm, and ogg_opus, with sample rates of 8000, 16000, 24000, 32000, 44100 (default), or 48000 Hz (ogg_opus always uses 48000 Hz).