Generate music or podcast

Music / podcast / sound-effect generation. Distinct from `/v1/audio/speech` (TTS): this endpoint covers Stable Audio, GLM TTS, MOSS, and SoulX Podcast where the prompt-to-audio path is generative rather than spoken-word. Long-running generations (> 60s) return `202 Accepted` with a `job_id` and `poll_url`; poll `/v1/jobs/{job_id}` until complete.

Authentication

AuthorizationBearer

Pass your EmpirioLabs API key as a bearer token. The Anthropic-style x-api-key header is also accepted on every endpoint.

Request

This endpoint expects an object.
modelstringRequired
promptstringOptional

Natural-language description of the audio to generate.

inputstringOptional

Script / lyrics for podcast / multi-speaker models.

durationdoubleOptional
Output length in seconds.
stepsintegerOptional

Number of denoising steps. Higher = better quality but slower.

cfg_scaledoubleOptional

Prompt adherence. Higher = closer to prompt but less creative.

seedintegerOptional
Random seed for reproducibility.
output_formatenumOptional
Allowed values:

Response

Audio response (URL by default, or inline bytes).

datalist of objectsOptional