crop audio
curl --request POST \
--url https://api.mountsea.ai/suno/v2/audio/crop \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"clip_id": "<string>",
"crop_start_s": 1,
"crop_end_s": 1,
"is_crop_remove": false,
"ui_surface": "song_actions"
}
'import requests
url = "https://api.mountsea.ai/suno/v2/audio/crop"
payload = {
"clip_id": "<string>",
"crop_start_s": 1,
"crop_end_s": 1,
"is_crop_remove": False,
"ui_surface": "song_actions"
}
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>',
crop_start_s: 1,
crop_end_s: 1,
is_crop_remove: false,
ui_surface: 'song_actions'
})
};
fetch('https://api.mountsea.ai/suno/v2/audio/crop', 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/audio/crop",
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>',
'crop_start_s' => 1,
'crop_end_s' => 1,
'is_crop_remove' => false,
'ui_surface' => 'song_actions'
]),
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/audio/crop"
payload := strings.NewReader("{\n \"clip_id\": \"<string>\",\n \"crop_start_s\": 1,\n \"crop_end_s\": 1,\n \"is_crop_remove\": false,\n \"ui_surface\": \"song_actions\"\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/audio/crop")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"clip_id\": \"<string>\",\n \"crop_start_s\": 1,\n \"crop_end_s\": 1,\n \"is_crop_remove\": false,\n \"ui_surface\": \"song_actions\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.mountsea.ai/suno/v2/audio/crop")
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 \"crop_start_s\": 1,\n \"crop_end_s\": 1,\n \"is_crop_remove\": false,\n \"ui_surface\": \"song_actions\"\n}"
response = http.request(request)
puts response.read_body{
"taskId": "15c257ff-43f7-4678-bd41-202ad6b8488b"
}Suno
音频裁剪
按时间范围裁剪已有 clip
POST
/
suno
/
v2
/
audio
/
crop
crop audio
curl --request POST \
--url https://api.mountsea.ai/suno/v2/audio/crop \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"clip_id": "<string>",
"crop_start_s": 1,
"crop_end_s": 1,
"is_crop_remove": false,
"ui_surface": "song_actions"
}
'import requests
url = "https://api.mountsea.ai/suno/v2/audio/crop"
payload = {
"clip_id": "<string>",
"crop_start_s": 1,
"crop_end_s": 1,
"is_crop_remove": False,
"ui_surface": "song_actions"
}
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>',
crop_start_s: 1,
crop_end_s: 1,
is_crop_remove: false,
ui_surface: 'song_actions'
})
};
fetch('https://api.mountsea.ai/suno/v2/audio/crop', 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/audio/crop",
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>',
'crop_start_s' => 1,
'crop_end_s' => 1,
'is_crop_remove' => false,
'ui_surface' => 'song_actions'
]),
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/audio/crop"
payload := strings.NewReader("{\n \"clip_id\": \"<string>\",\n \"crop_start_s\": 1,\n \"crop_end_s\": 1,\n \"is_crop_remove\": false,\n \"ui_surface\": \"song_actions\"\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/audio/crop")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"clip_id\": \"<string>\",\n \"crop_start_s\": 1,\n \"crop_end_s\": 1,\n \"is_crop_remove\": false,\n \"ui_surface\": \"song_actions\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.mountsea.ai/suno/v2/audio/crop")
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 \"crop_start_s\": 1,\n \"crop_end_s\": 1,\n \"is_crop_remove\": false,\n \"ui_surface\": \"song_actions\"\n}"
response = http.request(request)
puts response.read_body{
"taskId": "15c257ff-43f7-4678-bd41-202ad6b8488b"
}裁剪已有 Suno clip,通过 查询任务状态 轮询至
success。
免费(0 积分)。平台根据
clip_id 自动解析 Suno 账号。参数
| 字段 | 类型 | 必填 | 说明 |
|---|---|---|---|
clip_id | string | 是 | 要裁剪的 clip |
crop_start_s | number | 是 | 起始秒 |
crop_end_s | number | 是 | 结束秒 |
is_crop_remove | boolean | 否 | false=保留选区(默认);true=移除选区 |
ui_surface | string | 否 | UI 来源标识,默认 song_actions |
结果
{
"status": "complete",
"action_clip_id": "48d4951a-...",
"clip": {
"id": "48d4951a-...",
"audio_url": "https://cdn1.suno.ai/...",
"title": "...",
"status": "complete"
}
}
示例
curl -X POST https://api.mountsea.ai/suno/v2/audio/crop \
-H "Authorization: Bearer your-api-key" \
-H "Content-Type: application/json" \
-d '{
"clip_id": "5a3c023f-d1ed-4a85-b61e-168dde2b6659",
"crop_start_s": 0,
"crop_end_s": 30,
"is_crop_remove": false
}'
授权
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
请求体
application/json
响应
201 - application/json
task id. Use this id to query task status.
示例:
"15c257ff-43f7-4678-bd41-202ad6b8488b"
⌘I