Retrieve a job

November 14, 2026 (December 1, 2026)

Table of contents

  1. Request Headers
  2. Responses
  3. Model
  4. Failed jobs and the webhook
  5. Examples
  6. Try It

Read a job by its jobid. You get one from POST /music and POST /music/stems. After a request with async set to true, or one without it that answered before the job was done, poll this endpoint. That means you read the job again and again until status is completed or failed.

Songs take about 15 to 170 seconds. A stem split takes about 90 to 120 seconds. So reading the job every 10 seconds is enough.

If a job is still running 30 minutes after it started, reading it shows it failed with 504. ACE Music may still finish it later. A later read then shows it completed.

Every read asks ACE Music for the job’s songs, so the links are always fresh. That covers each song’s playUrl and the stem track links. playUrl is a direct link to the same MP3 for players. It works until playUrlExpires, about an hour. Some browsers, such as Brave, block the redirect behind audioUrl. So store audioUrl and play playUrl. Stem track links work for 24 hours from the read.

We keep nothing of a job after it ends. Each read rebuilds the record from the songs ACE Music keeps in the account’s Library. A song may be deleted later, with DELETE /music/songId or on acemusic.ai. It then shows as { songId, taskId, status: "deleted" } with no links. The job shows the status of the song that remains.

If ACE Music has none of the job’s songs any more, the job answers 404. Any job answers 410 once it is older than 7 days.

You can skip polling. Send replyUrl with the POST request, and replyRef if you like. When the job completes or fails, we send this same job record as JSON to that URL, in one POST. See Failed jobs and the webhook.

https://api.useapi.net/v1/acemusic/jobs/jobid

  • jobid is required. The jobid of a POST /music or /music/stems answer, URL-encoded (it holds : and @).

For example, j1114201530412583907m-u12345-email%3Aexample%40example.com-task%3Aso_3f9c2a7d81e64b05a9d2c4e7.so_b6e14d0c9a7f4382be51f0a3-bot%3Aacemusic.

