Skip to content
Halaman ini belum tersedia dalam bahasa anda, jadi kandungannya dipaparkan dalam bahasa Inggeris.

Create a Custom Model

Create a custom Suno V6 model from 6–24 reference audio clips

← Semua dokumentasi
POST/v1/music/generations/createModel

Note

Model creation is asynchronous. After submission, poll the task with its task_id; when it completes, read the custom model ID from data.result.model_id.

Contoh permintaan

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

Authorizationstringrequired

Bearer Token. Obtain API Key from the API Key Management page.

Body

modelstringdefault: suno

Always use suno.

namestringrequired

Custom model name. It cannot be empty after trimming leading and trailing whitespace.

audio_urlsstring[]required

From 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

codeinteger

Response Status Codes.

dataarray

Submission result. Read from data[0].task_id, then query the training status through GET /v1/music/tasks/{task_id}.

submitted
{
  "code": 200,
  "data": [
    {"status": "submitted", "task_id": "task_01M24YMN4EV04M84R5QYM77R1E"}
  ]
}
completed
{
  "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.

json
{
  "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.

Menemui masalah dalam dokumentasi ini? E-mel support@apisea.ai.