eleven_music
An advanced audio generation model designed to create high-quality audio tracks from textual prompts.
How to Make a Call
API Schemas
Generate a music sample
This endpoint creates and sends a music generation task to the server — and returns a generation ID and the task status.
A text description that can define the genre, mood, instruments, vocals, tempo, structure, and even lyrics of the track. It can be high-level (“peaceful meditation with voiceover”) or detailed (“solo piano in C minor, 90 BPM, raw and emotional”). Use keywords to control genre, emotional tone, vocals (e.g., a cappella, two singers harmonizing), structure (e.g., “lyrics begin at 15 seconds”), or provide custom lyrics directly in the prompt.
The length of the song to generate in milliseconds. This parameter may not always be respected by the model, and the actual audio length can differ.
10000Retrieve the generated music sample from the server
After sending a request for music generation, this task is added to the queue. This endpoint lets you check the status of a audio generation task using its id, obtained from the endpoint described above.
If the video generation task status is complete, the response will include the final result — with the generated audio URL and additional metadata.
Bearer key
<REPLACE_WITH_YOUR_GENERATION_ID>Full Example: Generating and Retrieving the Audio From the Server
The code below creates a audio generation task, then automatically polls the server every 10 seconds until it finally receives the audio URL.
Listen to the track we generated:
lo-fi pop hip-hop ambient music, slow intro: 10 s, then faster and with loud bass: 10 s"Last updated
Was this helpful?