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 key's own.
Body
What to generate.
voiceover, music, sound_effect A key you mint per dispatch (a UUID). The same key on a retry returns the job already dispatched instead of charging again; a new attempt takes a new key.
1 - 200voiceover: the script to speak, read exactly as written: spell numbers, symbols, addresses and names the way they should be said.
voiceover: voice id from list_models(type: "voice").
music or sound_effect: the prompt. 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. Use it to fit a line to a shot rather than trimming after.
0.7 <= x <= 1.2voiceover: sharpens resemblance to the source voice, at a small latency cost.
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 for a reproducible take. Ignored by music and sound_effect.
Optional: one sentence shown to the user beside this action.
600
