Inspiration generation (inspo)
Generate a new song using 1–4 pieces of public audio as inspiration references (pass the audio URLs directly, not via task_id).
Toute la documentation/v1/music/generations/inspo- Async task: submitting returns a
task_id; pollGET /v1/music/tasks/:task_idfor the result
Exemples de requêtes
curl -X POST https://api.apisea.ai/v1/music/generations/inspo \
-H 'Authorization: Bearer <token>' \
-H 'Content-Type: application/json' \
--data '{
"model": "suno",
"audio_urls": [
"https://a/1.mp3",
"https://a/2.mp3"
],
"version": "v6",
"tags": "dreamy pop"
}'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).
audio_urlsarrayrequiredAn array of 1–4 publicly accessible audio URLs.
versionstringdefault: v6Public version: v6 / v6-wild / v6-mini. Defaults to v6; omit this field when using custom_model_id.
custom_model_idstringThe full UUID returned by the model-creation task. Mutually exclusive with version.
promptstringLyrics / content.
titlestringTitle.
tagsstringStyle tags.
negative_tagsstringStyle tags to exclude.
style_weightnumberStyle weight, 0.00–1.00.
weirdnessnumberCreativity weight, 0.00 – 1.00. Compatible with the old name weirdness_constraint; new requests should use weirdness.
audio_weightnumberAudio weight, 0.00–1.00.
vocal_genderstringVocal gender: Male / Female.
auto_lyricsbooleantrue=rewrite the provided lyrics creatively.
varietystringStyle variation: off / normal / high / extra / max. Optional.
max_modebooleandefault: falseEnables Max mode and is billed at twice the standard price.
audio_formatstringOutput audio format: mp3 / m4a / wav.
Note
This interface accepts 1–4 publicly accessible audio links, and does not send the
custom,instrumental,gpt_description,persona_idtokens or the duration field.
Note
Get Result: This is an asynchronous task. After submission, you will receive
task_idand then pollGET /v1/music/tasks/{task_id}every 3–5 seconds untilstatusbecomescompletedorfailed(music generation usually takes 30–120 seconds; while generation is in progress,statusmay bependingorprocessing, andprogressis an integer from 0 to 100 and is not guaranteed to change at fixed intervals). Once completed, readaudio_urlfromdata.result.music[]. In case of failure,data.error.messageprovides the reason and the deducted amount will be 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)
Réponses
{
"code": 200,
"data": [
{
"status": "submitted",
"task_id": "task_01K8SGYNNNVBQTXNR4MM964S7K"
}
]
}Vous avez repéré un problème dans cette documentation ? Écrivez à support@apisea.ai.