Write a style

November 14, 2026 (December 1, 2026)

Table of contents

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

Turn a few words such as “indie folk” into a full style description. It covers the genre, instruments, vocals, mix and how the song builds. Send an empty style and it invents one. Use the result as style in POST /music. With model acemusic-v1 and your lyrics, it writes a production brief for those lyrics. It takes about 5 to 45 seconds. We don’t store the result.

ACE-Step v1.5 XL takes a style of up to 512 characters, so shorten a long one for that model.

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

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
{
  "style": "indie folk"
}
  • style is optional. The style to improve. Leave it out and ACE Music invents one.
    Maximum length: 1000 characters.
  • lyrics is optional. The lyrics the style is for. Only acemusic-v1 uses them.
    Maximum length: 5000 characters.
  • model is optional. acemusic-v1 uses lyrics and writes a production brief for them. 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 style, with the account that wrote it.

    A style ACE Music wrote

    {
      "email": "[email protected]",
      "style": "Contemporary indie folk with an intimate, pastoral atmosphere. The arrangement centers on delicate, intricate fingerpicked steel-string acoustic guitar and warm upright bass, supported by subtle brushed snare and soft foot-stomps. Melodic cello lines and distant lap steel swells add emotional depth behind a close-mic'd, breathy lead vocal with raw, vulnerable delivery. Warm tape saturation and room ambience preserve an organic live feel. The piece opens sparsely with solo guitar, gathers momentum as lush group harmonies and gentle piano join during the choruses, and resolves to a quiet, unresolved acoustic decay."
    }
    

    The style ACE Music wrote for style: indie folk

    {
      "email": "[email protected]",
      "style": "Acoustic indie folk centered on an intimate, fingerpicked steel-string guitar and warm, close-mic lead vocals. A steady brushed snare and resonant kick establish an understated shuffling pulse, supported by a rich bowed double bass. Gentle upright piano chords and delicate banjo countermelodies enrich the mid-range as the track progresses. The arrangement builds from a quiet, confessional verse in…"
    }
    
  • 400 Bad Request

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

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

    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 style must be a string
    • Parameter style length exceeds 1000 characters
    • Parameter lyrics must be a string
    • Parameter lyrics length exceeds 5000 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
    }
    
  • 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 a style: 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 a style: 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 style ACE Music wrote, ready for the style of POST /music.

The style
{ // TypeScript, fields marked ? may be absent
  email: string  // the account that wrote it
  style: string  // the style, for POST /music `style`
}
Examples
  • curl -X POST "https://api.useapi.net/v1/acemusic/music/style" \
         -H "Authorization: Bearer YOUR_API_TOKEN" \
         -H "Content-Type: application/json" \
         -d '{"style":"indie folk"}'
    
  • const response = await fetch('https://api.useapi.net/v1/acemusic/music/style', {
      method: 'POST',
      headers: {
        'Authorization': 'Bearer YOUR_API_TOKEN',
        'Content-Type': 'application/json'
      },
      body: JSON.stringify({
        "style": "indie folk"
      })
    })
    console.log(response.status, await response.json())
    
  • import requests
    
    response = requests.post(
        'https://api.useapi.net/v1/acemusic/music/style',
        headers={'Authorization': 'Bearer YOUR_API_TOKEN'},
        json={
            'style': 'indie folk'
        },
    )
    print(response.status_code, response.json())
    
Try It