apimaxDocs
DocsPricingConsole
API ReferenceIntegration GuideUser GuideChangelog

Music Series

DOCnew-api Compatible Suno Format

Image Series

Video series

Task Management

Error Code ReferenceQuery Task StatusGET

Account Management

Query Quota UsageGET

Docs / Music Series / Suno / NewAPI Compatible

NewAPI Compatiblenew-apiSunoNative FormatAsync TasksAPI

new-api Compatible Suno Format

The new-api compatible Suno format submits tasks via /suno/submit/{ACTION} and queries results via /suno/fetch.

APIhttps://api.apimax.ai/suno/submit/{action}
Try it
Bearer API KeyJSONServer-side call

Overview#

The new-api compatible Suno calling convention is prefixed with /suno/*. To create music, lyrics, or audio post-processing tasks, always use:

http
POST /suno/submit/{ACTION}

{ACTION} indicates the task type, e.g. MUSIC, LYRICS, WAV, MP4. On a successful submission the endpoint returns a public task_id immediately; then query the task status and result via /suno/fetch.

The core call chain of new-api Suno is: POST /suno/submit/{ACTION} to submit a task, and GET /suno/fetch/{task_id} or POST /suno/fetch to query the result.

This site also offers OpenAI-style convenience entry points under /v1/music/*, but they are not the new-api Suno format described in this document. When you need compatibility with existing new-api Suno clients, use the /suno/* paths described here.

Base URL#

Examples in this document use:

text
https://api.apimax.ai

The full music generation URL is:

text
https://api.apimax.ai/suno/submit/MUSIC

Do not add an extra /v1 before /suno. The following are not new-api Suno submission paths:

text
/v1/suno/submit/MUSIC
/v1/music/generations

Authentication#

All /suno/* requests use this site's API key:

http
Authorization: Bearer sk-xxxxxxxxxxxxxxxxxxxxxxxx
Content-Type: application/json

You can create an API key on the API keys page. Use the full key, including the sk- prefix.

Keep API keys on the server side only; never put them in a browser frontend, public repository, or client installer.

Submission endpoint#

http
POST /suno/submit/{ACTION}

The action in the path is case-insensitive; the server normalizes it to uppercase. For readability and consistency with the documentation, always use uppercase actions.

Supported actions#

actionPurposeKey inputs
MUSICGenerate music, continue a song, or generate with a reused voicegpt_description_prompt or prompt, etc.
LYRICSGenerate lyricsprompt
WAVGet lossless WAV audioclip_id
MP4Get a music videoclip_id
SPEEDAdjust audio speedclip_id, speed_multiplier
TIMINGGet lyric timingclip_id
CROPCrop audioclip_id, crop_start_s, crop_end_s
MIDIGet MIDIclip_id
FADEAdd fade in/outclip_id, plus at least one fade-in or fade-out time
CONCATMerge or extend clipsclip_id
REVERSEReverse audio playbackclip_id
REMASTERRemaster or upsampleclip_id
WAVEFORMGet waveform dataclip_id
DOWNBEATSGet downbeat analysisclip_id

An unknown action returns 400 with invalid_action.

Generate music#

Description mode#

Describe the music you want, and Suno generates the lyrics and the song:

cURL
curl --request POST \
  --url https://api.apimax.ai/suno/submit/MUSIC \
  --header 'Authorization: Bearer sk-xxxxxxxxxxxxxxxxxxxxxxxx' \
  --header 'Content-Type: application/json' \
  --data '{
    "gpt_description_prompt": "an upbeat summer pop song with female vocals about a sunset by the sea",
    "make_instrumental": false,
    "mv": "chirp-v3-0"
  }'

Custom lyrics mode#

Provide your own lyrics, title, and style tags:

cURL
curl --request POST \
  --url https://api.apimax.ai/suno/submit/MUSIC \
  --header 'Authorization: Bearer sk-xxxxxxxxxxxxxxxxxxxxxxxx' \
  --header 'Content-Type: application/json' \
  --data '{
    "prompt": "[Verse]\nThe evening breeze drifts through the quiet streets\n[Chorus]\nWe run toward the coastline",
    "title": "Coastline",
    "tags": "pop, female vocal, uplifting",
    "make_instrumental": false,
    "mv": "chirp-v3-0"
  }'

Common MUSIC fields#

FieldTypeRequiredDescription
gpt_description_promptstringEither oneA natural-language description of the music; suited to automatic lyrics mode
promptstringEither oneCustom lyrics; may include section markers such as [Verse] and [Chorus]
titlestringNoSong title
tagsstringNoStyle, genre, mood, and vocal tags
mvstringNoSuno model version; defaults to chirp-v3-0 when omitted
make_instrumentalboolNoWhether to generate an instrumental-only track
continue_clip_idstringNoSource clip ID to continue from
continue_atnumberNoSecond in the source audio where the continuation starts
persona_idstringNoUse a created vocal voice
taskstringNoExtended task type, e.g. vox, gen_stem
stem_taskstringNoStems type, e.g. two or twelve
notify_hookstringNoCallback URL invoked at task terminal states

Generate lyrics#

cURL
curl --request POST \
  --url https://api.apimax.ai/suno/submit/LYRICS \
  --header 'Authorization: Bearer sk-xxxxxxxxxxxxxxxxxxxxxxxx' \
  --header 'Content-Type: application/json' \
  --data '{
    "prompt": "Write Chinese pop lyrics about a reunion on a rainy night"
  }'

LYRICS requires a non-empty prompt; otherwise it returns prompt_empty.

Post-processing examples#

Get WAV#

cURL
curl --request POST \
  --url https://api.apimax.ai/suno/submit/WAV \
  --header 'Authorization: Bearer sk-xxxxxxxxxxxxxxxxxxxxxxxx' \
  --header 'Content-Type: application/json' \
  --data '{
    "clip_id": "11f1b88e-xxxxxxxxxxxxxxxxxxxxxxxx"
  }'

Adjust speed#

cURL
curl --request POST \
  --url https://api.apimax.ai/suno/submit/SPEED \
  --header 'Authorization: Bearer sk-xxxxxxxxxxxxxxxxxxxxxxxx' \
  --header 'Content-Type: application/json' \
  --data '{
    "clip_id": "11f1b88e-xxxxxxxxxxxxxxxxxxxxxxxx",
    "speed_multiplier": 1.15,
    "keep_pitch": true
  }'

Crop audio#

cURL
curl --request POST \
  --url https://api.apimax.ai/suno/submit/CROP \
  --header 'Authorization: Bearer sk-xxxxxxxxxxxxxxxxxxxxxxxx' \
  --header 'Content-Type: application/json' \
  --data '{
    "clip_id": "11f1b88e-xxxxxxxxxxxxxxxxxxxxxxxx",
    "crop_start_s": 10,
    "crop_end_s": 35,
    "is_crop_remove": false
  }'

crop_end_s must be greater than crop_start_s.

Add fade in/out#

cURL
curl --request POST \
  --url https://api.apimax.ai/suno/submit/FADE \
  --header 'Authorization: Bearer sk-xxxxxxxxxxxxxxxxxxxxxxxx' \
  --header 'Content-Type: application/json' \
  --data '{
    "clip_id": "11f1b88e-xxxxxxxxxxxxxxxxxxxxxxxx",
    "fade_in_time": 2.5,
    "fade_out_time": 3
  }'

Provide at least one of fade_in_time and fade_out_time.

Submission response#

Every successful /suno/submit/{ACTION} call returns the same structure:

200
{
  "code": "success",
  "message": "",
  "data": "task_01Jxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
}

data is this site's public task ID. Use this ID for subsequent queries, callback correlation, and troubleshooting; do not use the upstream internal task ID.

A successful submission only means the task has been created; it does not mean the music, lyrics, or processing result is finished.

Query a single task#

Use the query path that corresponds to the new-api Suno format:

http
GET /suno/fetch/{task_id}
cURL
curl --request GET \
  --url https://api.apimax.ai/suno/fetch/task_01Jxxxxxxxxxxxxxxxxxxxxxxxxxxxx \
  --header 'Authorization: Bearer sk-xxxxxxxxxxxxxxxxxxxxxxxx'

Response structure:

200
{
  "code": "success",
  "message": "",
  "data": {
    "task_id": "task_01Jxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
    "platform": "suno",
    "action": "MUSIC",
    "status": "SUCCESS",
    "progress": "100%",
    "fail_reason": "",
    "submit_time": 1780000000,
    "start_time": 1780000005,
    "finish_time": 1780000120,
    "data": [
      {
        "id": "clip_xxx",
        "audio_url": "https://example.com/audio.mp3",
        "status": "complete",
        "image_url": "https://example.com/cover.jpeg",
        "title": "Coastline"
      }
    ]
  }
}

In the current responses action is an empty string and start_time is 0, so do not rely on these two fields; platform is either suno or sunoapi.

A task can have the following statuses:

StatusDescription
NOT_START / SUBMITTED / QUEUEDCreated or queuing
IN_PROGRESSBeing processed upstream
SUCCESSThe task succeeded; read data.data
FAILUREThe task failed; read data.fail_reason

Query tasks in batch#

http
POST /suno/fetch
cURL
curl --request POST \
  --url https://api.apimax.ai/suno/fetch \
  --header 'Authorization: Bearer sk-xxxxxxxxxxxxxxxxxxxxxxxx' \
  --header 'Content-Type: application/json' \
  --data '{
    "ids": [
      "task_01Jxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
      "task_01Kyyyyyyyyyyyyyyyyyyyyyyyyyyyy"
    ]
  }'

In batch queries, data is an array of tasks. When ids contains an ID that does not exist or does not belong to the current user, the whole request returns 404 (code is task_not_found) and no task data is returned.

This site also provides a generic task query endpoint:

http
GET /v1/tasks/{task_id}

When migrating existing new-api Suno clients, though, you can simply keep using /suno/fetch.

Terminal-state callbacks#

You can pass notify_hook in the submission request:

json
{
  "gpt_description_prompt": "a calm piano instrumental",
  "make_instrumental": true,
  "notify_hook": "https://your-service.example.com/webhooks/suno"
}

When a task enters SUCCESS or FAILURE, this site sends the terminal result to that URL. The callback URL must be a publicly reachable HTTPS address; the receiver should handle callbacks idempotently by task_id and keep /suno/fetch polling as a fallback.

Suno paths outside /suno/submit/*#

The following capabilities are not submit actions; they are only available under /v1/music/*. The gateway has no /suno/* equivalents: requests to /suno/upload/*, /suno/voice/*, /suno/prompts/* and /suno/recut return 404:

PathMethodTypePurpose
/v1/music/upload/audioPOSTAsyncUpload audio and import it as a Suno clip
/v1/music/voice/samplePOSTAsyncUpload a vocal sample
/v1/music/voice/createPOSTAsyncVerify and create a voice
/v1/music/voice/from-clipPOSTAsyncCreate a voice from an existing song
/v1/music/upload/filePOSTSyncUpload a file and get the result directly
/v1/music/prompts/suggestionsGETSyncGet style inspiration suggestions
/v1/music/prompts/upsamplePOSTSyncUpsample styles or tags
/v1/music/relinkPOSTSyncFetch fresh audio links for an existing clip

Their request and response formats differ from /suno/submit/*; see each endpoint's own documentation. Tasks returned by the async paths are queried with GET /v1/tasks/{task_id}.

What /v1/music/* is#

The new-api gateway also offers a set of /v1/music/* routes as convenient entry points for clients that prefer OpenAI-style parameters. For example:

text
POST /v1/music/generations
POST /v1/music/wav

These entry points are also forwarded into the same Suno task system, but their request and response formats differ from this document. The new-api Suno compatible format in this document is defined by /suno/submit/{ACTION} and /suno/fetch.

Common errors#

Rejected submissions use the structure below, where code is always invalid_request and message is the specific reason:

400
{
  "code": "invalid_request",
  "data": null,
  "message": "prompt_empty"
}
HTTPmessage (reason)Suggested handling
400invalid_actionCheck the action in /suno/submit/{ACTION}
400prompt_emptyAdd prompt to the LYRICS request
400clip_id_emptyAdd clip_id to post-processing requests
400speed_multiplier_emptyAdd speed_multiplier to the SPEED request
400crop_range_empty / crop_range_invalidCheck the crop start and end times
400fade_time_emptyProvide at least one fade-in or fade-out time
401Invalid API keyCheck the full Authorization: Bearer sk-... header
503No available channelRetry later or contact the administrator

401 responses use the gateway's general error format: {"error": {"code": "", "message": "Invalid token (request id: ...)", "type": "max_api_error"}}

Do not assume generation is finished just because the submission endpoint returned 200. You must keep polling until SUCCESS or FAILURE, or wait for the terminal-state callback.

Next steps

All docs
Relink Audio URLsSynchronously fetch ready-to-use audio URLs by Suno clip_id.Upsample Style TagsPolish and expand style tags and lyrics into a fuller style description.Get Style Inspiration SuggestionsGet random style or inspiration suggestions from the Suno upstream.Method 1: Create a Voice from an Existing SongCreate a vocal voice directly from a song clip already generated in this pool.Upload AudioImport user audio as a Suno-owned clip; returns an async upload task ID. With copyright=true the request switches to the copyright pipeline.Query Quota UsageUse an API key to query the remaining credits, used credits, and unlimited-quota status of the current key and its owning user.
On this page
OverviewOverviewBase URLAuthenticationSubmission endpointSupported actionsGenerate musicDescription modeCustom lyrics modeCommon MUSIC fieldsGenerate lyricsPost-processing examplesGet WAVAdjust speedCrop audioAdd fade in/outSubmission responseQuery a single taskQuery tasks in batchTerminal-state callbacksSuno paths outside /suno/submit/What /v1/music/ isCommon errorsNext steps
API

API /suno/submit/{action}