Studio replace section
curl --request POST \
--url https://api.mountsea.ai/suno/v2/studio/replace \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"clip_id": "<string>",
"model": "chirp-v55",
"range": {
"start_s": 10,
"end_s": 25
},
"infill_context_range": {
"start_s": 10,
"end_s": 25
},
"continued_aligned_prompt": "<string>",
"prompt": "<string>",
"tags": "<string>",
"negative_tags": "<string>",
"title": "<string>"
}
'import requests
url = "https://api.mountsea.ai/suno/v2/studio/replace"
payload = {
"clip_id": "<string>",
"model": "chirp-v55",
"range": {
"start_s": 10,
"end_s": 25
},
"infill_context_range": {
"start_s": 10,
"end_s": 25
},
"continued_aligned_prompt": "<string>",
"prompt": "<string>",
"tags": "<string>",
"negative_tags": "<string>",
"title": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
clip_id: '<string>',
model: 'chirp-v55',
range: {start_s: 10, end_s: 25},
infill_context_range: {start_s: 10, end_s: 25},
continued_aligned_prompt: '<string>',
prompt: '<string>',
tags: '<string>',
negative_tags: '<string>',
title: '<string>'
})
};
fetch('https://api.mountsea.ai/suno/v2/studio/replace', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.mountsea.ai/suno/v2/studio/replace",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'clip_id' => '<string>',
'model' => 'chirp-v55',
'range' => [
'start_s' => 10,
'end_s' => 25
],
'infill_context_range' => [
'start_s' => 10,
'end_s' => 25
],
'continued_aligned_prompt' => '<string>',
'prompt' => '<string>',
'tags' => '<string>',
'negative_tags' => '<string>',
'title' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.mountsea.ai/suno/v2/studio/replace"
payload := strings.NewReader("{\n \"clip_id\": \"<string>\",\n \"model\": \"chirp-v55\",\n \"range\": {\n \"start_s\": 10,\n \"end_s\": 25\n },\n \"infill_context_range\": {\n \"start_s\": 10,\n \"end_s\": 25\n },\n \"continued_aligned_prompt\": \"<string>\",\n \"prompt\": \"<string>\",\n \"tags\": \"<string>\",\n \"negative_tags\": \"<string>\",\n \"title\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.mountsea.ai/suno/v2/studio/replace")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"clip_id\": \"<string>\",\n \"model\": \"chirp-v55\",\n \"range\": {\n \"start_s\": 10,\n \"end_s\": 25\n },\n \"infill_context_range\": {\n \"start_s\": 10,\n \"end_s\": 25\n },\n \"continued_aligned_prompt\": \"<string>\",\n \"prompt\": \"<string>\",\n \"tags\": \"<string>\",\n \"negative_tags\": \"<string>\",\n \"title\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.mountsea.ai/suno/v2/studio/replace")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"clip_id\": \"<string>\",\n \"model\": \"chirp-v55\",\n \"range\": {\n \"start_s\": 10,\n \"end_s\": 25\n },\n \"infill_context_range\": {\n \"start_s\": 10,\n \"end_s\": 25\n },\n \"continued_aligned_prompt\": \"<string>\",\n \"prompt\": \"<string>\",\n \"tags\": \"<string>\",\n \"negative_tags\": \"<string>\",\n \"title\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"taskId": "15c257ff-43f7-4678-bd41-202ad6b8488b"
}Studio
Studio Replace Section
Regenerate a time range (same as generate replace_section)
POST
/
suno
/
v2
/
studio
/
replace
Studio replace section
curl --request POST \
--url https://api.mountsea.ai/suno/v2/studio/replace \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"clip_id": "<string>",
"model": "chirp-v55",
"range": {
"start_s": 10,
"end_s": 25
},
"infill_context_range": {
"start_s": 10,
"end_s": 25
},
"continued_aligned_prompt": "<string>",
"prompt": "<string>",
"tags": "<string>",
"negative_tags": "<string>",
"title": "<string>"
}
'import requests
url = "https://api.mountsea.ai/suno/v2/studio/replace"
payload = {
"clip_id": "<string>",
"model": "chirp-v55",
"range": {
"start_s": 10,
"end_s": 25
},
"infill_context_range": {
"start_s": 10,
"end_s": 25
},
"continued_aligned_prompt": "<string>",
"prompt": "<string>",
"tags": "<string>",
"negative_tags": "<string>",
"title": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
clip_id: '<string>',
model: 'chirp-v55',
range: {start_s: 10, end_s: 25},
infill_context_range: {start_s: 10, end_s: 25},
continued_aligned_prompt: '<string>',
prompt: '<string>',
tags: '<string>',
negative_tags: '<string>',
title: '<string>'
})
};
fetch('https://api.mountsea.ai/suno/v2/studio/replace', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.mountsea.ai/suno/v2/studio/replace",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'clip_id' => '<string>',
'model' => 'chirp-v55',
'range' => [
'start_s' => 10,
'end_s' => 25
],
'infill_context_range' => [
'start_s' => 10,
'end_s' => 25
],
'continued_aligned_prompt' => '<string>',
'prompt' => '<string>',
'tags' => '<string>',
'negative_tags' => '<string>',
'title' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.mountsea.ai/suno/v2/studio/replace"
payload := strings.NewReader("{\n \"clip_id\": \"<string>\",\n \"model\": \"chirp-v55\",\n \"range\": {\n \"start_s\": 10,\n \"end_s\": 25\n },\n \"infill_context_range\": {\n \"start_s\": 10,\n \"end_s\": 25\n },\n \"continued_aligned_prompt\": \"<string>\",\n \"prompt\": \"<string>\",\n \"tags\": \"<string>\",\n \"negative_tags\": \"<string>\",\n \"title\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.mountsea.ai/suno/v2/studio/replace")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"clip_id\": \"<string>\",\n \"model\": \"chirp-v55\",\n \"range\": {\n \"start_s\": 10,\n \"end_s\": 25\n },\n \"infill_context_range\": {\n \"start_s\": 10,\n \"end_s\": 25\n },\n \"continued_aligned_prompt\": \"<string>\",\n \"prompt\": \"<string>\",\n \"tags\": \"<string>\",\n \"negative_tags\": \"<string>\",\n \"title\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.mountsea.ai/suno/v2/studio/replace")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"clip_id\": \"<string>\",\n \"model\": \"chirp-v55\",\n \"range\": {\n \"start_s\": 10,\n \"end_s\": 25\n },\n \"infill_context_range\": {\n \"start_s\": 10,\n \"end_s\": 25\n },\n \"continued_aligned_prompt\": \"<string>\",\n \"prompt\": \"<string>\",\n \"tags\": \"<string>\",\n \"negative_tags\": \"<string>\",\n \"title\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"taskId": "15c257ff-43f7-4678-bd41-202ad6b8488b"
}Replace a range of an existing song. Same semantics as
Poll Get Task Status until
/suno/v2/generate with task=replace_section, with same-account routing via clip_id.
Billed like replace (not a free trim). Do not put this into
/studio/edit ops. You may chain after edit / addSection using the new clip.success. For field details that mirror generate, also see Generate Schema for replace_section.
Parameters
| Field | Type | Required | Description |
|---|---|---|---|
clip_id | string | Yes | Source clip |
model | string | Yes | Model version (e.g. chirp-v55) |
range | object | Yes | Range to replace (start_s, end_s) |
infill_context_range | object | Yes | Context window containing range |
continued_aligned_prompt | string | No | Full lyrics after replace |
prompt | string | No | Lyrics for the replaced section |
tags | string | No | Style tags |
negative_tags | string | No | Styles to exclude |
infill_type | string | No | smart | classic | fixed |
persona | object | No | Persona binding |
title | string | No | Title |
Example
curl -X POST https://api.mountsea.ai/suno/v2/studio/replace \
-H "Authorization: Bearer your-api-key" \
-H "Content-Type: application/json" \
-d '{
"clip_id": "5a3c023f-d1ed-4a85-b61e-168dde2b6659",
"model": "chirp-v55",
"range": { "start_s": 20, "end_s": 32 },
"infill_context_range": { "start_s": 10, "end_s": 42 },
"prompt": "[Verse]\nNew lyrics for this section",
"tags": "Pop, Soft"
}'
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/json
原歌曲 clip_id(继续/被替换的源曲)
模型版本
Example:
"chirp-v55"
要替换的区间
Show child attributes
Show child attributes
包含替换区的上下文区间
Show child attributes
Show child attributes
歌曲完整歌词(替换后)
替换区歌词
风格 tags
排除风格
标题
infill 模式
Available options:
smart, classic, fixed Show child attributes
Show child attributes
Response
201 - application/json
task id. Use this id to query task status.
Example:
"15c257ff-43f7-4678-bd41-202ad6b8488b"
⌘I