Docs / Music Series / Suno / Task submission
Task submissionPOSTSunoSOUNDAsync Tasks
Generate Sound Effects
Generate a sound effect; a task ID is returned asynchronously.
Bearer API KeyJSONServer-side call
Purpose#
Generate short sound effects with POST /v1/music/sound.
Request Fields#
| Field | Type | Required | Description |
|---|---|---|---|
prompt | string | Yes | Description of the sound effect, such as ocean waves, footsteps, or a button chime |
gpt_description_prompt | string | No | Additional description of the sound effect's atmosphere and details |
title | string | No | Sound effect title |
tags | string | No | Sound effect tags |
make_instrumental | boolean | No | Whether to use instrumental-only mode; defaults to false |
callback_url | string | No | HTTPS URL that receives a notification when the task completes or fails |
Request Example#
bash
curl -X POST 'https://api.apimax.ai/v1/music/sound' \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{
"prompt": "Ocean waves rolling onto a quiet beach",
"title": "Calm Sea",
"tags": "ocean, ambience",
"callback_url": "https://your-app.example/music-callback"
}'Submission Response#
A successful submission returns the task ID immediately:
json
{
"code": "success",
"message": "",
"data": "task_01KABCDEF0123456789XYZ"
}| Field | Type | Description |
|---|---|---|
code | string | Always success on success |
message | string | Usually an empty string on success |
data | string | Task ID used to query the result |
Query the Task Result#
Only single-task queries by task ID are supported:
bash
curl 'https://api.apimax.ai/v1/tasks/task_01KABCDEF0123456789XYZ' \
-H "Authorization: Bearer $API_KEY"Task status transitions in the following order:
queued → in_progress → completed / failed
status | Description | Terminal |
|---|---|---|
queued | Task created, waiting to be processed | No |
in_progress | Task is being processed | No |
completed | Task finished; the result is in data | Yes |
failed | Task failed; the reason is in error | Yes |
Poll every 2-5 seconds and stop once the status reaches completed or failed. If callback_url is set, you can also wait for the callback notification.
Example completed response:
json
{
"id": "task_01KABCDEF0123456789XYZ",
"object": "task",
"type": "music",
"platform": "music",
"status": "completed",
"progress": 100,
"model": "suno_sound",
"data": [
{
"id": "track_001",
"audio_url": "https://media.example/result.mp3",
"image_url": "https://media.example/cover.jpg",
"title": "Calm Sea",
"duration": 214.5,
"model_name": "suno_sound"
}
]
}During in_progress, previewable audio may be returned early, but you should keep polling until the task reaches a terminal status.

