#Im getting error 500 when generating music, any solution to this?
1 messages · Page 1 of 1 (latest)
Short answer: 500 means an internal error on our side. Here’s how to resolve or work around it when generating music.
Do a quick health check
- Check the system status to see if there’s an active incident affecting the API. If there is, wait and retry. (status.elevenlabs.io)
Validate your Music API request
- Use the correct endpoint/base URL: POST https://api.elevenlabs.io/v1/music. (elevenlabs.io)
- Don’t send both prompt and composition_plan in the same request. Pick one. (elevenlabs.io)
- Keep prompt length ≤ 4,100 characters. (elevenlabs.io)
- If you pass music_length_ms, keep it between 3,000 and 300,000 ms (max 5 minutes). (elevenlabs.io)
- If you set output_format, try the default mp3_44100_128 first. Higher tiers are required for mp3_44100_192 (Creator+) and PCM 44.1 kHz (Pro+). An unsupported format on your plan can fail—use the default to test. (elevenlabs.io)
Confirm authentication and key settings
- Ensure you’re sending xi-api-key and that the API key isn’t restricted in a way that blocks the feature you’re calling. If needed, edit the key’s permissions in the Developers > API Keys page. (help.elevenlabs.io)
If it still returns 500
- Retry the same request after a short delay (transient backend issues can cause 5xx). Also recheck the status page for new incidents. (status.elevenlabs.io)
- If the error persists, contact support and include: timestamp, endpoint, full response body, and your request parameters (prompt/composition_plan, music_length_ms, output_format). Use the help center contact form. (help.elevenlabs.io)
If you can share whether you’re using the web app or the API, plus your request body (minus any secrets), I can help pinpoint the exact cause.
Sources:
ElevenLabs Status
Compose music | ElevenLabs Documentation
Compose music | ElevenLabs Documentation
Compose music | ElevenLabs Documentation
Compose music | ElevenLabs Documentation
Compose music | ElevenLabs Documentation
How do I authorize myself using an API key? – ElevenLabs
ElevenLabs Status
How can I contact support? – ElevenLabs
Im using the API