Suno: mashup
Remix exactly two prior tracks.
Action facts
| Property | Value |
|---|---|
| Model | suno |
| Action | mashup |
| Endpoint | POST /api/v1/generation/create |
| Result | audio in files |
| Pricing | View current pricing |
Minimal request
curl -X POST https://api.api-stock.com/api/v1/generation/create \
-H "Authorization: Bearer $API_STOCK_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "suno",
"input": {
"action": "mashup",
"sourceTaskIds": [
"019ca881-9503-7270-a560-f00fc2b15785",
"019ca881-9503-7270-a560-f00fc2b15786"
]
}
}'{
"code": 200,
"data": {
"taskId": "019ca881-9503-7270-a560-f00fc2b15785",
"status": "not_started",
"createdAt": "2026-08-22T12:00:00.000Z"
}
}Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
action | “music” | “extend” | “cover” | “add-instrumental” | “add-vocals” | “sound” | “stems” | “stems-all” | “wav” | “lyrics” | “voice” | “timestamped-lyrics” | “boost-style” | “music-cover” | “replace-section” | “music-video” | “inspo” | “upload” | “remaster” | “add-stem” | “vox” | “remove-section” | “crop” | “fade-in” | “fade-out” | “adjust-speed” | “concat” | “mashup” | “sample” | “midi” | “bpm” | Yes | "music" | Suno operation |
custom | boolean | No | — | false for simple mode, true for custom mode |
gptDescriptionPrompt | string | No | — | Simple mode: song / effect description (with optional lyrics) |
prompt | string | No | — | Custom mode: detailed lyrics / prompt (also the lyrics or sound description) |
tags | string | No | — | Custom mode: genre / style tags |
title | string | No | — | Title for the result |
sourceTaskIds | string[] | Yes | — | mashup: exactly 2 prior suno generation ids (taskIds) to remix together |
audioIds | string[] | No | — | mashup: parallel array to sourceTaskIds selecting the track in each source by its audioId (as returned in output.tracks[].audioId); omit an entry to use that source’s first track |
Conditional rules: Requires exactly two sourceTaskIds; simple mode also requires gptDescriptionPrompt.
Only send fields relevant to this action. When a request references sourceTaskId, the source must be a successful Suno task owned by the same account.
Result
curl https://api.api-stock.com/api/v1/task/status/$TASK_ID \
-H "Authorization: Bearer $API_STOCK_KEY"You can instead provide a top-level webhook. The task reaches finished, failed or expired; failed generations are refunded automatically. Data actions return output, while media actions return files.
{
"code": 200,
"data": {
"taskId": "019ca881-9503-7270-a560-f00fc2b15785",
"status": "finished",
"files": [
{
"fileUrl": "https://storage.api-stock.com/result.mp3",
"fileType": "music"
}
],
"createdTime": "2026-08-22T12:00:00.000Z"
}
}