AI Lyrics APIGenerate Song Lyrics from a Prompt
Turn a one-line idea into a finished set of lyrics with a single REST call. Send a short description and get a title and structured lyrics back synchronously — with API keys, free trial credits, pricing, and production-ready docs.
What is the AI Lyrics API?
The lyrics endpoint takes a short description and returns a title plus full song lyrics — synchronously, in the same response. It's the fastest way to add songwriting to an app, and it pairs naturally with music generation: write the words first, then sing them.
- Synchronous
No task polling — the response returns the title and lyrics directly, so you can render them immediately.
- Language-Matching
Lyrics come back in the language of your description, so localized apps work out of the box.
- Pairs with Generation
Feed the lyrics into a create or add-vocals call to turn the words into a finished song.
API Examples
One call in, title and lyrics out — no polling.
1curl -X POST 'https://api.musicapi.ai/api/v1/sonic/lyrics' \
2--header 'Authorization: Bearer YOUR_API_KEY' \
3--header 'Content-Type: application/json' \
4--data '{
5 "description": "an upbeat indie pop song about late summer nights"
6}'The description must be under 120 characters. Lyrics generation costs 2 credits; timed-out generations are not charged.
Why Build Lyrics on MusicAPI?
Instant Response
Synchronous — title and lyrics in one call.
Just 2 Credits
Cheap to test; no charge on timeouts.
Any Language
Lyrics match the description's language.
Songwriting Flow
Generate words, then turn them into a song.
AI Lyrics API: Pricing, Free Access & API Keys
Developers adding a lyrics generator 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 generation before choosing a paid plan.
Pricing
2 credits per call. See the pricing page for credit plans and volume estimates.
API keys
Generate a bearer token in your account, keep it server-side, and call the lyrics endpoint.
Ready to Generate Lyrics?
Add a songwriting endpoint to your app in minutes. Start free, then scale with predictable credit pricing.
Frequently Asked Questions
Everything you need to know about the AI lyrics API.
What is an AI lyrics API?
An AI lyrics API generates original song lyrics from a short text description. With MusicAPI you POST a description to /api/v1/sonic/lyrics and receive a title and structured lyrics back in the same response.
How do I generate lyrics with the API?
POST to https://api.musicapi.ai/api/v1/sonic/lyrics with a JSON body containing a 'description' (under 120 characters). The call returns synchronously with a generated title and lyrics — no polling required.
Is the lyrics endpoint synchronous?
Yes. Unlike music generation, the lyrics endpoint returns the title and lyrics directly in the response, so you don't need to poll a task. If the upstream generation times out, no credits are charged.
How much does generating lyrics cost?
Lyrics generation costs 2 credits per call. You can test with free trial credits and review credit pricing on the pricing page. Timed-out generations are not charged.
What language are the lyrics in?
The lyrics match the language of your description — the prompt is language-matching first, so a description written in another language returns lyrics in that language.
Can I feed the lyrics into a song?
Yes. A common workflow is to generate lyrics first, then pass them as the prompt/lyrics to a music generation call (for example create_music or add_vocals) so the song uses your generated words.
Do generated lyrics include commercial rights?
Yes, content generated through the API comes with commercial rights included. You own the generated lyrics and can use them for commercial purposes.