Suno music API
Model selection, APIMaster requests, async tasks and the official Suno MCP tool reference.
APIMaster’s Suno integration accepts a music-generation request, returns a task ID, and exposes preview links with MP3 or WAV exports available per track. Check the model marketplace for active channels before sending requests. The following examples use the APIMaster Key. Official Suno MCP tool examples use their own Suno OAuth session.
Choose a model
| APIMaster model | Suno MCP label | When to use it |
|---|---|---|
suno-v6 |
v6 |
Standard music generation for instrumental or vocal arrangements. |
suno-v6-wild |
v6-wild |
Exploratory arrangements and unusual style combinations. Official MIDI-conditioned generation uses this model in simple mode. |
suno-v6-mini |
v6-mini |
Quick auditions of themes or timbres before refining a longer piece. |
Suno’s model documentation describes an up-to-eight-minute model limit. The explicit duration field in the inspected MCP schema accepts 15–360 seconds. This endpoint uses the explicit MCP range. Suno v6 model guide
Submit and retrieve a task
Send POST /v1/music/generations with a Bearer APIMaster Key and an Idempotency-Key header. Reuse that header for a network retry with the same normalized inputs. A new generation needs a new key. A previously used key with different arguments returns HTTP 409.
A successful submission returns HTTP 202 with id, model, status and created_at. Poll GET /v1/music/tasks/{id} until completed or failed. When complete, each item in tracks[] contains a title, duration, preview_url and export_url. Use a Key from the same account to query the task and export tracks. Completed generation tasks settle once. Failed tasks release the reservation.
Standard v6 · suno-v6
A polished 20-second piano cue, without vocals.
| Parameter | Type | Required | Description and constraints |
|---|---|---|---|
model |
string |
Yes | suno-v6 |
description |
string |
By mode | Plain-language description, or a workspace/playlist description when organizing. Up to 3,000 characters. |
lyrics |
string |
By mode | Supplied song lyrics. Some Visuals tools instead accept shot lyric timing options. Up to 5,000 characters. |
style |
string |
No | Style or arrangement instructions. Up to 1,000 characters. Use in custom mode. |
title |
string |
No | Display title. Up to 256 characters. |
negative_style |
string |
No | Style tags to steer away from; use with caller-provided style tags. Up to 1,000 characters. |
instrumental |
boolean |
No | Request a track without sung vocals. |
duration |
integer |
No | Requested audio duration in seconds; the final length can differ by operation. 15–360 s. |
duration_guidance |
boolean |
No | Adapt automatically written lyrics to the requested duration. Requires duration. |
duration_strict |
boolean |
No | Enable the generation duration cap when duration is given. |
vocal_gender |
string |
No | Requested vocal tone category; a selected voice may determine this. male / female. |
controls.style_influence |
number |
No | Weight given to the submitted style tags. [0, 1]. |
controls.weirdness |
number |
No | How freely the generation can depart from expected results. [0, 1]. |
controls.variety |
integer |
No | How broadly the model can reinterpret submitted style tags. [0, 4]. |
curl "$APIMASTER_API_BASE/v1/music/generations" \
-H "Authorization: Bearer $APIMASTER_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: example-suno-v6" \
-d '{"model":"suno-v6","description":"Soft piano transition with brushed drums","instrumental":true,"duration":20}'
Exploratory v6 Wild · suno-v6-wild
A short vocal idea mixing acoustic folk and unexpected percussion.
| Parameter | Type | Required | Description and constraints |
|---|---|---|---|
model |
string |
Yes | suno-v6-wild |
description |
string |
By mode | Plain-language description, or a workspace/playlist description when organizing. Up to 3,000 characters. |
lyrics |
string |
By mode | Supplied song lyrics. Some Visuals tools instead accept shot lyric timing options. Up to 5,000 characters. |
style |
string |
No | Style or arrangement instructions. Up to 1,000 characters. Use in custom mode. |
title |
string |
No | Display title. Up to 256 characters. |
negative_style |
string |
No | Style tags to steer away from; use with caller-provided style tags. Up to 1,000 characters. |
instrumental |
boolean |
No | Request a track without sung vocals. |
duration |
integer |
No | Requested audio duration in seconds; the final length can differ by operation. 15–360 s. |
duration_guidance |
boolean |
No | Adapt automatically written lyrics to the requested duration. Requires duration. |
duration_strict |
boolean |
No | Enable the generation duration cap when duration is given. |
vocal_gender |
string |
No | Requested vocal tone category; a selected voice may determine this. male / female. |
controls.style_influence |
number |
No | Weight given to the submitted style tags. [0, 1]. |
controls.weirdness |
number |
No | How freely the generation can depart from expected results. [0, 1]. |
controls.variety |
integer |
No | How broadly the model can reinterpret submitted style tags. [0, 4]. |
curl "$APIMASTER_API_BASE/v1/music/generations" \
-H "Authorization: Bearer $APIMASTER_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: example-suno-v6-wild" \
-d '{"model":"suno-v6-wild","lyrics":"Blue kite above the field\nCome home with the summer wind","style":"acoustic folk and unusual percussion","title":"Blue Kite","duration":18}'
Quick v6 Mini · suno-v6-mini
A 15-second sketch to audition an acoustic guitar motif.
| Parameter | Type | Required | Description and constraints |
|---|---|---|---|
model |
string |
Yes | suno-v6-mini |
description |
string |
By mode | Plain-language description, or a workspace/playlist description when organizing. Up to 3,000 characters. |
lyrics |
string |
By mode | Supplied song lyrics. Some Visuals tools instead accept shot lyric timing options. Up to 5,000 characters. |
style |
string |
No | Style or arrangement instructions. Up to 1,000 characters. Use in custom mode. |
title |
string |
No | Display title. Up to 256 characters. |
negative_style |
string |
No | Style tags to steer away from; use with caller-provided style tags. Up to 1,000 characters. |
instrumental |
boolean |
No | Request a track without sung vocals. |
duration |
integer |
No | Requested audio duration in seconds; the final length can differ by operation. 15–360 s. |
duration_guidance |
boolean |
No | Adapt automatically written lyrics to the requested duration. Requires duration. |
duration_strict |
boolean |
No | Enable the generation duration cap when duration is given. |
vocal_gender |
string |
No | Requested vocal tone category; a selected voice may determine this. male / female. |
controls.style_influence |
number |
No | Weight given to the submitted style tags. [0, 1]. |
controls.weirdness |
number |
No | How freely the generation can depart from expected results. [0, 1]. |
controls.variety |
integer |
No | How broadly the model can reinterpret submitted style tags. [0, 4]. |
curl "$APIMASTER_API_BASE/v1/music/generations" \
-H "Authorization: Bearer $APIMASTER_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: example-suno-v6-mini" \
-d '{"model":"suno-v6-mini","description":"Acoustic guitar sketch with a clean ending","instrumental":true,"duration":15}'
Preview and export a track
Query the generation task and read tracks[]. A generation usually returns two candidates. Open a track's preview_url to listen on Suno without signing in. The link can be forwarded, and the Suno page may show creator details. Preview playback is free and uses no upstream download credits.
| Field | Type | Purpose |
|---|---|---|
preview_url |
string | Suno playback page |
export_url |
string | Relative path for an authenticated POST |
export_price_usd |
number | First successful export price for this track, currently $2.99 |
confirm |
boolean | Set to true in the POST body to authorize the $2.99 wallet charge |
format |
string | Export as mp3 (default) or wav. The first successful export costs $2.99 per track and unlocks both formats. |
curl "$APIMASTER_API_BASE/v1/music/tasks/$TASK_ID" \
-H "Authorization: Bearer $APIMASTER_KEY"
curl "$APIMASTER_API_BASE/v1/music/tasks/$TASK_ID/tracks/0/export" \
-H "Authorization: Bearer $APIMASTER_KEY" \
-H "Content-Type: application/json" \
-d '{"confirm":true}'
curl "$APIMASTER_API_BASE/v1/music/tasks/$EXPORT_TASK_ID" \
-H "Authorization: Bearer $APIMASTER_KEY"
curl "$APIMASTER_API_BASE$TRACK_DOWNLOAD_URL" \
-H "Authorization: Bearer $APIMASTER_KEY" -o track.mp3
Confirmation returns an export task id. Poll that task until completed, then read tracks[0].download_url. Repeat confirmations and downloads of the same track do not charge again. Failed exports release the reservation. Files delivered before this release remain available at their original download URLs without a new charge.
For compatible follow-up operations such as BPM detection, you can reference the completed WAV export task ID and track index 0.
Cover, extend or mash up an APIMaster track
Submit an editing request to the same generation endpoint. The source must be a completed track belonging to your APIMaster account. Each edit has its own channel price.
| Parameter | Type | When required | Description |
|---|---|---|---|
operation |
string | Editing | cover, extend or mashup |
source.task_id |
string | All edits | Completed APIMaster task ID |
source.track_index |
integer | All edits | Zero-based index in that task’s tracks[] |
continue_at |
number | extend |
Starting point in seconds, at least 0.4 and within the source track |
second_source |
object | mashup |
A second, distinct track with the same task_id and track_index fields |
Use style and optional lyrics to guide an edit. Use instrumental only for an extension. Poll, preview and export the resulting tracks as for a new generation.
curl "$APIMASTER_API_BASE/v1/music/generations" \
-H "Authorization: Bearer $APIMASTER_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: example-cover-001" \
-d '{"model":"suno-v6","operation":"cover","source":{"task_id":"TASK_ID","track_index":0},"style":"acoustic string trio","duration":20}'
Stems, MIDI, sound effects, speech and video
Submit these operations to POST /v1/music/generations with your APIMaster Key and a distinct Idempotency-Key. Each example is a request body. Once the task completes, download each tracks[].download_url and read tracks[].format. Audio also exposes audio_url. The model field selects the APIMaster channel. Suno picks the provider model for sound effects, speech and video.
Separate stems · stems
- Export the source song first, then pass the export task ID and track index
0insource. source.task_idand zero-basedsource.track_indexidentify an owned, completed song.tool_options.modeis required.twoproduces vocals and accompaniment in two takes.twelveproduces two takes of twelve stems. Download the completed MP3s.
{
"model": "suno-v6",
"operation": "stems",
"source": {
"task_id": "EXPORT_TASK_ID",
"track_index": 0
},
"tool_options": {
"mode": "two"
}
}
Transcribe a song to MIDI · midi
source.task_idandsource.track_indexidentify a completed song owned by your APIMaster account.- The output is one
.midfile. Use itsdownload_url.
{
"model": "suno-v6",
"operation": "midi",
"source": {
"task_id": "TASK_ID",
"track_index": 0
}
}
Generate a sound effect · sounds
tool_options.descriptionis required and accepts 1–500 characters.- Optional fields are
loopfor a seamless loop,tempo(1–300 BPM),key(a chromatic major or minor key, such asF#m), andtitle. The result is up to two MP3s.
{
"model": "suno-v6",
"operation": "sounds",
"tool_options": {
"description": "A short dry bicycle bell",
"loop": false
}
}
Generate narration · speech
- Supply exactly one of
tool_options.script(verbatim, up to 5,000 characters) ortool_options.prompt(drafting instructions, up to 3,000). styleis optional with a script. Other optional fields aretitle,duration(15–360 seconds) andbacking_music(boolean). The response can contain two MP3 versions.
{
"model": "suno-v6",
"operation": "speech",
"tool_options": {
"script": "This is an original test of clear narration.",
"duration": 15,
"backing_music": false
}
}
Generate a short video · video
tool_options.promptis required.durationis an integer from 5 to 15 seconds and defaults to 5.aspectaccepts16:9,9:16or1:1.- Optionally attach an owned song through
source. The operation uses Visuals video-1 at 480p and returns MP4 files. Billing uses the configured per-second rate and the requested duration.
{
"model": "suno-v6",
"operation": "video",
"tool_options": {
"prompt": "A slow camera move beside a quiet lake",
"aspect": "16:9",
"duration": 5
}
}
Upload your own audio
Send raw WAV data up to 32 MiB. Use a different Idempotency-Key for each new file and an optional title query parameter. When the task completes, use its ID with track_index: 0 in a cover or extend request. Extensions also require continue_at. The completed upload is a private source reference for the same APIMaster account.
Upload has a base price of $0.004 per successful task. This request returns the upload task ID.
curl -X POST "$APIMASTER_API_BASE/v1/music/uploads?title=Original%20demo" \
-H "Authorization: Bearer $APIMASTER_KEY" \
-H "Content-Type: audio/wav" \
-H "Idempotency-Key: upload-original-001" \
--data-binary @demo.wav
Reference-based creation and song analysis
Submit these operations to POST /v1/music/generations. Prices in this table are base prices per successful task. Channel, group and account pricing rules determine the final charge.
| Operation | Result | Base price |
|---|---|---|
concat |
Join a completed extension with its source song | $0.004 |
bpm |
Return the tempo, key and time signature | $0.0008 |
aligned_lyrics |
Return timestamps in seconds for each word | $0.0008 |
inspo |
Create a new song from one owned track and tool_options.prompt using suno-v6 |
$0.068 |
remaster |
Remaster one owned track with AI using suno-v6. An optional tool_options.prompt can describe the desired adjustments |
$0.05 |
curl "$APIMASTER_API_BASE/v1/music/generations" \
-H "Authorization: Bearer $APIMASTER_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: suno-bpm-001" \
-d '{"model":"suno-v6","operation":"bpm","source":{"task_id":"TASK_ID","track_index":0}}'
Read tempo in result.bpm and lyric timing in result.words[], which contains word, start_s, end_s, success and p_align. Whole-song synthesis, inspiration and remaster tasks return preview tracks.