Request Headers
Authorization: Bearer {API token}
Responses
  • 200 OK

    The job record. You get HTTP 200 even when the job itself failed. status is processing, completed (with its songs or stems) or failed. A failed job carries its failure inside the record: code (400, 404, 422, 504 or 596) and error. If we can’t read the job at all, you get one of the statuses below.

    A song job

    {
      "jobid": "j1114201530412583907m-u12345-email:[email protected]:so_3f9c2a7d81e64b05a9d2c4e7.so_b6e14d0c9a7f4382be51f0a3-bot:acemusic",
      "type": "music",
      "status": "completed",
      "email": "[email protected]",
      "created": "2026-11-14T20:15:30.412Z",
      "model": "ace-step-1.5-xl",
      "modelUsed": "ace-step-1.5-xl",
      "songs": [
        {
          "songId": "user:[email protected]:so_3f9c2a7d81e64b05a9d2c4e7",
          "taskId": "so_3f9c2a7d81e64b05a9d2c4e7",
          "status": "succeeded",
          "title": "Farmers Market Sunshine",
          "model": "ace-step-1.5-xl",
          "style": "Upbeat indie folk, bright cheerful acoustic ukulele strumming, light hand percussion, shaker, warm upright bass, sweet breezy female vocals, sunny acoustic production.",
          "lyrics": "[verse 1]\nWoven tote bag swinging by my side\nMorning breeze and the sky open wide\n…\n\n[chorus]\nOh it's Saturday morning down at the square\n…",
          "instrumental": false,
          "duration": 135.02,
          "audioUrl": "https://acemusic.ai/data/so_3f9c2a7d81e64b05a9d2c4e7.mp3",
          "playUrl": "https://acemusic.ai/data/so_3f9c2a7d81e64b05a9d2c4e7.mp3",
          "playUrlExpires": "2026-11-14T20:17:20.318Z",
          "coverUrl": "https://acemusic.ai/data/so_3f9c2a7d81e64b05a9d2c4e7-cover.jpg?v=1794598529169",
          "pageUrl": "https://acemusic.ai/song/k4m8q2vz7xpd",
          "created": "2026-11-14T20:15:30.439Z",
          "finished": "2026-11-14T20:16:14.205Z",
          "kind": "original",
          "score": false
        },
        {
          "songId": "user:[email protected]:so_b6e14d0c9a7f4382be51f0a3",
          "taskId": "so_b6e14d0c9a7f4382be51f0a3",
          "status": "succeeded",
          "title": "Farmers Market Sunshine",
          "model": "ace-step-1.5-xl",
          "style": "Upbeat indie folk, bright cheerful acoustic ukulele strumming, light hand percussion, shaker, warm upright bass, sweet breezy female vocals, sunny acoustic production.",
          "lyrics": "[verse 1]\nWoven tote bag swinging by my side\nMorning breeze and the sky open wide\n…\n\n[chorus]\nOh it's Saturday morning down at the square\n…",
          "instrumental": false,
          "duration": 135.02,
          "audioUrl": "https://acemusic.ai/data/so_b6e14d0c9a7f4382be51f0a3.mp3",
          "playUrl": "https://acemusic.ai/data/so_b6e14d0c9a7f4382be51f0a3.mp3",
          "playUrlExpires": "2026-11-14T20:17:20.318Z",
          "coverUrl": "https://acemusic.ai/data/so_b6e14d0c9a7f4382be51f0a3-cover.jpg?v=1794598526500",
          "pageUrl": "https://acemusic.ai/song/w7n3c5r9t2hb",
          "created": "2026-11-14T20:15:30.440Z",
          "finished": "2026-11-14T20:16:14.205Z",
          "kind": "original",
          "score": false
        }
      ],
      "completed": "2026-11-14T20:16:14.205Z",
      "job_state": "completed",
      "outputs": [
        {
          "ok": true,
          "url": "https://acemusic.ai/data/so_3f9c2a7d81e64b05a9d2c4e7.mp3",
          "url_auth": "none",
          "mime": "audio/mpeg",
          "expires_at": null,
          "ref": "user:[email protected]:so_3f9c2a7d81e64b05a9d2c4e7",
          "thumbnail_url": "https://acemusic.ai/data/so_3f9c2a7d81e64b05a9d2c4e7-cover.jpg?v=1794598529169"
        },
        {
          "ok": true,
          "url": "https://acemusic.ai/data/so_b6e14d0c9a7f4382be51f0a3.mp3",
          "url_auth": "none",
          "mime": "audio/mpeg",
          "expires_at": null,
          "ref": "user:[email protected]:so_b6e14d0c9a7f4382be51f0a3",
          "thumbnail_url": "https://acemusic.ai/data/so_b6e14d0c9a7f4382be51f0a3-cover.jpg?v=1794598526500"
        }
      ]
    }
    

    A song deleted after the job ended

    {
      "jobid": "j1114201530412583907m-u12345-email:[email protected]:so_3f9c2a7d81e64b05a9d2c4e7.so_b6e14d0c9a7f4382be51f0a3-bot:acemusic",
      "type": "music",
      "status": "completed",
      "email": "[email protected]",
      "created": "2026-11-14T20:15:30.412Z",
      "model": "ace-step-1.5-xl",
      "modelUsed": "ace-step-1.5-xl",
      "songs": [
        {
          "songId": "user:[email protected]:so_3f9c2a7d81e64b05a9d2c4e7",
          "taskId": "so_3f9c2a7d81e64b05a9d2c4e7",
          "status": "succeeded",
          "title": "Farmers Market Sunshine",
          "model": "ace-step-1.5-xl",
          "style": "Upbeat indie folk, bright cheerful acoustic ukulele strumming, light hand percussion, shaker, warm upright bass, sweet breezy female vocals, sunny acoustic production.",
          "lyrics": "[verse 1]\nWoven tote bag swinging by my side\nMorning breeze and the sky open wide\n…\n\n[chorus]\nOh it's Saturday morning down at the square\n…",
          "instrumental": false,
          "duration": 135.02,
          "audioUrl": "https://acemusic.ai/data/so_3f9c2a7d81e64b05a9d2c4e7.mp3",
          "playUrl": "https://acemusic.ai/data/so_3f9c2a7d81e64b05a9d2c4e7.mp3",
          "playUrlExpires": "2026-11-14T20:17:20.318Z",
          "coverUrl": "https://acemusic.ai/data/so_3f9c2a7d81e64b05a9d2c4e7-cover.jpg?v=1794598529169",
          "pageUrl": "https://acemusic.ai/song/k4m8q2vz7xpd",
          "created": "2026-11-14T20:15:30.439Z",
          "finished": "2026-11-14T20:16:14.205Z",
          "kind": "original",
          "score": false
        },
        {
          "songId": "user:[email protected]:so_b6e14d0c9a7f4382be51f0a3",
          "taskId": "so_b6e14d0c9a7f4382be51f0a3",
          "status": "deleted"
        }
      ],
      "completed": "2026-11-14T20:16:14.205Z",
      "job_state": "completed",
      "outputs": [
        {
          "ok": true,
          "url": "https://acemusic.ai/data/so_3f9c2a7d81e64b05a9d2c4e7.mp3",
          "url_auth": "none",
          "mime": "audio/mpeg",
          "expires_at": null,
          "ref": "user:[email protected]:so_3f9c2a7d81e64b05a9d2c4e7",
          "thumbnail_url": null
        },
        {
          "ok": false,
          "url": null,
          "url_auth": "none",
          "mime": "audio/mpeg",
          "expires_at": null,
          "ref": "user:[email protected]:so_b6e14d0c9a7f4382be51f0a3",
          "thumbnail_url": null
        }
      ]
    }
    

    A stem split, read a few minutes after it finished

    {
      "jobid": "j1114203012775104298s-u12345-email:[email protected]:so_3f9c2a7d81e64b05a9d2c4e7.0-bot:acemusic",
      "type": "stems",
      "status": "completed",
      "email": "[email protected]",
      "created": "2026-11-14T20:30:12.775Z",
      "stems": {
        "mode": "vocals",
        "songId": "user:[email protected]:so_3f9c2a7d81e64b05a9d2c4e7",
        "tracks": [
          {
            "type": "vocal",
            "url": "https://….r2.cloudflarestorage.com/acemusic-data-prod/users/…/stem/202611/…?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Expires=86400&…",
            "duration": 135.02
          },
          {
            "type": "instrumental",
            "url": "https://….r2.cloudflarestorage.com/acemusic-data-prod/users/…/stem/202611/…?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Expires=86400&…",
            "duration": 135.02
          }
        ],
        "expires": "2026-11-15T20:35:59.230Z"
      },
      "completed": "2026-11-14T20:31:39.143Z",
      "job_state": "completed",
      "outputs": [
        {
          "ok": true,
          "url": "https://….r2.cloudflarestorage.com/acemusic-data-prod/users/…/stem/202611/…?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Expires=86400&…",
          "url_auth": "none",
          "mime": "audio/mpeg",
          "expires_at": "2026-11-15T20:35:59.256Z",
          "ref": null
        },
        {
          "ok": true,
          "url": "https://….r2.cloudflarestorage.com/acemusic-data-prod/users/…/stem/202611/…?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Expires=86400&…",
          "url_auth": "none",
          "mime": "audio/mpeg",
          "expires_at": "2026-11-15T20:35:59.256Z",
          "ref": null
        }
      ]
    }
    

    A song job read right after it finished

    {
      "jobid": "j1115201411144564862m-u12345-email:[email protected]:so_000000000000000000000001.so_000000000000000000000002-bot:acemusic",
      "type": "music",
      "status": "completed",
      "email": "[email protected]",
      "created": "2026-11-15T20:14:11.144Z",
      "model": "ace-step-1.5-xl",
      "modelUsed": "ace-step-1.5-xl",
      "songs": [
        {
          "songId": "user:[email protected]:so_000000000000000000000001",
          "taskId": "so_000000000000000000000001",
          "status": "succeeded",
          "title": "Saturday Market Day",
          "model": "ace-step-1.5-xl",
          "style": "Breezy cheerful indie folk pop, bouncy mid-tempo, rhythmic acoustic ukulele, light upright bass, gentle shaker and handclaps, warm playful female vocals, organic acoustic mix.",
          "lyrics": "[verse]\nCanvas totes swinging on my arm\nCrates of apples from the valley farm\nSunlight spilling through the canopy\nFiddler tuning up in key of G\n\n[chorus]\nOh it's Saturday morning at the market square\nSweet peach aroma in the open air\nSourdough fresh and honey in a jar\nBest little morning in the world by far\n\n[verse]\nSunflowers nodding in a bucket of tin\nFolks smiling back as the day begins\nCold l…",
          "instrumental": false,
          "duration": 125.02,
          "audioUrl": "https://acemusic.ai/data/so_000000000000000000000001.mp3",
          "playUrl": "https://acemusic.ai/data/so_000000000000000000000001.mp3",
          "playUrlExpires": "2026-11-15T20:16:07.493Z",
          "coverUrl": "https://acemusic.ai/data/so_000000000000000000000001-cover.jpg?v=1794598529169",
          "pageUrl": "https://acemusic.ai/song/example00003",
          "created": "2026-11-15T20:14:11.168Z",
          "finished": "2026-11-15T20:14:54.599Z",
          "kind": "original",
          "score": false
        },
        {
          "songId": "user:[email protected]:so_000000000000000000000002",
          "taskId": "so_000000000000000000000002",
          "status": "succeeded",
          "title": "Saturday Market Day",
          "model": "ace-step-1.5-xl",
          "style": "Breezy cheerful indie folk pop, bouncy mid-tempo, rhythmic acoustic ukulele, light upright bass, gentle shaker and handclaps, warm playful female vocals, organic acoustic mix.",
          "lyrics": "[verse]\nCanvas totes swinging on my arm\nCrates of apples from the valley farm\nSunlight spilling through the canopy\nFiddler tuning up in key of G\n\n[chorus]\nOh it's Saturday morning at the market square\nSweet peach aroma in the open air\nSourdough fresh and honey in a jar\nBest little morning in the world by far\n\n[verse]\nSunflowers nodding in a bucket of tin\nFolks smiling back as the day begins\nCold l…",
          "instrumental": false,
          "duration": 125.02,
          "audioUrl": "https://acemusic.ai/data/so_000000000000000000000002.mp3",
          "playUrl": "https://acemusic.ai/data/so_000000000000000000000002.mp3",
          "playUrlExpires": "2026-11-15T20:16:07.493Z",
          "coverUrl": "https://acemusic.ai/data/so_000000000000000000000002-cover.jpg?v=1794598529169",
          "pageUrl": "https://acemusic.ai/song/example00004",
          "created": "2026-11-15T20:14:11.169Z",
          "finished": "2026-11-15T20:14:54.598Z",
          "kind": "original",
          "score": false
        }
      ],
      "completed": "2026-11-15T20:14:54.599Z",
      "job_state": "completed",
      "outputs": [
        {
          "ok": true,
          "url": "https://acemusic.ai/data/so_000000000000000000000001.mp3",
          "url_auth": "none",
          "mime": "audio/mpeg",
          "expires_at": null,
          "ref": "user:[email protected]:so_000000000000000000000001",
          "thumbnail_url": "https://acemusic.ai/data/so_000000000000000000000001-cover.jpg?v=1794598529169"
        },
        {
          "ok": true,
          "url": "https://acemusic.ai/data/so_000000000000000000000002.mp3",
          "url_auth": "none",
          "mime": "audio/mpeg",
          "expires_at": null,
          "ref": "user:[email protected]:so_000000000000000000000002",
          "thumbnail_url": "https://acemusic.ai/data/so_000000000000000000000002-cover.jpg?v=1794598529169"
        }
      ]
    }
    
  • 400 Bad Request

    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": "Path parameter jobid (not-a-job) is not a valid ACE Music job id",
      "code": 400
    }
    
    {
      "error": "Invalid JSON: Unexpected token 'o', \"not json\" is not valid JSON",
      "code": 400
    }
    
  • 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
    }
    
  • 403 Forbidden

    The job belongs to another useapi.net user.

    {
      "error": "Not your job",
      "code": 403
    }
    
  • 404 Not Found

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

    The song was deleted at ACE Music, and its stems went with it.

    ACE Music has none of the job’s songs any more (deleted, then emptied from the trash on acemusic.ai).

    The job’s account was removed.

    {
      "error": "Account [email protected] is not configured",
      "code": 404
    }
    
    {
      "error": "Job j1114201530412583907m-u12345-email:[email protected]:so_3f9c2a7d81e64b05a9d2c4e7.so_b6e14d0c9a7f4382be51f0a3-bot:acemusic not found: ACE Music has none of its songs",
      "code": 404
    }
    
    {
      "error": "Account [email protected] is not configured: the job cannot be read",
      "code": 404
    }
    
  • 410 Gone

    The job is older than 7 days. Its songs are still in GET /music.

    {
      "error": "Job has expired: jobs can be read for 7 days",
      "code": 410
    }
    
  • 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 job: 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 songs: 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
    }
    
    {
      "error": "Reading the songs: ACE Music's answer could not be read (HTTP 200), please retry shortly",
      "code": 503
    }
    
    {
      "error": "Reading the songs: ACE Music answered a song without its id, 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).

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

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

The job record. POST /music and POST /music/stems return it too, and it is the body of the replyUrl webhook.

The job record and the types it uses (Song, Split, DeletedSong, Output, ErrorInfo)
{ // TypeScript, fields marked ? may be absent
  jobid: string  // the job's id, `j...-u12345-email:[email protected]:so_...-bot:acemusic`. It names the account and the song or songs the job is about. Read the job with GET /jobs/{jobid}
  type: "music" | "stems"  // music: POST /music. stems: POST /music/stems
  status: "processing" | "completed" | "failed"  // processing: ACE Music is making the songs or the split (every job starts here). completed: done. A song job is completed when at least one of its two songs is ready. failed: no result. error says why, and code is the HTTP status
  email: string  // the ACE Music account the job runs on
  created: string  // ISO 8601
  completed?: string  // ISO 8601, when the job completed or failed
  model?: string  // music: the model you asked for
  modelUsed?: string  // music: the model that made the songs. It can differ from model. See Model switching on POST /music
  songs?: (Song | DeletedSong)[]  // music: the request's two songs, see Song below. A song you deleted after the job ended, with DELETE /music/{songId} or on acemusic.ai, is a DeletedSong
  stems?: {
    mode: "vocals" | "all"  // the split you asked for
    songId: string  // the song that was split
    songStatus?: "deleted"  // the song was deleted, and its stems with it. The job failed with code 404
    tracks: {
      type: "vocal" | "instrumental" | "vocals" | "backing_vocals" | "drums" | "percussion" | "bass" | "guitar" | "keyboard" | "strings" | "brass" | "woodwinds" | "synth" | "fx"  // the stem. Mode vocals gives vocal and instrumental, mode all one track for each other stem ACE Music found
      url: string | null  // signed mp3 link, valid 24 hours
      duration?: number  // seconds
    }[]  // one per stem
    expires?: string  // ISO 8601, when the track links stop working (read the job again for fresh ones)
  }  // on a stems job: the split
  error?: string  // status 'failed': why
  code?: number  // status failed: the HTTP status of the failure. 400: ACE Music could not read a referenced song's melody (read its score with GET /music/score, then run it again). 404: the account was removed, or a split's song was deleted. 422: ACE Music could not make the songs or the split. 504: not finished within 30 minutes (ACE Music may still finish it). 596: the account was signed out
  replyUrl?: string  // the replyUrl you sent: it receives this record when the job ends
  replyRef?: string  // the replyRef you sent, echoed back
  job_state: "pending" | "in_progress" | "completed" | "failed" | "cancelled" | "expired" | "unknown"  // where the job is, in the same words for every useapi.net API
  outputs: Output[]  // one entry per file the job made, see Output below
  error_info?: ErrorInfo  // only on a failed job: why, and whether to retry, see ErrorInfo below
}

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
}

