MusicAPI
HomeDocs
HomeDocs
  1. lyrics generation
  • Introduction
  • Credits Usage Guide
  • Music API FAQ & Troubleshooting
  • Common Scenarios
  • Error handling
  • sonic
    • Sonic Instructions
    • create music
      POST
    • extend music
      POST
    • concat music
      POST
    • cover music
      POST
    • create persona
      POST
    • create music with persona
      POST
    • upload music
      POST
    • get music
      GET
  • studio(Unavailable)
    • Studio Instructions
    • description mode (Use case1)
      POST
    • extend mode (Use case2)
      POST
    • custom mode (Use case3)
      POST
    • instrumental mode (Use case4)
      POST
    • get music
      GET
  • lyrics generation
    • Make Lyrics
      POST
  • nuro
    • Nuro Instruction
    • Error handling
    • create vocal music
      POST
    • create instrument music
      POST
    • get music
      GET
  1. lyrics generation

Make Lyrics

POST
https://api.musicapi.ai/api/v1/sonic/lyrics
The core API to generate your music lyrics.

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Body Params application/json
description
string 
required
lyrics desctiption
Example
{
  "description": "a song about sky"
}

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.musicapi.ai/api/v1/sonic/lyrics' \
--header 'Content-Type: application/json' \
--data-raw '{
  "description":"a song about sky"
}'

Responses

🟢200success
application/json
Body
code
integer 
required
the HTTP status code of the response
results
array [object {2}] 
required
title
string 
required
lyrics
string 
required
message
string 
required
the message of the response
Example
{
  "code": 200,
  "results": [
    {
      "title": "Whisper of Shadows",
      "lyrics": "[Verse]\nIn the alley dark as night\nLonely whispers out of sight\nI hear footsteps cold and tight\nEchoes of a fearsome fright\n\n[Verse 2]\nCandles flicker in the rain\nShadows dance they feel my pain\nHollow hearts and silent chains\nIn this void we all remain\n\n[Chorus]\nScreaming in the silence deep\nMonsters in my tangled sleep\nIn the dark where secrets creep\nPromises we couldn't keep\n\n[Verse 3]\nWindows shattered whisper slow\nBroken dreams that never show\nFaces lost in undertow\nMemories of what we know\n\n[Bridge]\nHands that reach but never find\nHope is just a state of mind\nIn the night the stars aligned\nBut they left our souls behind\n\n[Chorus]\nScreaming in the silence deep\nMonsters in my tangled sleep\nIn the dark where secrets creep\nPromises we couldn't keep"
    },
    {
      "title": "Midnight Shadows",
      "lyrics": "[Verse]\nMidnight shadows creeping up the wall\nVoices whisper secrets in the hall\nDarkness paints the sky with shades of fear\nHaunting echoes say the end is near\n\n[Verse 2]\nBroken mirrors shards scattered on the floor\nGhostly figures dance through every door\nCandlelight flickers casting twisted dreams\nNightmare visions tearing at the seams\n\n[Chorus]\nWe’re lost in the midnight maze alone\nTrapped by whispers cold as stone\nShadows wrap tight like a silent curse\nIn this blackened void it only gets worse\n\n[Verse 3]\nFalling deeper shadows swallow hope\nIn their endless grip we can’t cope\nHeartbeats racing drums in the dark\nNo escape just chasing dying sparks\n\n[Bridge]\nShattered souls calling from the abyss\nLost in time where nightmares kiss\nDarkness binds in its cruel embrace\nNo more light in this desolate place\n\n[Chorus]\nWe’re lost in the midnight maze alone\nTrapped by whispers cold as stone\nShadows wrap tight like a silent curse\nIn this blackened void it only gets worse"
    }
  ],
  "message": "success"
}
Previous
get music
Next
Nuro Instruction
Built with