Lyria 3 - Generate music from text
Generate original music tracks from text descriptions using Lyria 3, with optional image references to guide mood and style.
Describe the genre, mood, instruments, and tempo you want, and optionally attach reference images that inform the atmosphere of the composition. Ideal for video production, games, podcasts, and multimedia projects.
Tips for effective prompts:
- Include genre: “cinematic”, “jazz”, “electronic”, “ambient”
- Describe mood: “dramatic”, “playful”, “tense”, “peaceful”
- Mention instruments: “grand piano”, “saxophone”, “synth pads”, “percussion”
- Add tempo hints: “andante”, “fast-paced”, “steady groove”
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 Lyria 3. Be specific about genre, mood, instruments, and tempo for best results.
Tips for effective prompts:
- Include genre: "cinematic", "jazz", "electronic", "ambient"
- Describe mood: "dramatic", "playful", "tense", "peaceful"
- Mention instruments: "grand piano", "saxophone", "synth pads", "percussion"
- Add tempo hints: "andante", "fast-paced", "steady groove"
10 - 2000"Cinematic ambient track with warm synth pads, soft piano, and a gentle build"
Lyria 3 generation model variant.
Available models:
clip: Faster generation optimized for short clips (default)pro: Higher-fidelity generation for professional-quality tracks
clip, pro "clip"
Optional reference images to guide the mood and style of the generated music. Each entry must include the image URL and its MIME type.
Image requirements:
- Publicly accessible URLs or GCS format
- Supported formats: PNG, JPEG, WebP
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