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.
Bearer key
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. Based on the service's load, the generation can be completed in 30-40 seconds or take a bit more.
Bearer key
Quick Code Example
Here is an example of generation an audio file based on a prompt using this music model.
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?