Music v2 technical docs
Endpoint, auth header, parameters, prices, and tested request examples for ElevenLabs Music v2.
Endpoint and pricing
Request headers
Authorization required
Bearer Imole API key.
Content-Type required
Use application/json for JSON requests.
Request parameters
model required
Use music_v2.
prompt required
Music brief: genre, mood, tempo, instruments, and use case.
duration_seconds
Requested duration in seconds.
music_length_ms
Requested duration in milliseconds.
Tested request examples
curl -X POST "https://api.imole.app/v1/audio/music" \
-H "Authorization: Bearer $IMOLE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "music_v2",
"prompt": "A calm five second startup jingle with marimba and soft bass",
"duration_seconds": 5
}' \
--output music-v2.mp3curl -X POST "https://api.imole.app/v1/audio/music" \
-H "Authorization: Bearer $IMOLE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "music_v2",
"prompt": "A bright product intro bed with light percussion and plucked synths",
"music_length_ms": 8000
}' \
--output music-v2-8s.mp3curl -X POST "https://api.imole.app/v1/audio/music" \
-H "Authorization: Bearer $IMOLE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "music_v2",
"prompt": "A ten second ambient product bed with soft pads and gentle pulse",
"duration_seconds": 10
}' \
--output music-v2-10s.mp3