Suno v1 · Music

Generate from audio

Suno v1 and Suno v2 are separate APIs

Suno v1 has its own task system, different from Suno v2: a submit returns a numeric taskId and results come from the v1 query endpoints; task IDs and result formats are not interchangeable between the two. For the OpenAI-style entry use /v1/audio/generations (model suno_v1).

Suno v2 docs →OpenAI-style API →

Use a piece of your own audio as the opening and let the AI continue it into a full song.

💡 When to use:Use it when you have a hummed tune, demo or recording and want a finished song. audioFilePath + fileExt point to the audio; continue_at says where to continue.

Submit task
POST/ api/ cqt/ suno/ v1/ generateFromAudioTask
Query the result (with the returned taskId)
GET/ api/ cqt/ suno/ v1/ sunoInfo?taskId={taskId}

The returned taskId is a number and only works with the v1 query endpoints; it is not interchangeable with v2 task IDs. Get music result →

Notes
  • After submitting, poll with the taskId — every 5–10 seconds is enough, no need to hit it every second.

Credits are pre-deducted per call (see the pricing page for prices); a failed submit or a failed task is refunded automatically.

Authorization

AuthorizationstringheaderRequired
API key, sent as a Bearer token in the Authorization header.

Request body

application/json
gpt_description_promptstringRequired
Music description (should include Chinese/English text and symbols).
make_instrumentalboolean
Whether to generate an instrumental version (no vocals).
promptstring
Main prompt / lyrics (put lyrics here in custom mode; an empty string is allowed, null is not).
tagsstring
Style tags, comma-separated English words recommended, e.g. "pop, upbeat".
titlestring
Song title.
modelstring
Model version, e.g. suno_v45 / suno_v45_lite / suno_v40; suno_v35 is automatically changed to suno_v45_lite. Fill either this or modelVersion; if both are set, model wins. Credits are looked up by "endpoint:model", and an unconfigured value returns "积分规则未配置或禁用", so in practice you must send it.
modelVersionstring
Alias of model (compatibility spelling); only used when model is empty.
audioFilePathstring
Audio file path. Same field as audio_file_path in two spellings; fill either one.
audio_file_pathstring
Audio file path (snake_case spelling).
fileExtstring
File extension, e.g. mp3. Same field as file_ext in two spellings.
file_extstring
File extension (snake_case spelling).
continue_atnumberRequired
Second at which to continue (must be greater than 0, e.g. 12.0).
is_regenerateboolean
Whether this is a regeneration.
streamboolean
Whether to stream.
include_historyboolean
Whether to include history.
Advanced Parameters (optional)
style_weightnumber
How strongly to follow the style, range 0–1, two decimals, e.g. 0.65.
audio_weightnumber
Audio-element weight, range 0–1, two decimals, e.g. 0.65.
weirdness_constraintnumber
Creativity / weirdness, range 0–1, two decimals, e.g. 0.65.
vocal_genderstring
Vocal gender preference: m = male, f = female.

Response Fields

codenumber
Business code: 200 = success; see the error notes for the rest. The HTTP status is normally 200.
msgstring
Message: success on success, the reason on failure.
data.taskIdnumber
Task ID (a number). Use it with the query endpoint to fetch the result.

Suno v1 · Intro →