cURL
curl --request POST \
--url https://api.ttapi.io/suno/v1/create-model \
--header 'Content-Type: application/json' \
--header 'TT-API-KEY: <api-key>' \
--data '
{
"audio_urls": [
"<string>"
],
"name": "<string>",
"hookUrl": "<string>"
}
'import requests
url = "https://api.ttapi.io/suno/v1/create-model"
payload = {
"audio_urls": ["<string>"],
"name": "<string>",
"hookUrl": "<string>"
}
headers = {
"TT-API-KEY": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'TT-API-KEY': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({audio_urls: ['<string>'], name: '<string>', hookUrl: '<string>'})
};
fetch('https://api.ttapi.io/suno/v1/create-model', 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.ttapi.io/suno/v1/create-model",
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([
'audio_urls' => [
'<string>'
],
'name' => '<string>',
'hookUrl' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"TT-API-KEY: <api-key>"
],
]);
$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.ttapi.io/suno/v1/create-model"
payload := strings.NewReader("{\n \"audio_urls\": [\n \"<string>\"\n ],\n \"name\": \"<string>\",\n \"hookUrl\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("TT-API-KEY", "<api-key>")
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.ttapi.io/suno/v1/create-model")
.header("TT-API-KEY", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"audio_urls\": [\n \"<string>\"\n ],\n \"name\": \"<string>\",\n \"hookUrl\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.ttapi.io/suno/v1/create-model")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["TT-API-KEY"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"audio_urls\": [\n \"<string>\"\n ],\n \"name\": \"<string>\",\n \"hookUrl\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"status": "SUCCESS",
"message": "success",
"data": {
"jobId": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
}
}{
"status": "FAILED",
"message": "<string>",
"data": {}
}{
"status": "FAILED",
"message": "Wrong TT-API-KEY or email is not activated."
}Suno
Suno Create Model API 文档
使用 6–24 段公开可访问的参考音频,训练一个可复用的自定义音乐模型。创建成功后,在音乐生成类接口中将 mv 设为 chirp-custom: 即可按该模型风格出歌。
POST
/
suno
/
v1
/
create-model
cURL
curl --request POST \
--url https://api.ttapi.io/suno/v1/create-model \
--header 'Content-Type: application/json' \
--header 'TT-API-KEY: <api-key>' \
--data '
{
"audio_urls": [
"<string>"
],
"name": "<string>",
"hookUrl": "<string>"
}
'import requests
url = "https://api.ttapi.io/suno/v1/create-model"
payload = {
"audio_urls": ["<string>"],
"name": "<string>",
"hookUrl": "<string>"
}
headers = {
"TT-API-KEY": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'TT-API-KEY': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({audio_urls: ['<string>'], name: '<string>', hookUrl: '<string>'})
};
fetch('https://api.ttapi.io/suno/v1/create-model', 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.ttapi.io/suno/v1/create-model",
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([
'audio_urls' => [
'<string>'
],
'name' => '<string>',
'hookUrl' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"TT-API-KEY: <api-key>"
],
]);
$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.ttapi.io/suno/v1/create-model"
payload := strings.NewReader("{\n \"audio_urls\": [\n \"<string>\"\n ],\n \"name\": \"<string>\",\n \"hookUrl\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("TT-API-KEY", "<api-key>")
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.ttapi.io/suno/v1/create-model")
.header("TT-API-KEY", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"audio_urls\": [\n \"<string>\"\n ],\n \"name\": \"<string>\",\n \"hookUrl\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.ttapi.io/suno/v1/create-model")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["TT-API-KEY"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"audio_urls\": [\n \"<string>\"\n ],\n \"name\": \"<string>\",\n \"hookUrl\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"status": "SUCCESS",
"message": "success",
"data": {
"jobId": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
}
}{
"status": "FAILED",
"message": "<string>",
"data": {}
}{
"status": "FAILED",
"message": "Wrong TT-API-KEY or email is not activated."
}Create Model 为异步任务接口。提交请求后不会立刻返回
model_id,你可以通过以下方式获取结果:- 设置 hookUrl,任务完成后系统会向该地址发送 回调通知
- 或调用 Fetch V2 主动查询任务状态和结果
自定义模型为非公开资源,并绑定到训练时使用的底层账号:
- 绑定账号额度耗尽或下线后,模型会立即失效
- 创建成功后请尽快完成后续生成。可用时长通常不超过 2 天,且可能提前失效,不保证用满 2 天
persona_id与chirp-custom不能同时使用mv必须带完整 UUID,例如chirp-custom:a1b2c3d4-e5f6-7890-abcd-ef1234567890,只传chirp-custom无效
- 格式建议:MP3 / WAV / M4A
- URL 必须是公网可直接下载的文件地址,不能带防盗链、登录墙,也不能返回 HTML / JSON 错误页
- 任意一条音频无法下载或不是有效音频文件,整单失败
message 为 job timeout。创建成功后,在生成类接口中把
mv 设为 chirp-custom:{model_id} 即可按该模型风格出歌。- 支持: 音乐生成、延长、翻唱、添加人声 / 伴奏 / 音轨、替换片段、混音、灵感生成、样本扩展
- 不支持: 母带优化、分轨、歌词生成、MIDI 导出
请求体
application/json
最后修改于 2026年9月7日