Create songs with vocals or instrumental tracks from your musical ideas.
API Examples
Submit Example
const response = await fetch('https://api.flaq.ai/api/v1/music/task', {
method: 'POST',
headers: {
Authorization: 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json',
},
body: JSON.stringify({
model_name: 'elevenlabs-music-v2.5',
prompt: 'An uplifting cinematic instrumental with warm strings, piano, and a gradual build',
duration: 60,
is_instrumental: true,
output_format: 'mp3_48000_192',
}),
});
const { data } = await response.json();
const taskId = data.task_id;
Polling Example
// Step 2: Poll for results
const taskId = data.task_id;
const pollResult = async (taskId) => {
const res = await fetch(`https://api.flaq.ai/api/v1/music/${taskId}`, {
headers: { 'Authorization': 'Bearer YOUR_API_KEY' }
});
return res.json();
};
while (true) {
const pollResultData = await pollResult(taskId);
const status = pollResultData.data.task_status;
if (status === 'succeed') {
console.log(pollResultData.data.task_result);
break;
}
if (status === 'failed') {
console.error(pollResultData.data.task_status_msg);
break;
}
await new Promise(resolve => setTimeout(resolve, 10000));
}
Submit Example
import requests
response = requests.post(
'https://api.flaq.ai/api/v1/music/task',
headers={
'Authorization': 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json',
},
json={
'model_name': 'elevenlabs-music-v2.5',
'prompt': 'An uplifting cinematic instrumental with warm strings, piano, and a gradual build',
'duration': 60,
'is_instrumental': True,
'output_format': 'mp3_48000_192',
},
)
response.raise_for_status()
task_id = response.json()['data']['task_id']
Polling Example
# Step 2: Poll for results
task_id = response.json()['data']['task_id']
poll_url = f"https://api.flaq.ai/api/v1/music/{task_id}"
while True:
poll_result = requests.get(poll_url, headers={'Authorization': 'Bearer YOUR_API_KEY'}).json()
status = poll_result['data']['task_status']
if status == 'succeed':
print(poll_result['data']['task_result'])
break
if status == 'failed':
print(poll_result['data']['task_status_msg'])
break
time.sleep(10)
Submit Example
curl -X POST "https://api.flaq.ai/api/v1/music/task" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model_name": "elevenlabs-music-v2.5",
"prompt": "An uplifting cinematic instrumental with warm strings, piano, and a gradual build",
"duration": 60,
"is_instrumental": true,
"output_format": "mp3_48000_192"
}'
Polling Example
# Step 2: Poll for results
# Replace {task_id} with the task_id returned from the submit response
curl -X GET "https://api.flaq.ai/api/v1/music/{task_id}" \
-H "Authorization: Bearer YOUR_API_KEY"
Eleven Music v2.5 Pricing
| Parameters | Price | Original Price | Discount |
|---|
README
Eleven Music v2.5 API (ElevenLabs AI Music Generation)
Eleven Music v2.5 API brings prompt-driven music generation to creative applications and content workflows on Flaq AI. Describe the genre, mood, instruments, vocal style, language, or lyrics, then set the duration to create music for your project. With an instrumental option and flexible MP3 output settings, this ElevenLabs music API helps developers and creative teams build song creation tools, background music workflows, and soundtrack production pipelines.
Key Features of Eleven Music v2.5 API
-
Text-to-Music Generation: Turn a musical brief into generated audio, using natural-language descriptions to guide the style and character of a track through ElevenLabs music API integration.
-
Vocal and Lyric Direction: Describe the desired singing style, language, and lyrics in your prompt to shape song ideas around a story, campaign, or creative concept.
-
Instrumental Music Option: Enable instrumental generation for background tracks and accompaniment, giving videos, podcasts, and interactive projects a musical foundation without sung vocals.
-
Adjustable Track Duration: Specify the requested length to suit short creative assets or longer musical passages, keeping soundtrack generation aligned with the needs of your project.
-
Flexible MP3 Output: Choose from supported sample-rate and bitrate settings to balance audio delivery requirements and file size across playback environments.
-
Creative Iteration: Revise the mood, instrumentation, or vocal direction in your prompt to explore alternative musical treatments for the same brief through a consistent API workflow.
How to Use Eleven Music v2.5 API for Music Generation on Flaq AI
-
Input: A required music description and requested duration. Include genre, mood, instruments, vocal direction, language, or lyrics where relevant to the track.
-
Output: Generated music audio in a supported MP3 format, retrieved through the task result after completion.
-
Music Controls: Set the track duration, enable the instrumental option when needed, and choose an audio output format suited to your application.
-
Task Workflow: Submit the music generation request, retain the task identifier, and check the result until processing completes. Usage is billed by requested duration, rounded up to whole minutes.
-
Capabilities: Prompt-based song creation, instrumental generation, musical style direction, and configurable audio delivery through Eleven Music v2.5 API integration.
Best Use Cases for Eleven Music v2.5 API Integration
-
Video Soundtracks: Generate music with a mood and requested length suited to product videos, explainers, and short-form content.
-
Podcast and Narration Backgrounds: Create instrumental accompaniment for intros, transitions, and spoken segments while keeping the musical direction consistent with the program.
-
Advertising Concepts: Explore musical treatments for campaign ideas, using prompts to describe the energy, instrumentation, and vocal direction of each concept.
-
Songwriting Demos: Combine lyric ideas with a description of genre and singing style to develop musical drafts for further creative refinement.
-
Game and Application Audio: Generate background music for scenes, menus, and interactive experiences with different moods and duration requirements.
Note Use prompts and lyrics you are authorized to provide. Listen to the completed track and review the applicable usage terms before publishing it as part of a project.
Eleven Music v2.5 vs Competitors: Comparative Analysis
-
Eleven Music v2.5 vs. Suno
Suno offers song creation from descriptions, including vocals and lyrics. Eleven Music v2.5 on Flaq AI gives developers a task-based music generation workflow with explicit duration, instrumental, and MP3 output controls for integration into their own products. -
Eleven Music v2.5 vs. Stable Audio
Stable Audio provides a creative workflow for generating music from prompts and refining tracks through variations and extensions. Eleven Music v2.5 on Flaq AI combines prompt-based vocal or instrumental direction with requested duration and selectable MP3 settings for application-driven music creation. -
Eleven Music v2.5 vs. Mureka 9.5 Prompt to Song
Mureka 9.5 Prompt to Song on Flaq AI offers style selection, vocal selection, and multiple audio formats. Eleven Music v2.5 brings musical and vocal direction together in the prompt, with a dedicated instrumental option and duration control for briefs that specify both the sound and the length of a track. -
Eleven Music v2.5 vs. Mureka O2 Generate Song
Mureka O2 Generate Song on Flaq AI starts from required lyrics and offers optional style guidance and vocal selection. Eleven Music v2.5 starts from a music description that can include lyrics, supporting both song concepts and instrumental soundtracks within the same generation workflow.