create.remix_track takes a track you already have, with or without vocals, and makes new variations of it in the style your prompt describes. Add lyrics to have the result sing new words. Use it to re-style a track in another genre, to get fresh versions of a music bed, or to personalise a song with new lyrics (a name, a brand, an occasion).
What you get back
The prompt always sets the style. Whether the result has vocals, and what they sing, follows from the source and from whether you sendlyrics:
The request
Every field, with its exact rules: submit and poll in the API Reference.
Example
This re-styles a track into two cinematic variations, keeping its own vocals (if it has any), and saves them. It uses the reference client; savesoundpiece.py or soundpiece.mjs next to it first.
The result
run returns the finished remixed_track object, with one entry in outputs per variation:
Choosing parameters
-
Prompt. Describe where to take the track: genre, mood, tempo, instruments and voice, as comma-separated tags or a short phrase, e.g.
"Dreamy, melancholic synthwave, mid-tempo". -
Lyrics or not? Leave
lyricsout to keep what the source has: its own vocals, or none. Send them to have the result sing new words, whether or not the source has vocals:Put each section marker ([Intro],[Verse],[Chorus],[Bridge],[Outro],[Instrumental]) on its own line, and each sung line on its own line under it. - Source. Any WAV, MP3 or FLAC from 1 second to 5 minutes, with or without vocals.
-
n_variations. Each variation is a different take on the same request. Ask for two or three when you want to choose; each costs the same as one. - Loudness. Off unless you include the block. See the loudness normalisation guide for which target to pick.
Errors
When you submit (the request is refused, nothing is charged):
While processing (the operation finishes as
failed, with an error.code):
Source limits for this endpoint: WAV, MP3 or FLAC, from 1 second to 5 minutes long, and at most 50 MB.
See Errors for the response shapes, and for the errors every endpoint can return (
401, 403, 429).
Cost
4 credits per variation, son_variations: 2 costs 8. Normalisation costs nothing extra. Resending a request with the same idempotency key is not charged again.