Skip to main content

Google Lyria Music Generator

Generate professional-quality music compositions using Google's Lyria 2 model, powered by Vertex AI and DeepMind technology. Lyria creates 30-second WAV audio clips at 48kHz sample rate with advanced control over style, mood, and musical characteristics.

Parameters

ParameterTypeRequiredDescription
typestringYesMust be "MUSIC_GENERATOR"
modelstringYesMust be "lyria-002"
promptObjectobjectYesLyria-specific parameters

Prompt Object Parameters

ParameterTypeRequiredDescription
promptstringYesDescribe the music style, mood, genre, and instruments
negative_promptstringNoDescribe what to avoid in the music
seednumberNoRandom seed for reproducible results
sample_countnumberNoAdjust the number of audio clips to generate for the prompt. (Cannot be used with Seed).

Interactive API Testing

API Playground

https://api.1min.ai/api/features

Generated cURL Command:

curl -X POST "https://api.1min.ai/api/features" \
-H "API-KEY: <your-api-key>" \
-H "Content-Type: application/json" \
-d '{
"type": "MUSIC_GENERATOR",
"model": "lyria-002",
"conversationId": "MUSIC_GENERATOR",
"promptObject": {
"prompt": "upbeat electronic dance music",
"negative_prompt": ""
}
}'

Response Format

Successful requests return an AI record with the generated music file URL in resultObject.

{
"uuid": "record-uuid",
"type": "MUSIC_GENERATOR",
"model": "lyria-002",
"status": "PROCESSING",
"promptObject": {
"prompt": "upbeat electronic dance music...",
},
"resultObject": ["https://storage.url/music-file.wav"]
}

Use Cases

🎬 Film & Video Production

{
"prompt": "cinematic orchestral music with dramatic strings and epic brass, building tension",
"negative_prompt": "no percussion, no electronic elements"
}

🎮 Game Background Music

{
"prompt": "ambient fantasy music with soft flutes and gentle harp, peaceful atmosphere",
}

📢 Commercial & Marketing

{
"prompt": "upbeat corporate music with piano and light percussion, inspiring and positive",
"negative_prompt": "no heavy bass, no aggressive sounds"
}

🎧 Podcast Intros

{
"prompt": "modern tech podcast intro with electronic beats and synthesizers, futuristic",
"seed": 42
}

Reference