Write lyrics

November 14, 2026 (December 1, 2026)

Table of contents

  1. Request Headers
  2. Request Body
  3. Responses
  4. Model
  5. Examples
  6. Try It

ACE Music writes lyrics and a title from your request, without making a song. It takes about 5 to 25 seconds. The lyrics come tagged by section, such as [verse] and [chorus]. Edit them if you like. Then send them to POST /music as lyrics, with a style. POST /music/style can write the style for you.

To rewrite lyrics, send them as lyrics with a request such as “make the chorus shorter”. Add a style to get words that fit the music. With model acemusic-v1, the writer adds section headers for ACE Music v1 that say how each part is played. We don’t store the result. Call again for another version. It charged no credits in our tests.

https://api.useapi.net/v1/acemusic/music/lyrics

Request Headers
Authorization: Bearer {API token}
Content-Type: application/json
# Or send the same fields as multipart/form-data:
# Content-Type: multipart/form-data
Request Body
{
  "prompt": "A short song about a cat who loves rainy days",
  "style": "acoustic indie folk"
}
  • prompt is required. What to write about, or what to change in the lyrics you send.
    Maximum length: 2000 characters.
  • style is optional. The song’s style, for lyrics that fit it.
    Maximum length: 1000 characters.
  • lyrics is optional. Existing lyrics to rewrite or continue.
    Maximum length: 5000 characters.
  • title is optional. A working title.
    Maximum length: 80 characters.
  • model is optional. acemusic-v1 adds section headers that say how each part is played. The other models change nothing here.
    Supported values: acemusic-v1, acemusic-v1.1, ace-step-1.5-xl.
  • email is optional. The ACE Music account to use. Leave it out and we use any healthy account.
