Skip to main content

Introduction

Learn how to generate original music for your app using AI. The Music Generation integration allows your app to create instrumental music from text prompts using ElevenLabs. This enables you to generate custom soundtracks, background music, and audio themes without relying on pre-made music libraries. This integration is ideal for apps that want dynamic, personalized, or context-aware music experiences.

What You Can Build

With Music Generation enabled, your app can support features such as:
  • Background Music – Generate music that plays during onboarding, loading screens, or app usage.
  • Custom Soundtracks – Create unique music tailored to specific moments or user experiences.
  • Jingle Generators – Allow users to describe a tune and generate it instantly.
  • Game Music – Produce adaptive music that enhances gameplay or environments.
  • Audio Branding – Design music themes that represent your app or product identity.

How It Works

When the Music Generation integration is enabled, your app sends a text prompt describing the desired music to ElevenLabs, which generates an instrumental track based on that input. Your app can:
  • Generate music dynamically from text descriptions
  • Play music in real time within the app
  • Adapt music based on context or user actions
  • Create unique audio without storing large music files
This allows you to build rich audio experiences that feel personalized and dynamic. Because music generation is handled by ElevenLabs, you can focus on how music enhances your app experience.

Example Prompts

You can use prompts like these when building your app: Add background music Add AI-generated background music to my app that plays during onboarding or loading screens using ElevenLabs. Create a jingle generator Add a jingle generator to my app where users describe a tune and ElevenLabs produces it. These prompts help you quickly implement music generation features.

Common Use Cases

Developers commonly use the Music Generation integration for:
  • Mobile and web apps with ambient sound
  • Games and interactive experiences
  • Content creation tools
  • Podcast intros and audio branding
  • Storytelling and media platforms
This integration is especially useful when you want music to feel unique and adaptive.

Best Practices

When implementing music generation features, consider the following:
  • Keep music subtle so it enhances rather than distracts
  • Provide controls for users to play, pause, or mute audio
  • Match music style with your app’s theme and tone
  • Avoid abrupt transitions between tracks
  • Optimize playback for smooth performance