Skip to main content
create.remix_song takes a song that has vocals and makes new versions of it: the vocal line of the original, sung with your new lyrics, in the style your prompt describes. Use it to personalise a song (a name, a brand, an occasion), to re-style a track in another genre, or to try out new words over a melody you already have. The source must contain vocals. To remix music without vocals, use create.remix_instrumental.

The request

Every field, with its exact rules: submit and poll in the API Reference.

Example

This remixes a song into two acoustic versions with new lyrics and saves them. It uses the reference client; save soundpiece.py or soundpiece.mjs next to it first.

The result

run returns the finished remixed_song object, with one entry in outputs per variation:

Choosing parameters

  • Source. Use a song with a clear lead vocal; that vocal line is what the new lyrics are sung to. It must be at least 10 seconds long.
  • Lyrics. New lyrics fit best when they follow the shape of the original: a similar number of lines per section, and similar line lengths.
  • Prompt. Describe the new style: genre, mood, tempo, instruments and voice, separated by commas.
  • n_variations. 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 10 seconds 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

3 credits per variation, so n_variations: 2 costs 6. Normalisation costs nothing extra. Resending a request with the same idempotency key is not charged again.