Updated
What is the Suno Sample API?
The Suno Sample API is live on UnificAlly as suno-ai/sample, from $0.06 per request.
Suno Sample is an endpoint for making a new song out of one part of an existing track. You start with a clip from a previous Suno generation, send its ID to suno-ai/sample as clip_id, and mark the part you want with start_s and end_s in seconds. If you leave the window out, the first 60 seconds are used. The model then writes a fresh song around that sample, styled by your tags, with optional lyrics in prompt, a title, a make_instrumental flag, and negative_tags for styles to keep out. The model version is set with mv. The task returns a pair of new clips, and the source clip is not changed. Use it when one riff, hook, or chord loop in a draft is worth more than the rest of the song.
Suno Sample API specs
| Model ID | suno-ai/sample |
| Endpoint | POST https://api.unifically.com/v1/tasks |
| Request type | New song built around a sampled window of one clip |
| Output | A pair of new clips per request |
| Reference input | One clip_id from an earlier Suno generation |
| Sample window | start_s and end_s in seconds, default 0 to 60 |
| Model versions | chirp-hawk, chirp-hawk-wild, chirp-goose |
| Rate per request | $0.06 |
Billing is per request, with no subscription. The pricing page shows the live rate for the Suno Sample API and the other Suno models.
How to use the Suno Sample API
- Create an API key on the API keys page.
- Send a POST request to
/v1/taskswith the model ID and aninputobject that holdsmvand theclip_idto sample. - Read the
task_idfrom the response, then check the task until it is finished, or pass a callback URL and wait for the result.
curl -X POST https://api.unifically.com/v1/tasks -H "Content-Type: application/json" -H "Authorization: Bearer YOUR_API_KEY" -d '{
"model": "suno-ai/sample",
"input": {
"mv": "chirp-hawk",
"clip_id": "1901ec96-72c6-4c26-8e56-91028ca6070d",
"start_s": 0,
"end_s": 30,
"tags": "boom bap, vinyl"
}
}'
The response returns the task ID straight away:
{
"code": 200,
"success": true,
"data": {
"task_id": "abc123def456",
"status": "processing"
}
}
Poll GET /v1/tasks/{task_id} until the two new clips come back, or set a callback_url next to input to be notified when the task finishes.
curl https://api.unifically.com/v1/tasks/{task_id} -H "Authorization: Bearer YOUR_API_KEY"
Suno Sample API parameters
| Parameter | Type | Default | What it does |
|---|---|---|---|
mv | string | none, required | Model version: chirp-hawk, chirp-hawk-wild, or chirp-goose |
clip_id | string | none, required | Clip to sample from |
start_s | number | 0 | Sample window start in seconds |
end_s | number | 60 | Sample window end in seconds |
tags | string | none | Genre and style tags |
prompt | string | none | Custom lyrics |
title | string | none | Song title |
make_instrumental | boolean | none | Generate instrumental only |
negative_tags | string | none | Styles to avoid |
The Suno Sample API shares one docs page with mashup and inspiration: the Suno Sample API documentation has the full reference.
Key features of Suno Sample
Four features cover how sampling works on the API.
Choose the exact window
start_s and end_s set the sampled range in seconds and accept decimals. Line them up with a bar or a hook so the part you care about is what carries into the new song.
Sensible default window
Without a window, start_s is 0 and end_s is 60, so the first minute of the clip is sampled. Useful for quick experiments before you tune the range.
Restyle the sample
Set tags to move the sample into a new genre, add prompt lyrics, or set make_instrumental to true for a beat. negative_tags keeps unwanted styles out.
Two clips per request on v6
Pick chirp-hawk, chirp-hawk-wild, or chirp-goose with mv. Each task returns two new clips, and each one has its own ID for later edits.
What Suno Sample is best for
Turning a hook into a full track
Sample the eight seconds that work and let the model write the rest of the song around them.
Genre flips
Take a section of a ballad and rebuild it as boom bap or house with new
tags.Beats around a signature riff
Sample a guitar or synth line and set
make_instrumentaltotrueto get a backing track.Remixes with a recognisable motif
Keep one familiar part of a song so listeners can still tell where the remix came from.
Saving the best part of a draft
When only the chorus of a generation landed, sample it instead of throwing the clip away.
Suno Sample use cases
A beat-making app can show a waveform of the user's Suno clip, let them drag a selection, and send the selection as start_s and end_s with a genre picker mapped to tags. A remix feature can sample the chorus of a released track and generate two genre flips for the artist to choose from. A batch pipeline can sample the first 30 seconds of every draft in a project and generate instrumental variants for stock music libraries. To trim a clip down without generating anything new, use the Suno Crop API, and for a looser, style-only reference try the Suno Inspiration API.
FAQs
People also ask about Suno Sample
It takes one clip from an earlier Suno generation, cuts a window out of it with start_s and end_s, and writes a new song built around that sampled part. Each request returns a pair of new clips.
Keys for the Suno Sample API are created on the API keys page and sent as Authorization: Bearer <key>. You also need a clip from a previous Suno generation, since the request samples part of an existing track by its clip_id.
Pass suno-ai/sample the clip_id, mv, and a window in start_s and end_s (the first 60 seconds when omitted), plus optional tags, prompt, title, make_instrumental and negative_tags. Poll GET /v1/tasks/{task_id} until the two new clips come back, or set a callback_url next to input.
No. start_s defaults to 0 and end_s defaults to 60, so without them the first 60 seconds of the clip are sampled.
Set start_s and end_s to the seconds where the hook plays, for example 42 to 50. Both fields accept decimals, so you can line the window up with the beat.
Sample works from one clip and a specific time range, so the chosen part carries into the new song. Inspiration (suno-ai/inspiration) takes one to four whole clips as a general style guide.
Yes. Use tags for the new style (for example "boom bap, vinyl"), negative_tags for styles to avoid, prompt for new lyrics, and make_instrumental for a beat without vocals.
Yes, each request is billed because it generates new audio. The rate is $0.06 per request, and the pricing page shows the live rate. Failed tasks are never charged.