Music tracks
Generate music
Starts a song or an instrumental. Each of the variations (1 to 4) is its own track and charge. The answer comes at once, with every take pending.
- Sound:
style_idorbuiltin_style(not both), and/orstyle(your words, added on top). Send at least one. - Song: needs
lyrics, oraboutto have lyrics written first. - Credits: every take’s full price is reserved in media credits. If the balance can’t cover them all, you get
402withentity: imagesand nothing starts. Failed takes are free. - Estimate:
?estimate=1returns the engine, length and price, and starts nothing. It skips the balance and in-flight checks. - Limit: 8 tracks in progress per company (
422onvariations). - Polling: poll
GET /music/tracks/{id}(or the list withfilter[batch]) about every 10 seconds untilcompletedorfailed. A take needs 30 seconds to several minutes, and fails without charge after 25.
Owner, admin or user only. Needs Music in the plan (402 with feature: music), except with purpose: video. Premium engines also need premium AI media or the company’s own provider key (422 on model).
POST
Authorizations
Path Parameters
Query Parameters
Body
application/json
What to make. Text is trimmed and spaces collapsed (lyrics keep line breaks); empty text counts as not sent.
Language to sing in. Default: the style's, or that of the written lyrics. Ignored for instrumentals.
Available options:
en, es, pt, fr, de, it, nl, sv, no, da, fi, pl, cs, ro, hu, el, tr, ru, uk, ca, ar, he, fa, hi, pa, bn, ta, te, ur, id, ms, tl, vi, th, zh, yue, ja, ko, sw, yo, zu, af Example:
"en"
