Retrieve the Library

November 14, 2026 (December 1, 2026)

Table of contents

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

List the songs in an account’s ACE Music Library, newest first. It holds songs made through the API or on acemusic.ai, and audio uploaded with POST /files. Each song has a songId. Use it for POST /music references, stems, downloads and scores. ACE Music keeps every song until it is deleted. So this is also where you find the songs of a job older than 7 days.

Songs in this list have audioUrl but no playUrl, because that would cost one more call per song. For a song’s playUrl, the direct link for players, read the song with GET /music/songId.

We read the list live from ACE Music, and ACE Music leaves failed songs out of it. Page through it with after. Each page returns next, the value for the following page. On the last page, next is null.

https://api.useapi.net/v1/acemusic/music?email=email&limit=limit&after=after

Request Headers
Authorization: Bearer {API token}
Query Parameters
  • email is optional. The account whose Library you want. Required when you have more than one account connected.
  • limit is optional. Songs per page.
    Default: 20.
    Range: 1 to 60.
  • after is optional. The next value of the previous page.
    Maximum length: 200 characters.
Responses
  • 200 OK

    One page of the account’s Library, newest first. next is the value to send as after to read the following page.

    The library, newest first

    {
      "email": "[email protected]",
      "songs": [
        {
          "songId": "user:[email protected]:so_7d2e9b4c1a8f4e6d93b0c5a1",
          "taskId": "so_7d2e9b4c1a8f4e6d93b0c5a1",
          "status": "succeeded",
          "title": "paper-boat-demo",
          "model": null,
          "style": "Gentle indie folk ballad, slow contemplative tempo. Fingerpicked acoustic guitar, warm bass and soft ambient textures, breathy female vocals.",
          "lyrics": "[verse]\nFold the morning into paper\nSend it down the gutter stream\nSail away, little paper boat\nCarry every quiet dream",
          "instrumental": false,
          "duration": 35,
          "audioUrl": null,
          "coverUrl": "https://acemusic.ai/data/so_7d2e9b4c1a8f4e6d93b0c5a1-cover.jpg?v=1794595264008",
          "pageUrl": null,
          "created": "2026-11-14T20:06:23.708Z",
          "finished": "2026-11-14T20:06:35.653Z",
          "kind": "upload",
          "score": true,
          "upload": {
            "seconds": 35,
            "bpm": 88,
            "transcription": "done"
          }
        },
        {
          "songId": "user:[email protected]:so_4e7b2c9d0a5f4183b6d8e2c7",
          "taskId": "so_4e7b2c9d0a5f4183b6d8e2c7",
          "status": "succeeded",
          "title": "Orchestral Morning",
          "model": "acemusic-v1",
          "style": "cinematic orchestral, soaring strings, choir, epic drums",
          "lyrics": "[Verse]\nMorning light on the window pane\nCoffee steam and a quiet lane\n[Chorus]\nHold on, hold on, the day is new\nEvery road leads back to you",
          "instrumental": false,
          "duration": 44.71,
          "audioUrl": "https://acemusic.ai/data/so_4e7b2c9d0a5f4183b6d8e2c7.mp3",
          "coverUrl": "https://acemusic.ai/data/so_4e7b2c9d0a5f4183b6d8e2c7-cover.jpg?v=1794595833377",
          "pageUrl": "https://acemusic.ai/song/p6x2d8m4f9qa",
          "created": "2026-11-14T20:01:32.508Z",
          "finished": "2026-11-14T20:02:03.716Z",
          "kind": "original",
          "score": false
        }
      ],
      "next": "1794686492508~so_4e7b2c9d0a5f4183b6d8e2c7~1794686492508_1431913"
    }
    

    Two songs, and next for the following page

    {
      "email": "[email protected]",
      "songs": [
        {
          "songId": "user:[email protected]:so_000000000000000000000001",
          "taskId": "so_000000000000000000000001",
          "status": "succeeded",
          "title": "Orchestral Test",
          "model": "acemusic-v1",
          "style": "cinematic orchestral, soaring strings, choir, epic drums",
          "lyrics": "[Verse]\nMorning light on the window pane\nCoffee steam and a quiet lane\n[Chorus]\nHold on, hold on, the day is new\nEvery road leads back to you",
          "instrumental": false,
          "duration": 44.07,
          "audioUrl": "https://acemusic.ai/data/so_000000000000000000000001.mp3",
          "coverUrl": "https://acemusic.ai/data/so_000000000000000000000001-cover.jpg?v=1794598529169",
          "pageUrl": "https://acemusic.ai/song/example00061",
          "created": "2026-11-15T20:33:46.822Z",
          "finished": "2026-11-15T20:34:20.339Z",
          "kind": "original",
          "score": false
        },
        {
          "songId": "user:[email protected]:so_000000000000000000000002",
          "taskId": "so_000000000000000000000002",
          "status": "succeeded",
          "title": "Orchestral Test",
          "model": "acemusic-v1",
          "style": "cinematic orchestral, soaring strings, choir, epic drums",
          "lyrics": "[Verse]\nMorning light on the window pane\nCoffee steam and a quiet lane\n[Chorus]\nHold on, hold on, the day is new\nEvery road leads back to you",
          "instrumental": false,
          "duration": 44.55,
          "audioUrl": "https://acemusic.ai/data/so_000000000000000000000002.mp3",
          "coverUrl": "https://acemusic.ai/data/so_000000000000000000000002-cover.jpg?v=1794598529169",
          "pageUrl": "https://acemusic.ai/song/example00062",
          "created": "2026-11-15T20:33:46.821Z",
          "finished": "2026-11-15T20:34:20.341Z",
          "kind": "original",
          "score": false
        }
      ],
      "next": "1794703760945~so_000000000000000000000060~1794703760945_1444554"
    }
    
  • 400 Bad Request

    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": "Parameter email is required when more than one account is configured",
      "code": 400
    }
    
    {
      "error": "Invalid JSON: Unexpected token 'o', \"not json\" is not valid JSON",
      "code": 400
    }
    
    The error text of each parameter check
    • Parameter email is not a valid email
    • Parameter limit (x) is not an integer
    • Parameter limit (61) is more than 60
    • Parameter limit (0) is less than 1
    • Parameter after length exceeds 200 characters
  • 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": "Reading the Library: 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": "Reading the Library: 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).

    {
      "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
    }
    
