Docs / Music Series / Suno / NewAPI Compatible
new-api Compatible Suno Format
The new-api compatible Suno format submits tasks via /suno/submit/{ACTION} and queries results via /suno/fetch.
Overview#
The new-api compatible Suno calling convention is prefixed with /suno/*. To create music, lyrics, or audio post-processing tasks, always use:
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:
https://api.apimax.aiThe full music generation URL is:
https://api.apimax.ai/suno/submit/MUSICDo not add an extra /v1 before /suno. The following are not new-api Suno submission paths:
/v1/suno/submit/MUSIC
/v1/music/generationsAuthentication#
All /suno/* requests use this site's API key:
Authorization: Bearer sk-xxxxxxxxxxxxxxxxxxxxxxxx
Content-Type: application/jsonYou 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#
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#
| action | Purpose | Key inputs |
|---|---|---|
MUSIC | Generate music, continue a song, or generate with a reused voice | gpt_description_prompt or prompt, etc. |
LYRICS | Generate lyrics | prompt |
WAV | Get lossless WAV audio | clip_id |
MP4 | Get a music video | clip_id |
SPEED | Adjust audio speed | clip_id, speed_multiplier |
TIMING | Get lyric timing | clip_id |
CROP | Crop audio | clip_id, crop_start_s, crop_end_s |
MIDI | Get MIDI | clip_id |
FADE | Add fade in/out | clip_id, plus at least one fade-in or fade-out time |
CONCAT | Merge or extend clips | clip_id |
REVERSE | Reverse audio playback | clip_id |
REMASTER | Remaster or upsample | clip_id |
WAVEFORM | Get waveform data | clip_id |
DOWNBEATS | Get downbeat analysis | clip_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 --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 --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#
| Field | Type | Required | Description |
|---|---|---|---|
gpt_description_prompt | string | Either one | A natural-language description of the music; suited to automatic lyrics mode |
prompt | string | Either one | Custom lyrics; may include section markers such as [Verse] and [Chorus] |
title | string | No | Song title |
tags | string | No | Style, genre, mood, and vocal tags |
mv | string | No | Suno model version; defaults to chirp-v3-0 when omitted |
make_instrumental | bool | No | Whether to generate an instrumental-only track |
continue_clip_id | string | No | Source clip ID to continue from |
continue_at | number | No | Second in the source audio where the continuation starts |
persona_id | string | No | Use a created vocal voice |
task | string | No | Extended task type, e.g. vox, gen_stem |
stem_task | string | No | Stems type, e.g. two or twelve |
notify_hook | string | No | Callback URL invoked at task terminal states |
Generate lyrics#
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 --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 --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 --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 --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:
{
"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:
GET /suno/fetch/{task_id}curl --request GET \
--url https://api.apimax.ai/suno/fetch/task_01Jxxxxxxxxxxxxxxxxxxxxxxxxxxxx \
--header 'Authorization: Bearer sk-xxxxxxxxxxxxxxxxxxxxxxxx'Response structure:
{
"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:
| Status | Description |
|---|---|
NOT_START / SUBMITTED / QUEUED | Created or queuing |
IN_PROGRESS | Being processed upstream |
SUCCESS | The task succeeded; read data.data |
FAILURE | The task failed; read data.fail_reason |
Query tasks in batch#
POST /suno/fetchcurl --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:
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:
{
"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:
| Path | Method | Type | Purpose |
|---|---|---|---|
/v1/music/upload/audio | POST | Async | Upload audio and import it as a Suno clip |
/v1/music/voice/sample | POST | Async | Upload a vocal sample |
/v1/music/voice/create | POST | Async | Verify and create a voice |
/v1/music/voice/from-clip | POST | Async | Create a voice from an existing song |
/v1/music/upload/file | POST | Sync | Upload a file and get the result directly |
/v1/music/prompts/suggestions | GET | Sync | Get style inspiration suggestions |
/v1/music/prompts/upsample | POST | Sync | Upsample styles or tags |
/v1/music/relink | POST | Sync | Fetch 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:
POST /v1/music/generations
POST /v1/music/wavThese 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:
{
"code": "invalid_request",
"data": null,
"message": "prompt_empty"
}| HTTP | message (reason) | Suggested handling |
|---|---|---|
| 400 | invalid_action | Check the action in /suno/submit/{ACTION} |
| 400 | prompt_empty | Add prompt to the LYRICS request |
| 400 | clip_id_empty | Add clip_id to post-processing requests |
| 400 | speed_multiplier_empty | Add speed_multiplier to the SPEED request |
| 400 | crop_range_empty / crop_range_invalid | Check the crop start and end times |
| 400 | fade_time_empty | Provide at least one fade-in or fade-out time |
| 401 | Invalid API key | Check the full Authorization: Bearer sk-... header |
| 503 | No available channel | Retry 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.

