Lyria 2
How to Make a Call
API Schemas
Generate a music sample
post
Body
modelstring · enumRequiredPossible values:
promptstringRequired
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.
negative_promptstringOptional
A description of what to exclude from the generated audio
seedintegerOptional
A seed for deterministic generation. If provided, the model will attempt to produce the same audio given the same prompt and other parameters.
Responses
200Success
application/json
post
/v2/generate/audio200Success
Retrieve the generated music sample from the server
get
Authorizations
AuthorizationstringRequired
Bearer key
Query parameters
generation_idstringRequiredExample:
<REPLACE_WITH_YOUR_GENERATION_ID>Responses
200Success
application/json
get
/v2/generate/audio200Success
Quick Code Example
"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?