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
| Parameter | Type | Required | Description |
|---|---|---|---|
type | string | Yes | Must be "MUSIC_GENERATOR" |
model | string | Yes | Must be "lyria-002" |
promptObject | object | Yes | Lyria-specific parameters |
Prompt Object Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
prompt | string | Yes | Describe the music style, mood, genre, and instruments |
negative_prompt | string | No | Describe what to avoid in the music |
seed | number | No | Random seed for reproducible results |
sample_count | number | No | Adjust 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/featuresGenerated 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
}