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": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
}
}{
"status": "FAILED",
"message": "<string>",
"data": {}
}{
"status": "FAILED",
"message": "Wrong TT-API-KEY or email is not activated."
}Suno
Suno Create Model API Documentation
Train a reusable custom music model from 6–24 publicly accessible reference tracks. After creation, set mv to chirp-custom: to generate songs in that model’s style.
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": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
}
}{
"status": "FAILED",
"message": "<string>",
"data": {}
}{
"status": "FAILED",
"message": "Wrong TT-API-KEY or email is not activated."
}Create Model is an asynchronous task API.The request does not return
model_id immediately. You can get the result in either of these ways:- Set hookUrl to receive a callback when the task finishes
- Or call Fetch V2 to poll the task status and result
Custom models are private resources bound to the underlying account used during training:
- If that account runs out of quota or goes offline, the model becomes unavailable immediately
- Use the model as soon as it is created. Availability is typically no more than 2 days, and it may expire earlier — a full 2-day window is not guaranteed
persona_idandchirp-customcannot be used togethermvmust include a full UUID, for examplechirp-custom:a1b2c3d4-e5f6-7890-abcd-ef1234567890. Passingchirp-customalone is invalid
- Recommended formats: MP3 / WAV / M4A
- Each URL must be a publicly downloadable file, not a login wall, hotlink-protected page, or HTML/JSON error page
- If any audio file cannot be downloaded or is not valid audio, the entire job fails
message = job timeout.After creation, set
mv to chirp-custom:{model_id} on generation endpoints to produce songs in that model’s style.- Supported: Music, Extend, Cover, Add Vocals / Instrumental / Stem, Replace Section, Mashup, Inspo, Sample
- Not supported: Remaster, Stems, Lyrics, MIDI export
Authorizations
You can obtain your API key from the TTAPI Dashboard.
Body
application/json
Publicly accessible direct URLs of reference audio. Length must be 6–24. Each URL must be a downloadable file, not a login wall or HTML page. Recommended formats: MP3 / WAV / M4A.
Required array length:
6 - 24 elementsModel name. Cannot be empty.
Callback notification URL
Last modified on September 7, 2026