Upload audio or an image

November 14, 2026 (December 1, 2026)

Table of contents

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

Upload a file to an account’s ACE Music Library. Send the file itself as the request body, with its Content-Type. You can upload audio or an image:

  • Audio becomes a song in the Library. These formats work: MP3, WAV, FLAC, OGG, M4A, AAC. A file can be up to 100 MB and 8 minutes long. ACE Music transcribes it, which takes about 15 to 30 seconds. It reads the lyrics, style, tempo and melody. The answer is the new song with its songId. Use that songId as a reference in POST /music to cover, remix, edit or mash up the song, or to guide a prompt.
  • An image gives you a mediaId for the images of a prompt in POST /music. These types work: JPEG, PNG, WebP. An image can be up to 10 MB.

We read the file type from the file’s first bytes. The Content-Type you send only has to say audio or image correctly. An uploaded file works only on the account it went to. So a request that uses its songId or mediaId runs on that account.

Uploaded audio counts toward the account’s upload allowance. That is the total length of audio the account can keep: 10 minutes on Free, 30 on Creator and 60 on Artist. When it is used up, we answer 412. Delete uploads on acemusic.ai, or move to a bigger plan.

Transcribing costs no credits. Download the song’s own audio with GET /music/download.

https://api.useapi.net/v1/acemusic/files?email=email&title=title

Request Headers
Authorization: Bearer {API token}
Content-Type: audio/mpeg
# Or the file's own type: audio/wav, audio/flac, audio/ogg, audio/mp4, audio/aac,
# image/jpeg, image/png, image/webp
  • API token is required. Setup useapi.net shows where to get it.
  • Content-Type is required. Send the audio/… or image/… type that matches the file.
  • Content-Length is required. Most tools send it for you.
Parameters
  • email is optional. The account to upload to. A request that uses the file runs on this account. Leave it out and we pick any healthy account.
  • title is optional. The title of an uploaded song, and its file name at ACE Music. Leave it out and the title is upload- with the date and time.
    Maximum length: 80 characters.
  • file is required. The file’s raw bytes as the whole request body, with its Content-Type and Content-Length. Audio can be mp3, wav, flac, ogg, m4a or aac, up to 100 MB and 8 minutes. An image can be jpeg, png or webp, up to 10 MB. We read the type from the file’s first bytes, so the Content-Type only has to say whether it is audio or an image.

email and title go in the query string. The file’s bytes are the whole request body.

If ACE Music is still transcribing the audio after 90 seconds, you get 202. If the request body ends early, or does not match its Content-Length, you get 400.

