Music generation
Lyria 3 creates music with vocals or instrumentals — clips or full tracks.
Google's Lyria 3 models generate original music from a text description or an image. Lyria 3 Clip makes 30-second clips for intros and stingers; Lyria 3 Pro produces full tracks up to about three minutes with vocals or instrumentals. Every track is billed per generation from the same wallet.
What you get
- Text or image prompts
- 30-second clips or full three-minute tracks
- Vocals and instrumentals
- Ideal for intros, ads, games and social content
- Same key and wallet as every other model
Common use cases
How it works
- 1Create your account and keySign up, top up your wallet and generate an API key from the dashboard.
- 2Describe the musicPOST a text description (or an image) to the music endpoint with your chosen Lyria model.
- 3Download the trackReceive the finished MP3 and use it in your product.
- 4Pay per trackEach generation is charged at the model's live market price.
Code examples
curl https://tokenrex.ai/api/public/music \
-H "Authorization: Bearer sk-tb-YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "lyria-3-pro",
"prompt": "Upbeat acoustic intro for a tech podcast, 30 seconds"
}'Frequently asked questions
Clip or Pro — which do I need?
Lyria 3 Clip makes ~30-second clips; Lyria 3 Pro makes full tracks up to about three minutes. Prices for both are listed below.
Can the music have vocals?
Yes. Lyria 3 supports vocals and instrumentals — describe what you want in the prompt.
Can I prompt with an image?
Yes. Lyria 3 accepts an image as the creative prompt as well as text.