Generate music from a text prompt.
Authenticate with the X-API-Key request header.
List price. Volume / bulk customers get a discounted rate — contact us for account pricing.
| Name | Type | Required | Description | Default / options |
|---|---|---|---|---|
| prompt | string | required | Text prompt describing the desired output. | — |
| length_ms | number | optional | Target track length in milliseconds (3000-600000). | — |
| model_id | string | optional | Music model id. | default: music_v1 |
| force_instrumental | boolean | optional | Guarantee an instrumental (no vocals) track. | default: false |
| output_format | string | optional | Audio output format (e.g. mp3_44100_128). | default: mp3_44100_128 |
curl -X POST https://brahmand-api.bulletshorts.co/v1/audio/elevenlabs-music \
-H "X-API-Key: $TRINETRA_API_KEY" \
-H "Content-Type: application/json" \
-d '{"prompt":"Upbeat lo-fi hip hop with a mellow piano","length_ms":30000}'{
"prompt": "Upbeat lo-fi hip hop with a mellow piano",
"length_ms": 30000
}Submitting a job returns 202 Accepted with a job id. Poll GET /v1/jobs/{id} until the job reaches a terminal state, or register a webhook to be notified.
{
"job_id": "job_elevenlabsmusic_a1b2c3",
"status": "queued"
}{
"id": "job_elevenlabsmusic_a1b2c3",
"model": "elevenlabs-music",
"status": "succeeded",
"output": {
"outputs": [
{
"url": "https://cdn.trinetra.ai/out/elevenlabs-music/a1b2c3.mp3",
"type": "audio"
}
]
},
"credits_charged": 10
}Webhook: set a webhook_url on your API key to receive a POST with the terminal job document instead of polling.