Skip to main content
Your app can generate music from a text prompt, with vocals or as an instrumental. Lovable uses Eleven Music v2 when ElevenLabs is enabled for your workspace, and a Lyria model otherwise. To use a specific model, name it in the project chat. Music generation is unavailable while your workspace has EU inference enabled. Ask Lovable to:
  • Build a music maker where people describe a track and play the result.
  • Add a soundtrack to a story, lesson, or product page.
  • Generate an instrumental background track in a style you describe.
  • Turn lyrics you provide into a song.
Ask for any of these in the project chat, and Lovable writes the feature and the backend call behind it. See Add an AI feature to your app for the whole flow, including publishing. Each music request, including the prompt and any attachments, must stay within 1 MB.

Generate a clip or full track with Lyria

Choose between the two Lyria models based on the length of the track you want: Describe the genre, mood, tempo, instruments, and singing language. You can include your own lyrics or attach an image for inspiration. For a full track with Lyria 3 Pro Preview, describe the length and sections you want, such as an intro, a verse, and a chorus. Your app shows a waiting message until Lyria finishes the track. Lyria returns an MP3 file rather than a saved link. To let people replay the same track later, ask Lovable to save the file to your app’s storage. Lovable charges workspace credits for AI gateway usage per completed Lyria track, even if your app stops waiting for it. Lovable does not charge for failed Lyria generations.

Stream a track with Eleven Music v2

After an admin or owner enables ElevenLabs for your workspace, Lovable uses Eleven Music v2 for new music features. A prompt can describe a sound, such as a slow waltz with fingerpicked guitar. Your app can ask for a track from 3 seconds to 10 minutes long. Keep artist, songwriter, publisher, and record label names out of prompts your app sends, including prompts your users write. Leave out song and album titles. Do not quote recognizable lyrics or ask for an imitation of a recording artist’s voice. Your app can start playback while Eleven Music v2 composes the track. Lovable adds a Powered by ElevenLabs label where the music plays in your app. The ElevenLabs Provider Rules ask you to keep it. Your app can let people save and replay their own tracks, but it must not offer generated music to others as a library or catalog. See the ElevenLabs Provider Rules. Lovable charges your workspace credits for AI gateway usage based on the audio your app receives, rounded up to a whole second. If the stream ends early, Lovable counts only the audio delivered. The underlying ElevenLabs rate is $0.0025 USD per second, or $0.15 for a minute of music.