apimaxDocs
DocsPricingConsole
API ReferenceIntegration GuideUser GuideChangelog

Music Series

POSTUpload Audio

Image Series

Video series

Task Management

Error Code ReferenceQuery Task StatusGET

Account Management

Query Quota UsageGET

Docs / Music Series / Suno / Upload Audio

Upload AudioPOSTSunouploadclipsuno_upload_audio

Upload Audio

Import user audio as a Suno-owned clip; returns an async upload task ID. With copyright=true the request switches to the copyright pipeline.

POSThttps://api.apimax.ai/v1/music/upload/audio
Try it
Bearer API KeyJSONServer-side call

Purpose#

Import user audio as a Suno-owned clip. This endpoint is an async pass-through: it returns a task_id as soon as validation passes, a background worker completes the native Suno upload flow, and once the task reaches SUCCESS the result contains a clip_id that can be used for continuation, covers, and similar scenarios.

When the request includes copyright=true, it switches to the copyright pipeline instead and produces a finished track (see "Copyright music branch" below).

Payload formats#

Four formats are supported:

MethodContent-TypeDescription
multipartmultipart/form-dataThe file field is file or audio
Binary streamaudio/mpeg, audio/wav, etc.The entire request body is the audio bytes
Base64 JSONapplication/jsonaudio is standard base64; filename is optional
URL-pull JSONapplication/jsonaudio_url is an http or https audio URL

The request body is passed through to the upstream as-is; the relay performs no business-level parsing.

Optional fields#

Besides the audio itself, the following fields are accepted (form fields for multipart, body fields for JSON; title / mode only take effect with copyright=true):

FieldTypeDescription
copyrightboolWhether to treat the audio as copyrighted music. true routes the request into the copyright pipeline, whose output is a finished track instead of a regular clip; omitted or false keeps the native upload behavior unchanged
titlestringOptional (copyright branch): name of the finished track and its Studio project
modestringOptional (copyright branch): processing mode, defaults to auto; an invalid value returns 400

Request examples#

multipart#

text
file: @song.mp3

You can also use the audio field:

text
audio: @song.wav

Binary stream#

text
<binary content of song.mp3>

Base64 JSON#

json
{
  "audio": "SUQzBAAAAA...",
  "filename": "song.mp3"
}

URL-pull JSON#

json
{
  "audio_url": "https://example.com/song.mp3"
}

Copyright music branch#

Additional form fields for multipart:

bash
curl -X POST https://api.apimax.ai/v1/music/upload/audio \
  -H "Authorization: Bearer <your API key>" \
  -F "file=@song.mp3" \
  -F "copyright=true" \
  -F "title=My Copyrighted Audio"

Body fields for JSON (base64 / URL-pull):

json
{
  "audio_url": "https://example.com/song.mp3",
  "copyright": true,
  "title": "My Copyrighted Audio",
  "mode": "auto"
}

Success response#

200
{
  "code": "success",
  "message": "",
  "data": "task_UDLWWA3OKdbBgbTnae6qQdMLCrd03IXB"
}

The task ID is generated by the gateway and looks like task_ followed by a random string.

Response fields#

FieldTypeDescription
codestringResponse code; fixed to success on success
messagestringStatus message; usually empty on success
datastringPublic task ID used for subsequent fetch queries

Constraints and Errors#

A native upload needs at least 6 seconds of audio; shorter audio is rejected with 400 at submission. Errors use the structure below, where error.message is the reason returned by the upstream:

400
{
  "error": {
    "code": "upstream_error",
    "message": "audio too short: record at least 6 seconds",
    "type": "max_api_error",
    "upstream": {
      "code": "task_request_invalid"
    }
  }
}
HTTPerror.codeerror.messageScenario
400upstream_errorone of audio or audio_url requiredNo audio was provided
400upstream_erroraudio too short: record at least 6 secondsThe audio is shorter than 6 seconds
400upstream_erroronly http/https allowedaudio_url is not an http/https URL
400upstream_errortarget resolves to a private addressaudio_url points to a private or local address

Fetching the result#

After a successful submission, poll with the returned task_id:

  • Single task query: GET /v1/tasks/:id

Once the task reaches SUCCESS, the result contains the imported clip_id.

