Lyria 2
An advanced audio generation model designed to create high-quality audio tracks from textual prompts.
How to Make a Call
API Schemas
Generate a music sample
This endpoint creates and sends a music generation task to the server — and returns a generation ID and the task status.
Lyrics with optional formatting. You can use a newline to separate each line of lyrics. You can use two newlines to add a pause between lines. You can use double hash marks (##) at the beginning and end of the lyrics to add accompaniment. Maximum 600 characters.
A description of what to exclude from the generated audio
A seed for deterministic generation. If provided, the model will attempt to produce the same audio given the same prompt and other parameters.
Retrieve the generated music sample from the server
After sending a request for music generation, this task is added to the queue. Based on the service's load, the generation can be completed in 30-40 seconds or take a bit more.
Bearer key
<REPLACE_WITH_YOUR_GENERATION_ID>Quick Code Example
Here is an example of generation an audio file based on a prompt using the music model Lyria 2.
Listen to the track we generated:
"Majestic orchestral film score recorded in a top-tier London studio. A full-scale symphony orchestra delivers sweeping, cinematic music with rich emotional depth. The composition features soaring themes, dynamic contrasts, and complex harmonies. Expect powerful percussion, expressive strings, and prominent French horns and timpani. The arrangement emphasizes a dramatic narrative arc with intricate orchestrations and a profound, awe-inspiring atmosphere."Last updated
Was this helpful?