Google Lyria - Generate music from text
Generate original 30-second music tracks from text descriptions using Google Lyria.
Create high-quality instrumental music by describing the genre, mood, instruments, and tempo you want. Ideal for video production, games, podcasts, and multimedia projects.
Each request produces a single track with a fixed duration of 30 seconds.
Tips for effective prompts:
- Include genre: “lo-fi hip hop”, “orchestral”, “synthwave”, “acoustic folk”
- Describe mood: “uplifting”, “melancholic”, “energetic”, “relaxed”
- Mention instruments: “piano”, “strings”, “electric guitar”, “808 drums”
- Add tempo hints: “slow tempo”, “upbeat”, “driving rhythm”
Authorizations
Your Magnific API key. Required for authentication. Learn how to obtain an API key
Body
Text description of the music you want to generate with Google Lyria. Be specific about genre, mood, instruments, and tempo for best results.
Tips for effective prompts:
- Include genre: "lo-fi hip hop", "orchestral", "synthwave", "acoustic folk"
- Describe mood: "uplifting", "melancholic", "energetic", "relaxed"
- Mention instruments: "piano", "strings", "electric guitar", "808 drums"
- Add tempo hints: "slow tempo", "upbeat", "driving rhythm"
1 - 2500"Uplifting orchestral score with soaring strings and triumphant brass"
Text describing elements to avoid in the generated track, such as unwanted instruments, styles, or moods.
"vocals, distortion, dissonance"
Seed for reproducible generation. Using the same prompt and seed returns a consistent result across requests. Omit to get a random seed on each request.
12345
Optional callback URL that will receive asynchronous notifications whenever the task changes status. The payload sent to this URL is the same as the corresponding GET endpoint response, but without the data field.
"https://www.example.com/webhook"
Response
OK - The task exists and the status is returned