Suno v1 · Music

Create music (compatible form)

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 →

Another field spelling of “Create music”, for callers used to the prompt / style / customMode / instrumental naming.

💡 When to use:With customMode true, prompt is treated as lyrics; otherwise as the music description. Everything else is identical to “Create music”, and results come from sunoInfo.

Submit task
POST/ api/ cqt/ suno/ v1/ generate
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
  • Credits use the separate key “generate:model”, independent of the pricing rule of “Create music”.
  • 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
promptstring
Main prompt: lyrics when customMode is true, otherwise the music description.
stylestring
Style tags (maps to tags of Create music), comma-separated English words recommended.
titlestring
Song title.
customModeboolean
Whether to use custom mode. Fill either this or custom_mode.
custom_modeboolean
snake_case spelling of customMode.
instrumentalboolean
Whether to make it instrumental (maps to make_instrumental).
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.
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 →