Skip to main content

Base URL

All API endpoints use the following base URL:
All requests and responses are JSON (Content-Type: application/json).

Authentication

Every request must include an AppKey in the Authorization header:
AppKeys start with sk-mm-. You can create and manage keys from the dashboard under API Keys.
Requests without a valid AppKey return HTTP 401 with error code 1002.

Response format

All responses share a common envelope:

Error codes

Example error response:

Rate limiting

Rate-limited responses return HTTP 429 with these headers:

Async workflow

Most music generation endpoints are asynchronous:
Task statuses: 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 provide callback_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.