Documentation Index
Fetch the complete documentation index at: https://docs.musicmint.ai/llms.txt
Use this file to discover all available pages before exploring further.
Overview
All async generation endpoints accept an optionalcallback_url. When a task finishes (completed or failed), the server makes a single POST request to that URL with the task result.
This lets you avoid polling entirely.
Callback payload
Music generation completed
Task failed
Payload fields
| Field | Type | Description |
|---|---|---|
task_id | string | The task ID that finished |
status | string | "completed" or "failed" |
results | array | Present only when status = "completed". Array of generated music items. |
results[].id | string | Clip ID — use in audio processing endpoints |
results[].audio_url | string | MP3 download link |
results[].image_url | string | Cover art URL |
results[].title | string | Track title |
results[].duration | float | Duration in seconds |
results[].tags | string | Style tags |
results[].prompt | string | Lyrics / generation prompt |
results[].expire_at | integer | Unix timestamp (ms) when files expire |
error | string | Present only when status = "failed" |
Endpoints that support callbacks
| Endpoint | Callback triggered when |
|---|---|
POST /api/v1/music/generate | Track generation completes or fails |
POST /api/v1/music/cover | Cover / remix completes or fails |
POST /api/v1/music/remaster | Remaster completes or fails |
POST /api/v1/music/soundfx | Sound effect generation completes or fails |
POST /api/v1/music/add-vocals | Vocal overpainting completes or fails |
POST /api/v1/music/infill | Section replacement completes or fails |
Audio processing endpoints (
/stem, /midi, /timeline, /waveform, /wav) are synchronous and do not support callback_url.Signature verification
Every callback includes anX-Signature header. Verify it to confirm the request came from the API:
HMAC-SHA256(raw_request_body, signing_secret)
Your signing_secret is shown once when you create the AppKey. Store it securely.
Example — Node.js:
Reliability
- The server retries failed callbacks up to 5 times with exponential back-off (30s, 60s, 120s, 300s, 600s).
- Your endpoint must return HTTP
2xxwithin 10 seconds; otherwise the delivery is considered failed. - After all retries are exhausted, use Get Task to retrieve the result manually.