Create a Custom Model
Create a custom Suno V6 model from 6–24 reference audio clips
כל התיעוד/v1/music/generations/createModelNote
Model creation is asynchronous. After submission, poll the task with its
task_id; when it completes, read the custom model ID fromdata.result.model_id.
דוגמאות לבקשות
curl --request POST \
--url https://api.apisea.ai/v1/music/generations/createModel \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"model": "suno",
"name": "warm folk model",
"audio_urls": [
"https://example.com/ref-01.mp3",
"https://example.com/ref-02.mp3",
"https://example.com/ref-03.wav",
"https://example.com/ref-04.m4a",
"https://example.com/ref-05.mp3",
"https://example.com/ref-06.mp3"
]
}'Authorizations
AuthorizationstringrequiredBearer Token. Obtain API Key from the API Key Management page.
Body
modelstringdefault: sunoAlways use suno.
namestringrequiredCustom model name. It cannot be empty after trimming leading and trailing whitespace.
audio_urlsstring[]requiredFrom 6 to 24 publicly accessible direct HTTP(S) audio URLs. MP3, WAV, and M4A are recommended. Each URL must return an audio file directly, not a page that requires sign-in.
Warning
An invalid media file may cause the entire model-creation task to fail. Upload local files first and use their public URLs; do not send local paths or
blob:URLs.
Response
codeintegerResponse Status Codes.
dataarraySubmission result. Read from data[0].task_id, then query the training status through GET /v1/music/tasks/{task_id}.
{
"code": 200,
"data": [
{"status": "submitted", "task_id": "task_01M24YMN4EV04M84R5QYM77R1E"}
]
}{
"code": 200,
"data": {
"id": "task_01M24YMN4EV04M84R5QYM77R1E",
"status": "completed",
"progress": 100,
"result": {
"model_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"name": "warm folk music model"
}
}
}Use the created model
After completion, save result.model_id. Use it as custom_model_id in later custom-model requests, and omit version and persona_id.
{
"model": "suno",
"custom_model_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"custom": true,
"instrumental": false,
"prompt": "[Verse]\nan old wooden guitar plays a new journey",
"style": "acoustic folk, warm vocals",
"max_mode": true,
"audio_format": "mp3"
}Model creation may take several minutes, and can take about 20 minutes. Custom-model availability may vary, so do not promise a fixed expiration time. Model creation and each generation are billed separately.
מצאתם בעיה בתיעוד? אפשר לשלוח אימייל לכתובת support@apisea.ai.