Result example (native upload)#

The query endpoint returns a unified task object. When the task status is completed, the imported clip is in the data array; data[0].id is the clip_id used by subsequent generation actions such as continuation and covers:

json
{
  "created_at": 1795404826,
  "data": [
    {
      "duration": 6,
      "id": "0116532b-5730-4319-b309-e9b82df74cc5",
      "image_url": "https://cdn2.suno.ai/image_0116532b-5730-4319-b309-e9b82df74cc5.jpeg",
      "status": "complete",
      "title": "upload"
    }
  ],
  "finished_at": 1795404836,
  "id": "task_UDLWWA3OKdbBgbTnae6qQdMLCrd03IXB",
  "model": "suno_upload_audio",
  "object": "task",
  "platform": "suno",
  "progress": 100,
  "started_at": 1795404827,
  "status": "completed",
  "type": "suno"
}

The result contains no audio_url, and title is always upload rather than the uploaded file name. With URL-pull uploads, the returned duration may be inaccurate.

Copyright music branch (copyright=true)#

With copyright=true, the uploaded audio no longer produces a regular clip; it is processed by the copyright pipeline and yields a finished audio track (m4a) plus the corresponding Suno clip_id. See the example below for the data[0] structure.

Constraints#

  • Size limit 100MB (native upload allows 500MB); exceeding it returns 413.
  • Duration window 6 seconds to 8 minutes; out-of-range audio returns 400.
  • At least one available account is required, otherwise the API returns 503.
  • Duration varies by mode, roughly 2–20 minutes.

Result example (copyright branch)#

Once the task status is completed, the finished track is in data[0]:

json
{
  "created_at": 1785309517,
  "data": [
    {
      "audio_url": "https://<platform-storage>/media/cdn/12d766df-257c-4874-9293-1d72a80072c4.m4a?<presigned-params>",
      "clip_count": 6,
      "duration": 206.59,
      "final_clip_id": "12d766df-257c-4874-9293-1d72a80072c4",
      "id": "12d766df-257c-4874-9293-1d72a80072c4",
      "project_id": "b611dc6e-9eeb-4665-b706-cd1e2609d794",
      "project_url": "https://suno.com/studio/b611dc6e-9eeb-4665-b706-cd1e2609d794",
      "song_url": "https://suno.com/song/12d766df-257c-4874-9293-1d72a80072c4",
      "status": "complete",
      "title": "My Copyrighted Audio"
    }
  ],
  "finished_at": 1785309619,
  "id": "task_EIGnOu1GpdX2moifZl3BbajqhNnadqGp",
  "model": "suno_upload_audio",
  "object": "task",
  "platform": "suno",
  "progress": 100,
  "started_at": 1785309518,
  "status": "completed",
  "type": "suno"
}
FieldDescription
id / final_clip_idSuno clip ID of the rendered finished track
audio_urlDownload URL of the finished audio (m4a, served from platform-owned storage; presigned link valid for about 7 days — transfer it promptly)
song_urlSuno song page
project_url / project_idStudio project page / project ID
clip_countSegment count
durationSource audio duration (seconds) as sniffed at submission
Copyright uploads are submitted through this endpoint with copyright=true; the old standalone endpoint /v1/music/upload/copyright-audio has been removed.

Next steps

All docs
Upsample Style TagsPolish and expand style tags and lyrics into a fuller style description.Get Style Inspiration SuggestionsGet random style or inspiration suggestions from the Suno upstream.Method 1: Create a Voice from an Existing SongCreate a vocal voice directly from a song clip already generated in this pool.Get MIDIRetrieve a MIDI file for a clip generated by this service.Get Lyrics TimingGet the lyric alignment timing of a generated clip.[Core] Music GenerationSubmit an async task via the unified music generation endpoint and query normalized music results using the public task ID.
On this page
OverviewPurposePayload formatsOptional fieldsRequest examplesmultipartBinary streamBase64 JSONURL-pull JSONCopyright music branchSuccess responseResponse fieldsConstraints and ErrorsFetching the resultResult example (native upload)Copyright music branch (copyright=true)ConstraintsResult example (copyright branch)Next steps
API

POST /v1/music/upload/audio