Upload Audio and Create a Cover
Upload a public audio URL and create a cover with Suno V6
Toda la documentación/v1/music/generations/uploadCoverNote
This endpoint creates a cover directly from a public audio URL, so you do not need to call
uploadTaskfirst. It returns atask_id; pollGET /v1/music/tasks/{task_id}for the result.
Ejemplos de solicitudes
curl --request POST \
--url https://api.apisea.ai/v1/music/generations/uploadCover \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"model": "suno",
"version": "v6",
"audio_url": "https://example.com/reference.mp3",
"custom": true,
"instrumental": true,
"tags": "piano, ambient",
"duration_s": 120,
"variety": "normal",
"audio_format": "m4a"
}'Authorizations
AuthorizationstringrequiredBearer Token. Obtain API Key from the API Key Management page.
Body
modelstringdefault: sunoAlways use suno.
audio_urlstringrequiredA publicly accessible direct HTTP(S) audio URL. Keep the source audio under 8 minutes. Local paths, blob: URLs, and links that require sign-in are not supported.
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 and persona_id.
custombooleanSend this field explicitly. Use gpt_description with false; use the lyrics and style fields with true.
instrumentalbooleandefault: falseWhether to generate instrumental audio. When custom=true and this field is false, prompt is required.
gpt_descriptionstringInspiration description. Required when custom=false; maximum 3,000 characters.
promptstringCustom lyrics input, up to 5,000 characters.
tagsstringStyle description, up to 1,000 characters.
titlestringTitle, up to 80 characters.
negative_tagsstringStyles to exclude.
style_weightnumberStyle weight, from 0 to 1.
weirdnessnumberCreativity weight, from 0 to 1.
audio_weightnumberAudio weight, from 0 to 1.
auto_lyricsbooleanWhether to creatively rewrite the input lyrics.
vocal_genderstringVoice gender: Male / Female.
persona_idstringPersona ID, mutually exclusive with custom_model_id.
duration_sintegerTarget generation duration, from 10 to 360 seconds. Available only in custom mode.
varietystringStyle variation: off / normal / high / extra / max.
max_modebooleandefault: falseEnables Max mode. Requires custom mode and is billed at twice the standard price.
audio_formatstringOutput format: mp3 / m4a / wav.
Response
codeintegerResponse Status Codes.
dataarraySubmission result. Read from data[0].task_id and poll the task query interface.
Respuestas
{
"code": 200,
"data": [
{"status": "submitted", "task_id": "task_01M24YMN4EV04M84R5QYM77R1E"}
]
}¿Has encontrado un problema en esta documentación? Escribe a support@apisea.ai.