Responses
  • 200 OK

    For an image, mediaId is its id. For audio, the answer is the uploaded song, transcribed, with its songId.

    Audio, transcribed

    {
      "songId": "user:[email protected]:so_7d2e9b4c1a8f4e6d93b0c5a1",
      "taskId": "so_7d2e9b4c1a8f4e6d93b0c5a1",
      "status": "succeeded",
      "title": "paper-boat-demo",
      "model": null,
      "style": "A gentle acoustic indie-folk lullaby at a slow, peaceful tempo. Delicate fingerpicked acoustic guitar with warm ambient pads, and a tender female lead vocal close to the mic.",
      "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,
      "playUrl": "https://example.r2.cloudflarestorage.com/…/upload.mp3?X-Amz-…",
      "playUrlExpires": "2026-11-16T01:27:32.000Z",
      "coverUrl": "https://acemusic.ai/data/so_7d2e9b4c1a8f4e6d93b0c5a1-cover.jpg?v=1794598868120",
      "pageUrl": null,
      "created": "2026-11-14T19:46:25.300Z",
      "finished": "2026-11-14T19:46:37.999Z",
      "kind": "upload",
      "score": true,
      "upload": {
        "seconds": 35,
        "bpm": 88,
        "transcription": "done"
      }
    }
    

    An image

    {
      "mediaId": "user:[email protected]:cx_5e8a1f3b9c2d4e7f80a6b4d2",
      "email": "[email protected]",
      "url": "https://acemusic.ai/data/cx_5e8a1f3b9c2d4e7f80a6b4d2.jpg",
      "mime": "image/jpeg",
      "kind": "image"
    }
    

    An mp3, now a song in the library

    {
      "songId": "user:[email protected]:so_000000000000000000000002",
      "taskId": "so_000000000000000000000002",
      "status": "succeeded",
      "title": "full-test-upload",
      "model": null,
      "style": "A gentle, intimate indie folk lullaby at a slow, peaceful tempo. Delicate fingerpicked acoustic guitar leads the harmonic motion, cushioned by warm ambient synth pads and subtle low-end support. A soft, airy, close-mic'd female lead vocal sings with tender phrasing and slight vocal layering, treated with intimate warmth and spacious plate reverb.",
      "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,
      "playUrl": "https://9d3f6b2e8a1c4f7e0b5a2d9c6e3f1a8b.r2.cloudflarestorage.com/acemusic-data-prod/users/0000000001/audio/202611/00000000000000000000000000000004.mp3?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=7c4e1a9f3b2d48e6a0f5c8d1e3b7a9f2%2F20261115%2Fauto%2Fs3%2Faws4_request&X-Amz-Date=20261115T201357Z&X-Amz-Expires=86400&X-Amz-SignedHeaders=host&X-Amz-Signature=4b9e2d7a1c6f3e8b0a5d9c2f7e1b4a6d8c3f0e9b2a7d5c1e6f4b8a3d0c9e7f2b",
      "playUrlExpires": "2026-11-16T20:13:57.000Z",
      "coverUrl": "https://acemusic.ai/data/so_000000000000000000000002-cover.jpg?v=1794598529169",
      "pageUrl": null,
      "created": "2026-11-15T20:13:39.816Z",
      "finished": "2026-11-15T20:13:52.584Z",
      "kind": "upload",
      "score": true,
      "upload": {
        "seconds": 35,
        "bpm": 88,
        "transcription": "done"
      }
    }
    
  • 202 Accepted

    ACE Music was still transcribing the audio when the wait ended. The answer is the uploaded song with its songId. Read it again with GET /music/songId.

    {
      "songId": "user:[email protected]:so_000000000000000000000002",
      "taskId": "so_000000000000000000000002",
      "status": "queued",
      "title": "probe-upload",
      "model": null,
      "style": null,
      "lyrics": null,
      "instrumental": false,
      "duration": null,
      "audioUrl": null,
      "playUrl": null,
      "playUrlExpires": null,
      "coverUrl": null,
      "pageUrl": null,
      "created": "2026-11-14T01:56:58.443Z",
      "finished": null,
      "kind": "upload",
      "score": false,
      "upload": {
        "seconds": 35,
        "transcription": "pending"
      }
    }
    
  • 400 Bad Request

    ACE Music refused the file. 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": "The request body is empty",
      "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 title length exceeds 80 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).

    ACE Music no longer has what the request names. It was deleted.

    {
      "error": "Account [email protected] is not configured",
      "code": 404
    }
    
  • 411 Length Required

    Content-Length is required. Send the file as the raw request body.

    {
      "error": "Content-Length is required (send the file as the raw request body)",
      "code": 411
    }
    
  • 412 Precondition Failed

    The account’s uploaded-audio minutes are used up. Delete uploads on the ACE Music website, or move to a bigger plan.

    {
      "error": "Importing the audio: Your plan holds 10 min of uploaded audio. Upgrade for more. The account's uploaded-audio minutes are used up: delete uploads on acemusic.ai or upgrade",
      "code": 412
    }
    
  • 413 Content Too Large

    The file is too large. Audio can be up to 100 MB, images up to 10 MB.

    {
      "error": "Uploading the file: The file is too large",
      "code": 413
    }
    
    {
      "error": "The image file is 12.4 MB: the limit is 10 MB",
      "code": 413
    }
    
  • 415 Unsupported Media Type

    The file is not a supported audio or image type, or does not match its Content-Type. Send a supported file with its correct Content-Type.

    {
      "error": "Uploading the file: Please use MP3, WAV, FLAC, M4A, OGG or AAC",
      "code": 415
    }
    
    {
      "error": "Send the file as the raw request body with its Content-Type (audio/mpeg, audio/wav, audio/flac, audio/ogg, audio/mp4, audio/aac, image/jpeg, image/png or image/webp)",
      "code": 415
    }
    
    {
      "error": "The file is not a supported audio file (its first bytes are not MP3, WAV, FLAC, OGG, M4A, AAC, JPEG, PNG or WebP)",
      "code": 415
    }
    
    {
      "error": "Content-Type says audio but the file is an image (png)",
      "code": 415
    }
    
  • 422 Unprocessable Content

    ACE Music could not read the audio. The answer is the uploaded song. Its error has ACE Music’s code, message and reason, where ACE Music gave them. With no reason, error is {"message": "ACE Music could not read this audio"}. Don’t retry the same file.

    {
      "songId": "user:[email protected]:so_000000000000000000000002",
      "taskId": "so_000000000000000000000002",
      "status": "failed",
      "title": "probe-upload",
      "model": null,
      "style": null,
      "lyrics": null,
      "instrumental": false,
      "duration": null,
      "audioUrl": null,
      "coverUrl": null,
      "pageUrl": null,
      "created": "2026-11-14T01:56:58.443Z",
      "finished": null,
      "kind": "upload",
      "score": false,
      "upload": {
        "seconds": 35,
        "transcription": "pending"
      },
      "error": {
        "message": "ACE Music could not read this audio"
      }
    }
    
  • 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": "Uploading the file: 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": "Uploading the file: ACE Music refused the call (HTTP 403). This is unexpected, please report it to support",
      "code": 500
    }
    
  • 502 Bad Gateway

    ACE Music answered with something unexpected. The text says what.

    {
      "error": "Uploading the file to ACE Music's storage failed (HTTP 403)",
      "code": 502
    }
    
  • 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 uploaded file. An image comes with the mediaId to send in images. Audio comes as a song with its songId.

The uploaded image or song and the type it uses (Split)
// TypeScript, fields marked ? may be absent
{
  mediaId: string  // `user:[email protected]:cx_...`, the image's id: send it in the `images` of POST /music
  email: string  // the account it was uploaded to
  url: string | null  // ACE Music's link to the image
  mime: string  // image/jpeg, image/png or image/webp
  kind: string  // image
} | {
  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 -X POST "https://api.useapi.net/v1/acemusic/files" \
         -H "Authorization: Bearer YOUR_API_TOKEN" \
         -H "Content-Type: audio/mpeg" \
         --data-binary @example.mp3
    
  • import { readFile } from 'node:fs/promises'
    
    const response = await fetch('https://api.useapi.net/v1/acemusic/files', {
      method: 'POST',
      headers: {
        'Authorization': 'Bearer YOUR_API_TOKEN',
        'Content-Type': 'audio/mpeg'
      },
      body: await readFile('example.mp3')
    })
    console.log(response.status, await response.json())
    
  • import requests
    
    response = requests.post(
        'https://api.useapi.net/v1/acemusic/files',
        headers={'Authorization': 'Bearer YOUR_API_TOKEN', 'Content-Type': 'audio/mpeg'},
        data=open('example.mp3', 'rb').read(),
    )
    print(response.status_code, response.json())
    
Try It