Prompt-driven music generation. Synchronous, returns audio bytes, billed per second of generated music.
Synchronous endpoint. Describe the music you want; get back an MP3 of the requested length. Lyrics support is automatic — instrumental beds and vocal tracks come from the same endpoint.Documentation Index
Fetch the complete documentation index at: https://docs.kymaapi.com/llms.txt
Use this file to discover all available pages before exploring further.
application/json body.
elevenlabs-music is shipped.1000 (1 second) to 300000 (5 minutes). Also accepts duration_ms as an alias.200 OK with audio bytes. Pricing is per second of requested duration, locked at submit time — what you ask for is what you pay.
| Header | What |
|---|---|
X-Kyma-Model | elevenlabs-music |
X-Kyma-Duration-Sec | clip duration used for billing |
X-Kyma-Cost-USD | actual cost charged |
X-Kyma-Balance-USD | remaining balance |
$0.135/sec. A 30-second clip costs $4.05; a 5-minute clip costs $40.50.
| Status | error.code | When |
|---|---|---|
400 | not_a_music_model | model is not a music SKU |
400 | prompt_too_long | prompt > 2000 chars |
400 | invalid_duration | music_length_ms outside [1000, 300000] |
401 | auth_error | missing or invalid API key |
402 | billing_error | balance too low |
502 | provider_error | upstream provider failure |
POST /v1/audio/sfx — pair music beds with sound effectsPOST /v1/audio/speech — narration to layer over the music