Responses
  • 200 OK

    The lyrics and a title, with the account that wrote them.

    Lyrics ACE Music wrote

    {
      "email": "[email protected]",
      "title": "Rainy Day Whiskers",
      "lyrics": "[verse]\nCurled up on the window sill\nWatching every drop spill\nPaws tucked in against the cold\nGrey skies turning into gold\n\n[chorus]\nPatter, patter on the glass\nWatching little rivers pass\nTail twitch, half-closed eyes\nSleeping under stormy skies\n\n[verse]\nThunder rolls a gentle sound\nRaindrops drumming on the ground\nSoft purr humming in my chest\nRainy days are always best\n\n[outro]\nPatter, patter, rain falls deep\nTime to curl right back to sleep"
    }
    

    Lyrics for a short song about a cat who loves rainy days

    {
      "email": "[email protected]",
      "title": "Rainy Day Whiskers",
      "lyrics": "[verse]\nGray sky gathers above the roof\nFirst tiny tap from a single drop\nPaws stretch out on the windowsill\nCurling up while the world goes still\n\n[chorus]\nDrip-drop rhythm on the window pane\nSoft warm fur in the gentle rain\nWatching every trickle slowly slide\nBest place to be is tucked inside\n\n[verse]\nPigeons huddle under eaves outside\nPuddles rippling on the garden path\nTail gives a flick in a …"
    }
    
  • 400 Bad Request

    ACE Music refused the request. The text gives its reason.

    No ACE Music account is connected. Add one with POST /accounts.

    ACE Music’s writer refused the request. The text gives its reason.

    The request itself is wrong. Fix what the text names, then send it again.

    The body could not be read. It is not valid JSON, or a multipart upload was sent without its boundary.

    {
      "error": "Please add at least one ACE Music account first: https://useapi.net/docs/api-acemusic-v1/post-acemusic-accounts",
      "code": 400
    }
    
    {
      "error": "Invalid JSON: Unexpected token 'o', \"not json\" is not valid JSON",
      "code": 400
    }
    
    The error text of each parameter check
    • Parameter prompt is required
    • Parameter prompt must be a string
    • Parameter prompt length exceeds 2000 characters
    • Parameter style must be a string
    • Parameter style length exceeds 1000 characters
    • Parameter lyrics must be a string
    • Parameter lyrics length exceeds 5000 characters
    • Parameter title must be a string
    • Parameter title length exceeds 80 characters
    • Parameter model (x) valid values: acemusic-v1,acemusic-v1.1,ace-step-1.5-xl
    • Parameter email must be a string
    • Parameter email is not a valid email
  • 401 Unauthorized

    The useapi.net API token is missing or wrong.

    {
      "error": "useapi.net ⁝ Unauthorized",
      "code": 401
    }
    
  • 402 Payment Required

    The useapi.net subscription is not active.

    {
      "error": "useapi.net ⁝ Your account has no subscription, please subscribe to our services before submitting requests",
      "code": 402
    }
    
  • 404 Not Found

    The account is not connected (never added, or removed).

    {
      "error": "Account [email protected] is not configured",
      "code": 404
    }
    
  • 422 Unprocessable Content

    ACE Music wrote no lyrics for this request. Rephrase it and try again.

    {
      "error": "ACE Music wrote no lyrics for this request: rephrase it and try again",
      "code": 422
    }
    
  • 429 Too Many Requests

    ACE Music is limiting requests right now. The text gives its reason.

    Wait the seconds in the Retry-After header, or 30 seconds if there isn’t one, then send the request again.

    {
      "error": "Writing lyrics: HTTP 429",
      "code": 429
    }
    
  • 500 Internal Server Error

    Something failed on our side.

    {
      "error": "Something went wrong on our side, please retry",
      "code": 500
    }
    
    {
      "error": "Writing lyrics: ACE Music refused the call (HTTP 403). This is unexpected, please report it to support",
      "code": 500
    }
    
  • 503 Service Unavailable

    ACE Music couldn’t take the request right now, or the account’s session is being renewed. This happens before any step that charges, so nothing was charged.

    Wait the seconds in the Retry-After header, or 10 seconds if there isn’t one, then send the request again.

    {
      "error": "ACE Music sign-in for [email protected] failed moments ago, please retry shortly",
      "code": 503
    }
    
    {
      "error": "ACE Music sign-in for [email protected] failed (ACE Music did not answer within 30 s), please retry shortly",
      "code": 503
    }
    
    {
      "error": "ACE Music session renewal for [email protected] failed (HTTP 503), please retry shortly",
      "code": 503
    }
    
    {
      "error": "ACE Music session renewal for [email protected] is in progress, please retry shortly",
      "code": 503
    }
    
    {
      "error": "ACE Music sign-in for [email protected] is in progress, please retry shortly",
      "code": 503
    }
    
    {
      "error": "ACE Music refused the session for [email protected] right after a fresh sign-in, please retry shortly",
      "code": 503
    }
    
  • 596 Account Error

    ACE Music refused the account’s stored email and password. Add the account again with the current password (POST /accounts).

    No connected ACE Music account is healthy. Check GET /accounts, and add a paused account again with its current password.

    {
      "error": "Account [email protected]: ACE Music refused the stored email and password. Update the password with POST /accounts to resume using this account",
      "code": 596
    }
    
    {
      "error": "No healthy ACE Music account configured. Check GET /accounts",
      "code": 596
    }
    
Model

The lyrics ACE Music wrote, tagged by section, with a title for the song.

The lyrics
{ // TypeScript, fields marked ? may be absent
  email: string  // the account that wrote them
  title: string | null  // a title for the song, null when ACE Music gave none
  lyrics: string  // with tags such as [verse] and [chorus]
}
Examples
  • curl -X POST "https://api.useapi.net/v1/acemusic/music/lyrics" \
         -H "Authorization: Bearer YOUR_API_TOKEN" \
         -H "Content-Type: application/json" \
         -d '{"prompt":"A short song about a cat who loves rainy days","style":"acoustic indie folk"}'
    
  • const response = await fetch('https://api.useapi.net/v1/acemusic/music/lyrics', {
      method: 'POST',
      headers: {
        'Authorization': 'Bearer YOUR_API_TOKEN',
        'Content-Type': 'application/json'
      },
      body: JSON.stringify({
        "prompt": "A short song about a cat who loves rainy days",
        "style": "acoustic indie folk"
      })
    })
    console.log(response.status, await response.json())
    
  • import requests
    
    response = requests.post(
        'https://api.useapi.net/v1/acemusic/music/lyrics',
        headers={'Authorization': 'Bearer YOUR_API_TOKEN'},
        json={
            'prompt': 'A short song about a cat who loves rainy days',
            'style': 'acoustic indie folk'
        },
    )
    print(response.status_code, response.json())
    
Try It