Lyrics to Song APITurn Lyrics into Music
Turn your own words into a full sung track. Set custom_mode: true, pass your lyrics as the prompt, add style tags, poll for the result, and download — with API keys, free trial credits, pricing, and production-ready docs.
What is the Lyrics to Song API?
It's the /sonic/create endpoint in custom_mode. Put your lyrics in the prompt field, steer the sound with tags, pick a model version, and the API returns a finished song that sings your words.
- Your Words, Sung
Pass your lyrics in
promptand the model sings them — no rewrite.- Any Style via Tags
Pop, rap, ballad, anthem — set genre, mood, and vocals in
tags.- Or Auto-Write Lyrics
No lyrics yet? Set
auto_lyricsand describe the song instead.
API Examples
Send your lyrics with a style, then poll for the finished song.
1curl -X POST 'https://api.musicapi.ai/api/v1/sonic/create' \
2--header 'Authorization: Bearer YOUR_API_KEY' \
3--header 'Content-Type: application/json' \
4--data '{
5 "custom_mode": true,
6 "prompt": "[Verse]\nCity lights blur as the rain comes down\n[Chorus]\nWe are not lost, we are just unfound",
7 "tags": "indie pop, dreamy, female vocals",
8 "title": "Unfound",
9 "mv": "sonic-v5"
10}'Need lyrics generated as a separate step first? Use the AI Lyrics API to get a title and structured lyrics, then pass them in here. Recommended polling interval: 15-25 seconds.
Why Build Lyrics-to-Song on MusicAPI?
Bring Your Lyrics
custom_mode sings the exact words you send in the prompt.
Async + Fast
Returns a task id; tracks finish in 1-3 min.
Style via Tags
Genre, mood, and vocals are a single tags string.
Commercial Rights
Release tracks built from your lyrics in any project.
Lyrics to Song API: Pricing, Free Access & API Keys
Developers turning lyrics into songs usually want three answers: how to test for free, how to get an API key, and how cost scales after the prototype works.
Free trial
Use free credits to test lyrics-to-song before choosing a paid plan.
Pricing
Credit-based (a standard create is 10 credits). Estimate per-track cost on the pricing page.
API keys
Generate a bearer token in your account, keep it server-side, and call the create and task endpoints.
Ready to Turn Lyrics into Songs?
Send your words, get a finished track. Start free, then scale with predictable credit pricing.
Frequently Asked Questions
Everything you need to know about turning lyrics into songs with the API.
What is a lyrics to song API?
A lyrics to song API turns words you supply into a full sung track over REST. With MusicAPI you POST to https://api.musicapi.ai/api/v1/sonic/create with custom_mode set to true and your lyrics in the prompt field, then poll the task endpoint until the song is ready.
How do I turn my own lyrics into a song with the API?
POST to /api/v1/sonic/create with custom_mode true, put your lyrics in the prompt field (the lyrics field is accepted as an alias), add a tags string for the musical style, a title, and a model version (mv) like sonic-v5. The call returns a task id; poll GET /api/v1/sonic/task/{id} until the status is complete.
Do I need to write the lyrics myself?
No. Bring your own lyrics in the prompt, or let the API write them: set custom_mode true with auto_lyrics true and pass a short description in the prompt, and the model generates both lyrics and style. You can also generate lyrics first with the lyrics endpoint and pass those in.
How do I control the musical style?
Use the tags field to set genre, mood, instruments, and tempo — for example 'pop, upbeat, female vocals, synth'. Tags steer the arrangement while your prompt provides the lyrics. A title is optional but recommended.
How much does generating a song from lyrics cost?
A standard create costs 10 credits. Test with free trial credits, estimate per-track cost on the pricing page, and scale as volume grows. Failed upstream tasks are auto-refunded and polling task status is free.
How long does generation take?
Generation is asynchronous: the create call returns a task id immediately and tracks typically finish in about 1-3 minutes. Poll the task endpoint every 15-25 seconds until the status is complete.
Do songs made from my lyrics include commercial rights?
Yes — audio generated through the API comes with commercial rights included, so you can release and monetize tracks built from your lyrics in apps, videos, games, and client work.