Model

One page of the account’s Library, newest song first, with the cursor for the next page.

The Library page and the types it uses (Song, Split)
{ // TypeScript, fields marked ? may be absent
  email: string  // the account listed
  songs: Song[]  // newest first, see Song below
  next: string | null  // pass as `after` for the next page, null on the last page
}

Song:

{ // TypeScript, fields marked ? may be absent
  songId: string  // `user:[email protected]:so_...`, the song's id: use it as a reference, to split, download or delete
  taskId: string  // ACE Music's own id of the song (so_…)
  status: "planning" | "scoring" | "queued" | "running" | "succeeded" | "failed" | "interrupted"  // ACE Music's progress on the song
  title: string | null  // the song's title (ACE Music writes one for a prompt request)
  model: string | null  // acemusic-v1, acemusic-v1.1 or ace-step-1.5-xl. null for an uploaded file
  style: string | null  // the style the song was made with (ACE Music writes it for a prompt request)
  lyrics: string | null  // with tags such as [verse] and [chorus]
  instrumental: boolean | null  // true for a song with no vocals
  duration: number | null  // seconds
  audioUrl: string | null  // public mp3 link, `https://acemusic.ai/data/so_3f9c2a7d81e64b05a9d2c4e7.mp3`, once the song succeeded. It never changes, so store this one. null for an uploaded file. Get its audio with GET /music/download
  playUrl?: string | null  // a direct link to the song's audio for players, until playUrlExpires. For a made song it is the same mp3 as audioUrl and works about an hour. For an upload it is the uploaded audio and works 24 hours. Some browsers, such as Brave, block the redirect behind audioUrl, so store audioUrl and play playUrl. For about the first minute after a song is made, playUrl is the same link as audioUrl. You get it in job records, GET /music/{songId} and the POST /files answer for audio, not in GET /music. null while the song is not finished, or when we could not read the link
  playUrlExpires?: string | null  // ISO 8601, when playUrl stops working: read the job or the song again for a fresh one
  coverUrl: string | null  // cover art (jpg)
  pageUrl: string | null  // the song's page on acemusic.ai, when ACE Music made one
  created: string | null  // ISO 8601
  finished: string | null  // ISO 8601
  kind: "original" | "cover" | "mashup" | "edit" | "upload"  // how the song was made: original, cover, mashup, edit or upload. A remix shows as cover, and a file sent with POST /files as upload
  score: boolean  // true when ACE Music already has the song's score (GET /music/score)
  error?: {
    code?: string  // ACE Music's code, e.g. `ref_no_melody`, `song_not_made`
    message?: string  // ACE Music's own words
    reason?: string  // ACE Music's reason, when it gives one
  }  // a failed song
  refunded?: boolean  // ACE Music gave the credits back for a failed song
  stems?: {
    vocals?: Split  // mode vocals: vocal and instrumental
    all?: Split  // mode all: every stem ACE Music found
  }  // splits made with POST /music/stems. Their track links are signed (24 hours) on GET /music/{songId}, null elsewhere
  upload?: {
    seconds?: number  // its length, counted against the account's upload minutes
    bpm?: number  // the tempo ACE Music read
    transcription?: string  // done once ACE Music has read its lyrics, style and melody
  }  // an uploaded audio file (POST /files)
}

Split:

{ // TypeScript, fields marked ? may be absent
  status?: string  // ACE Music's progress on the split
  tracks: {
    type?: "vocal" | "instrumental" | "vocals" | "backing_vocals" | "drums" | "percussion" | "bass" | "guitar" | "keyboard" | "strings" | "brass" | "woodwinds" | "synth" | "fx"  // the stem
    url: string | null  // signed mp3 link (24 hours) on GET /music/{songId}, null elsewhere
    duration?: number  // seconds
  }[]  // one per stem
}
Examples
  • curl "https://api.useapi.net/v1/acemusic/music" \
         -H "Authorization: Bearer YOUR_API_TOKEN"
    
  • const response = await fetch('https://api.useapi.net/v1/acemusic/music', {
      headers: {
        'Authorization': 'Bearer YOUR_API_TOKEN'
      }
    })
    console.log(response.status, await response.json())
    
  • import requests
    
    response = requests.get(
        'https://api.useapi.net/v1/acemusic/music',
        headers={'Authorization': 'Bearer YOUR_API_TOKEN'},
    )
    print(response.status_code, response.json())
    
Try It