generate audio
Generate audio: voiceover (a script read by a voice from list_models type voice, in any of the listed languages), music (a prompt, or lyrics on the models that take them), or sound_effect (a prompt). Voiceover and sound effects finish inside the call; music runs as a job. Either way get_jobs names the item. Taken before the provider runs, refunded when it fails without doing the work. Credits.
Authorizations
An API key (es_live_…) from Settings, under API keys, or an OAuth access token.
Headers
Retry a paid dispatch safely: the same key returns the job already dispatched instead of charging again.
The workspace this one call acts in, when it is not the default: for a key or a connected agent, one of the workspaces the user allowed it.
Body
What to generate.
voiceover, music, sound_effect Idempotency key (a UUID). A retry with the same key returns the job already dispatched instead of charging again; a new attempt takes a new key.
1 - 200voiceover: the script, read as written (spell numbers, symbols and names as said). Bracketed tags direct the delivery unspoken: [whispers], [laughs], [excited].
voiceover: a voice id (list_models type voice). Omitted: the brand kit's voice, else the default.
music or sound_effect: the prompt. Music is what was asked for: its mood, steady or building, and, where it sits under a voice, sparse with no lead in the vocal range and no crescendo. On google music, timed sections ("[0:00 - 0:10] Intro: soft lo-fi beat") are followed, which is how a track lands on a cut; on minimax a named key and tempo ("E minor, 90 BPM") are followed.
music: the provider, default google. google and minimax take lyrics and set their own length (about 3 and 6 minutes); elevenlabs takes a duration. google follows a timed arrangement in the prompt, minimax a named key and tempo. estimate_cost quotes each.
google, minimax, elevenlabs music (elevenlabs, required, 3-600s) / sound_effect target seconds (0.5-22, omit to let the model choose). Ignored by minimax and google music.
music (minimax/google): lyrics with structure tags.
music (elevenlabs, minimax): instrumental, no vocals. Defaults to true. Pass false for a track with singing, and on minimax the model writes the words when you send none.
voiceover: the language to speak in; the values here are the whole supported set. Every voice speaks all of them, so the voice is chosen for its character and this for its language.
en, es, fr, de, it, pt, ja, ko, zh, ar, hi, ru, nl, pl, sv, da, fi, no, cs, sk, hu, ro, bg, hr, uk, el, tr, th, vi, id, ms, fil, ta, te, ml, kn, bn, gu, mr, pa, he, fa, ur, sw, ha, af, ga, cy, is, ca, gl, sl, et, lv, lt, sr, bs, mk, ka, hy, az, kk, ne voiceover: 0-1, default 0.5. Higher holds one delivery across takes; lower is more expressive and varies more.
0 <= x <= 1voiceover: 0-1, default 0.75. How closely the output tracks the source voice.
0 <= x <= 1voiceover: 0-1, default 0. Raises expressiveness at some cost to stability.
0 <= x <= 1voiceover: 0.7-1.2, default 1. Delivery rate.
0.7 <= x <= 1.2voiceover: sharpens resemblance to the source voice.
sound_effect: 0-1, default 0.3. Higher follows the prompt more literally, lower gives the model more room.
0 <= x <= 1sound_effect: generate a seamless loop, for ambience held under a whole scene.
voiceover: seed; a repeat is close, not identical.
Optional: one sentence shown to the user beside this action.
600
