Sound effect generation
Generate a sound effect from a description.
Semua dokumentasi/v1/music/generations/sounds- Async task: submitting returns a
task_id; pollGET /v1/music/tasks/:task_idfor the result
Contoh permintaan
curl -X POST https://api.apisea.ai/v1/music/generations/sounds \
-H 'Authorization: Bearer <token>' \
-H 'Content-Type: application/json' \
--data '{
"model": "suno",
"prompt": "A thunderstorm with distant bells"
}'Authorizations
AuthorizationstringrequiredAll endpoints require authentication using a Bearer Token
Get an API Key:
Visit the API Key management page to get your API Key
Add the following to the request headers when using it:
Authorization: Bearer YOUR_API_KEYBody
modelstringdefault: sunoAudio model. Currently pass suno (defaults to suno if omitted).
versionstringdefault: v6Public version: v6 / v6-wild / v6-mini; omitted by default: v6.
promptstringrequiredSound effect text description. If missing, a 400 is returned at submission time (no charge). Prefer English prompts for the best results.
typestringdefault: one-shotSound effect type: one-shot (default, single hit) / loop (loopable).
bpmintegerTempo, 1–300; out-of-range values return 400 directly at submission time.
keystringMusical key enum: major keys C / C# / D / D# / E / F / F# / G / G# / A / A# / B; minor keys append m (Cm / C#m / … / Bm). Only sharp (#) notation is supported; flats (Db / Eb, etc.) and B# return 400 (key param error).
audio_formatstringOutput audio format: mp3 / m4a / wav.
Note
This interface does not support custom models, Max,
variety, or the target duration field.
Note
Get Result: This API is an asynchronous task. After submission, get
task_idand pollGET /v1/music/tasks/{task_id}every 3–5s untilstatusiscompletedorfailed(statusmay bependingorprocessing, andprogressshould be a whole number between 0 and 100, not guaranteed to change at fixed intervals). Once completed, getdata.result.music[]foraudio_url. If it fails,data.error.messagecontains the reason, and the deducted amount is automatically refunded.
Response
codeintegerResponse status code
dataarrayReturned data array
Attributes
statusstringTask status
submitted- Submitted
task_idstringUnique task identifier (used to poll GET /v1/music/tasks/{task_id} for the result)
Respons
{
"code": 200,
"data": [
{
"status": "submitted",
"task_id": "task_01K8SGYNNNVBQTXNR4MM964S7K"
}
]
}Menemukan masalah dalam dokumentasi ini? Email support@apisea.ai.