DeletedSong:

{ // TypeScript, fields marked ? may be absent
  songId: string  // the song's id, as it was
  taskId: string  // ACE Music's own id of the song (so_…)
  status: "deleted"  // deleted with DELETE /music/{songId} or on acemusic.ai
}

Output:

{ // TypeScript, fields marked ? may be absent
  ok: boolean  // true when this file is ready to use
  url: string | null  // the link to the file, always absolute
  url_auth: "none" | "bearer"  // none: open the link as it is. bearer: send your API token with it
  mime: string  // the file type, such as audio/mpeg
  expires_at: string | null  // ISO 8601, when the link stops working. null when it does not expire
  ref: string | null  // the id to use for this file in later calls
  thumbnail_url?: string | null  // a cover or preview image
  text?: string  // the text, when the output is text
}

ErrorInfo:

{ // TypeScript, fields marked ? may be absent
  code: string  // the kind of failure, in the same words for every useapi.net API, e.g. `timeout`, `generation_failed`, `input_rejected`, `not_found`, `account_unhealthy`
  message: string  // what went wrong, in the API's own words
  retry: {
    mode: "never" | "now" | "backoff" | "after" | "after_reset" | "other_account"  // When to send the request again: - `never`: don't send it again as it is. `action` says what to change. - `now`: send it again right away. - `backoff`: send it again later, waiting longer each time. - `after`: send it again once the wait in `seconds` has passed. - `after_reset`: send it again once the account's credits or usage limit reset. - `other_account`: send it on another account.
    seconds?: number  // mode after: wait this long (or the Retry-After header)
    max?: number  // retry at most this many times
    action?: string  // what to change first, e.g. `fix_body`, `replace_input`, `add_credits`, `upgrade_plan`
  }  // whether and when to send it again
  vendor_code?: string  // the code the vendor answered with
}
Failed jobs and the webhook
What code means, and the replyUrl webhook
code Meaning
400 ACE Music could not read the melody of a reference (ref_no_melody). This is usually an ACE-Step song with no score yet. Read its score with GET /music/score, then send the request again. The songs show refunded: true, because ACE Music gave the credits back.
404 The account was removed with DELETE /accounts/email while the job ran. Or the song of a stem split was deleted, and its stems went with it. Then stems.songStatus is deleted.
422 ACE Music could not make the songs or the split. error has ACE Music’s reason. A failed song shows refunded: true when ACE Music gave its credits back.
504 The job did not finish within 30 minutes. ACE Music may still finish it, and has likely charged for it. So before you send the request again, read the job later or look for its songs with GET /music. Once ACE Music finishes it, the job shows completed.
596 ACE Music refused the stored password while the job ran, so the account was signed out. ACE Music may still finish the job. Update the password with POST /accounts, then read the job again.

