Music
Generate instrumental tracks and full songs with lyrics and vocals.
Keys need media.write.
Songs with vocals#
Songs render in the background (a few minutes): create, wait, download. See Async jobs.
curl -X POST https://api.voicemint.io/api/v1/music/songs \
-H "Authorization: Bearer $VOICEMINT_API_KEY" -H "Content-Type: application/json" \
-d '{"prompt": "a monsoon love song", "language": "Hindi", "genre": "Bollywood"}'
# then poll GET /music/songs/SONG_ID until audio_url is setOptions include custom_lyrics, instrumental, mood, tempo, vocal_gender and duration_seconds.
Instrumental tracks#
curl -X POST https://api.voicemint.io/api/v1/music-generation/generate \
-H "Authorization: Bearer $VOICEMINT_API_KEY" -H "Content-Type: application/json" \
-d '{"style": "ambient", "duration_seconds": 30, "mood": "relaxed"}'client.music.generate_lyria("lofi beats for studying", variant="clip") (POST /music/lyria3/generate) uses Google's Lyria model. Your generated music is listed by GET /music-generation/music-history.