Skip to main content
POST
Replace section

Headers

Authorization
string
required

Bearer API key, e.g. Bearer sk-....

Example:

"Bearer sk-..."

Body

application/json
music_id
string
required

Source Track. The track to work on. Use the music_id from an earlier result.

infill_start_s
number
required

Rewrite From. Where the section to rewrite begins, in seconds.

infill_end_s
number
required

Rewrite To. Where the section to rewrite ends, in seconds.

mv
enum<string>
default:chirp-v6

Model Version. All three versions are priced the same; pick by the style you want.

Available options:
chirp-v6,
chirp-v6-wild,
chirp-v6-mini
Example:

"chirp-v6"

prompt
string

Lyrics. Full lyrics, up to 5000 characters. Use markers like [Verse] and [Chorus] to shape the structure.

infill_lyrics
string

New Lyrics. Lyrics for the rewritten section.

title
string

Title. Track title, up to 80 characters.

tags
string

Style Tags. The style you want, e.g. 'lo-fi piano, mellow, rain'. Up to 1000 characters.

negative_tags
string

Avoid These Styles. Styles to steer away from.

variety
enum<string>

Variety. How far the result may drift from the style you specified.

Available options:
off,
normal,
high,
extra,
max
Example:

"off"

max_mode
boolean
default:false

Max Quality. Spend more compute to keep the whole song coherent. Custom mode only; doubles the price.

model_id
string

Custom Model. Generate with a model you trained. Use the model_id from a create-model result. Cannot be combined with persona_id.

audio_format
enum<string>

Output Format. Format of the finished audio. Defaults to mp3.

Available options:
mp3,
m4a,
wav
Example:

"mp3"

Response

200 - application/json

Accepted

code
string
Example:

"success"

message
string
Example:

"success"

data
object