Base URL
All API endpoints use the following base URL:Content-Type: application/json).
Authentication
Every request must include an AppKey in theAuthorization header:
sk-mm-. You can create and manage keys from the dashboard under API Keys.
Response format
All responses share a common envelope:Error codes
Example error response:
Rate limiting
Rate-limited responses return HTTP429 with these headers:
Async workflow
Most music generation endpoints are asynchronous:
Recommended polling interval: every 5 seconds. Most tracks complete in 30–120 seconds.
Tip: Use
callback_url to avoid polling entirely — the server will POST results to your endpoint when done.
Webhook callbacks
When you providecallback_url, the server sends a POST request when the task completes or fails. See the Webhooks page for full payload details, signature verification, and retry behavior.