API references/Music
Generate a sound effect
sound.any.generateChoose a sound model and its supported output specifications.
suno-v6Async / $0.025 / 1 requesttext-to-sound-v2Sync / 5 s / $0.011 / 1 request
Unit price$0.025 / 1 request
Try in the consoleRequest parameters
| Parameter | Type | Description |
|---|---|---|
modelRequired | string | suno-v6 suno-v6Default: "suno-v6" |
promptRequired | string | Generation prompt Minimum length: 1Up to 3000 characters |
output_format | string | mp3 mp3Default: "mp3" |
Response data
Business data is in execution.result.data. Executions also include status, final cost and an Anyuse request ID.
| Parameter | Type | Description |
|---|---|---|
audio_base64 | string | Inline audio when available. |
files | array | Output files. Each item has url and kind; download url with the same Bearer credential. Links can expire. |
files[].kindRequired | string | files[].kind |
files[].urlRequired | string | files[].url |
files[].content_type | string | files[].content_type |
files[].duration | number | string | files[].duration |
files[].duration_seconds | number | string | files[].duration_seconds |
files[].file_size | number | string | files[].file_size |
files[].filename | string | files[].filename |
files[].height | number | string | files[].height |
files[].size | number | string | files[].size |
files[].width | number | string | files[].width |
mime_type | string | Media type of inline audio. |
Execution states and recovery
Submission returns a task ID. Query the execution for the final result. Polling of submitted upstream tasks resumes after a service restart.