Suno Replace Section API to Rewrite Part of a Song

Fix one verse without regenerating the whole track. Send model: suno-replace-section to POST /api/v1/audio/generations with a source song, the section's infill_start_s and infill_end_s, the new lyrics and the song's full_lyrics. The new part is blended into what comes before and after, and each request returns 2 versions.
Get API Key
A strip of audio tape with one highlighted segment being replaced

Edit a Section, Keep the Song

Pick the range in seconds

Set infill_start_s and infill_end_s (2 decimals). The section must be at least 10 seconds and no longer than 50% of the song.
A film editor's timeline with two markers on a spinning reel

New words, same song

Send the replacement lyrics for the section and the complete full_lyrics after the change, together with the song's style and title.
A lyric sheet with one stanza covered by a fresh sheet of paper

Works on uploads too

Use task_id + audio_id for one of your Suno songs, or audio_url for your own song. variant is not accepted; the section follows the source.
Two audio sources, a laptop and a cassette, feeding a single editing desk
A source, a time range, and the lyrics and style that define the new part.

Suno Replace Section Request Fields and Limits

model

Always suno-replace-section.

Source

Exactly one of task_id + audio_id (one of your successful Suno song tasks) or audio_url (your own song).

infill_start_s and infill_end_s (required)

Start and end of the section in seconds, 2 decimals. The range must be at least 10 seconds and at most 50% of the song.

lyrics, full_lyrics, style, title (required)

lyrics for the replaced section (max 5000 characters), full_lyrics of the whole song after the change (max 5000), style up to 1000 characters and title up to 80.

Optional tuning

negative_tags up to 200 characters, vocal_gender, style_weight / weirdness_constraint / audio_weight from 0 to 1, and variety 0 to 4 (default 1). variant is not accepted.

Result

One audio item per version, normally 2, with value, audio_id, title, audio_duration, style and lyrics.
Billed per request, at a lower price than generating a whole new song.

Suno Replace Section API Pricing

1.63 tokens ($0.0326) per request

Each request returns 2 versions of the song with the section rewritten.

Section length does not matter

Any valid range, from 10 seconds up to half the song, costs 1.63 tokens ($0.0326).

Compared with regenerating

A full new Suno V6 request is 3.9 tokens ($0.078); rewriting one section is 1.63 tokens ($0.0326).

Refunded on failure

Tokens are deducted when the task is accepted and refunded automatically if it fails.

Integrate the Suno Replace Section API

1

1. Create an API key

Generate a key at /keys and send it as Authorization: Bearer <key> from your server.
2

2. Find the section

Use the song's audio_duration and lyrics to choose infill_start_s and infill_end_s, keeping the range between 10 seconds and half the song.
3

3. Submit the edit

POST model, the source, the range, lyrics, full_lyrics, style and title to /api/v1/audio/generations.
4

4. Compare and keep

Poll GET /api/v1/jobs/detail or use custom_callback_url, listen to both versions and store the chosen audio_id for further edits.
Create an API Key
Targeted edits inside generated and uploaded songs.

What Developers Build with Suno Replace Section

Lyric correction

Fix a misheard or unwanted line in a generated song without losing the parts users liked.

Personalized songs

Swap a name, date or message into one verse of a template song for birthdays and greetings.

Iterative song editors

Offer a region-select editing flow where users rewrite one part at a time.

Style changes mid-song

Give a bridge or chorus a different feel by sending a new style for that section.
Ranges, lyrics, pricing and results.

Suno Replace Section API FAQ

What is the Suno Replace Section API endpoint?

POST https://api.goenhance.ai/api/v1/audio/generations with model: suno-replace-section.

How long can the replaced section be?

At least 10 seconds and at most 50% of the song.

Why are both lyrics and full_lyrics required?

lyrics is the new text for the section; full_lyrics is the complete song text after the replacement.

Can I edit a song I did not make with Suno?

Yes. Send audio_url instead of task_id + audio_id.

Can I set the variant?

No. variant is not accepted; the section follows the source.

How much does it cost?

1.63 tokens ($0.0326) per request, returning 2 versions. Failed tasks are refunded automatically.

Start Building with the Suno Replace Section API