Skip to main content
POST
Suno Replace Section

Headers

Authorization
string

Body

application/json
model
enum<string>
required

Model name. Must be suno-replace-section.

Available options:
suno-replace-section
infill_start_s
number
required

Required. Start of the section to replace, in seconds (2 decimals).

Required range: x >= 0
infill_end_s
number
required

Required. End of the section to replace, in seconds (2 decimals). The section must be at least 10 seconds and no longer than 50% of the song.

Required range: x >= 0
lyrics
string
required

Required. New lyrics for the replaced section. Use section markers such as [Verse] and [Chorus]. Max 5000 characters.

Maximum string length: 5000
full_lyrics
string
required

Required. The complete lyrics of the song after the replacement.

Maximum string length: 5000
style
string
required

Required. Music style, e.g. lofi hip hop, mellow piano, rainy night. Max 1000 characters.

Maximum string length: 1000
title
string
required

Required. Song title. Max 80 characters.

Maximum string length: 80
task_id
string

The img_uuid of one of your earlier successful Suno tasks that produced songs (suno-v6, suno-extend, suno-cover, suno-add-vocals, suno-add-instrumental, suno-replace-section or suno-mashup). Must be sent together with audio_id.

audio_id
string

The audio_id of the song to use, taken from that task's result (json[].audio_id). Must be sent together with task_id.

audio_url
string<uri>

Alternative to task_id + audio_id: a public URL of your own song.

negative_tags
string

Optional. Styles or traits to avoid, e.g. heavy metal, screaming. Max 200 characters.

Maximum string length: 200
vocal_gender
enum<string>

Optional. Preferred singer gender (m / f also accepted). This raises the probability; it is not guaranteed.

Available options:
male,
female
style_weight
number

Optional. How strictly to follow style, from 0 to 1 (rounded to 2 decimals).

Required range: 0 <= x <= 1
weirdness_constraint
number

Optional. How experimental the result may be, from 0 to 1 (rounded to 2 decimals).

Required range: 0 <= x <= 1
audio_weight
number

Optional. How much the result follows the audio features of the source, from 0 to 1 (rounded to 2 decimals). Not available when instrumental is true.

Required range: 0 <= x <= 1
variety
integer
default:1

Optional. How different the versions are from each other: 0 off, 1 normal (default), 2 high, 3 extra, 4 max.

Required range: 0 <= x <= 4
custom_callback_url
string<uri>

Optional. A publicly accessible HTTPS URL. When the task status changes (processing / success / failed), GoEnhance sends a POST request to this URL. The request body is identical to the response of GET /api/v1/jobs/detail. If your server does not respond with HTTP 200, the notification is retried up to 3 times, with a 3-second timeout per attempt.

Example:

"https://your-server.com/goenhance/callback"

Response

code
integer
required
msg
string
required
data
object
required