Step 1: Get an AppKey
Log in at the dashboard, navigate to API Keys, and create a new AppKey. Your key looks like sk-mm-xxxxxxxxxxxxxxxx.
Keep your AppKey secret. Never commit it to version control or expose it in client-side code.
Step 2: Generate a track
Call the generate endpoint with your prompt:
Response:
Step 3: Poll for the result
Music generation is asynchronous and typically takes 30–120 seconds. Poll the task endpoint:
When status is completed, the response includes results with audio URLs:
Step 4 (optional): Set a Webhook
Instead of polling, provide callback_url in your request. The server will POST the task result to your URL when generation completes.
See authentication in the API reference for how to verify webhook signatures.