- Stream URL: Available in 30-40 seconds.
- Downloadable song URL: Ready in 2-3 minutes.
Parameter Usage Guide
- When customMode is true (Custom Mode):
- If instrumental is true: style and title are required
- If instrumental is false: style, prompt, and title are required
- Prompt length limit:
- For V3_5 and V4 models: 3000 characters
- For V4_5 and V4_5PLUS models: 5000 characters
- Style length limit:
- For V3_5 and V4 models: 200 characters
- For V4_5 and V4_5PLUS models: 1000 characters
- title length limit: 80 characters
- When customMode is false (Non-custom Mode):
- Only prompt is required regardless of instrumental setting
- prompt length limit: 400 characters
- Other parameters should be left empty
Developer Notes
- Recommendation for First-Time Users: Start with customMode: false and instrumental: false, and only provide a prompt. This is the simplest setup to quickly test the API and experience the results.
- Generated files are retained for 15 days before being deleted
- Ensure all required fields are provided based on the customMode and instrumental settings to avoid errors
- Respect the character limits for prompt, style, and title to ensure successful processing
- Callback process has three stages: text (text generation), first (first track complete), complete (all tracks complete)
- You can use the Get Music Generation Details endpoint to actively check task status instead of waiting for callbacks
Authorizations
🔑 API Authentication
All endpoints require authentication using Bearer Token.
Get API Key
- Visit the API Key Management Page to obtain your API Key
Usage
Add to request headers:
Authorization: Bearer YOUR_API_KEY
⚠️ Note:
- Keep your API Key secure and do not share it with others
- If you suspect your API Key has been compromised, reset it immediately from the management page
Body
application/json
Response
Request successful
The response is of type object
.