music-generation
Google Lyria - Generate music from text
Generate original 30-second music tracks from text descriptions using Google Lyria.
Create high-quality instrumental music by describing the genre, mood, instruments, and tempo you want. Ideal for video production, games, podcasts, and multimedia projects.
Each request produces a single track with a fixed duration of 30 seconds.
Tips for effective prompts:
- Include genre: "lo-fi hip hop", "orchestral", "synthwave", "acoustic folk"
- Describe mood: "uplifting", "melancholic", "energetic", "relaxed"
- Mention instruments: "piano", "strings", "electric guitar", "808 drums"
- Add tempo hints: "slow tempo", "upbeat", "driving rhythm"
post/v1/ai/music-generation/google-lyria
Request
- Base URL: https://api.magnific.com
- URL: https://api.magnific.com/v1/ai/music-generation/google-lyria
- Auth: API key in header x-magnific-api-key
Request body
Example request
{
"prompt": "Uplifting orchestral score with soaring strings and triumphant brass",
"negative_prompt": "vocals, distortion, dissonance",
"seed": 12345,
"webhook_url": "https://www.example.com/webhook"
}Response
OK - The task exists and the status is returned
Example response
{
"data": {
"generated": [
"https://openapi-generator.tech",
"https://openapi-generator.tech"
],
"task_id": "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
"status": "CREATED"
}
}Changes
No recorded changes to this operation across all 1 revision of this API.