The replyUrl webhook is one POST with Content-Type: application/json and this record as the body. We send it once, when the job completes or fails. We wait up to 10 seconds for your server, never retry and do not follow redirects. Use replyRef to match the callback to your own records.

Examples
  • curl "https://api.useapi.net/v1/acemusic/jobs/j1114201530412583907m-u12345-email:[email protected]:so_3f9c2a7d81e64b05a9d2c4e7.so_b6e14d0c9a7f4382be51f0a3-bot:acemusic" \
         -H "Authorization: Bearer YOUR_API_TOKEN"
    
  • const response = await fetch('https://api.useapi.net/v1/acemusic/jobs/j1114201530412583907m-u12345-email:[email protected]:so_3f9c2a7d81e64b05a9d2c4e7.so_b6e14d0c9a7f4382be51f0a3-bot:acemusic', {
      headers: {
        'Authorization': 'Bearer YOUR_API_TOKEN'
      }
    })
    console.log(response.status, await response.json())
    
  • import requests
    
    response = requests.get(
        'https://api.useapi.net/v1/acemusic/jobs/j1114201530412583907m-u12345-email:[email protected]:so_3f9c2a7d81e64b05a9d2c4e7.so_b6e14d0c9a7f4382be51f0a3-bot:acemusic',
        headers={'Authorization': 'Bearer YOUR_API_TOKEN'},
    )
    print(response.status_code, response.json())
    
Try It