Suno: inspo
Generate a song from one to four public audio references.
Action facts
| Property | Value |
|---|---|
| Model | suno |
| Action | inspo |
| 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": "inspo",
"audioUrls": [
"https://example.com/reference.mp3"
]
}
}'{
"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 |
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 |
audioUrls | string[] | Yes | — | inspo: 1–4 public audio URLs used as inspiration references |
styleWeight | number | No | — | Style weight (0.00–1.00) |
weirdnessConstraint | number | No | — | Creativity / weirdness weight (0.00–1.00) |
audioWeight | number | No | — | Audio weight (0.00–1.00) |
vocalGender | “Male” | “Female” | No | — | Vocal gender: Male or Female |
autoLyrics | boolean | No | — | inspo: rewrite the provided lyrics creatively |
Conditional rules: Requires one to four entries in audioUrls.
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"
}
}