> ## Documentation Index
> Fetch the complete documentation index at: https://docs.acedata.cloud/llms.txt
> Use this file to discover all available pages before exploring further.

# Suno Upload Reference Audio API Integration Guide

> Suno Music Generation integration guide - Ace Data Cloud

SUNO allows us to upload reference audio for secondary creation. This document explains the integration method for the relevant APIs.

Standard upload only requires `audio_url`, which is a publicly accessible audio CDN URL. `mode` defaults to `standard`, so existing calls do not need to be modified. A successful standard upload consumes **0.06 Credits**; failed uploads are not charged.

Here, the `audio_url` we input is `https://cdn.acedata.cloud/suno_demo.mp3`, which is a publicly accessible CDN URL.

```bash theme={null}
curl -X POST 'https://api.acedata.cloud/suno/upload' \
-H 'accept: application/json' \
-H 'authorization: Bearer {token}' \
-H 'content-type: application/json' \
-d '{
  "audio_url": "https://cdn.acedata.cloud/suno_demo.mp3"
}'
```

The result is as follows:

```
{
  "success": true,
  "task_id": "058f8450-3df4-4f8b-8b64-ebc2e59ed3bc",
  "data": {
    "audio_id": "00135f7d-cda1-4d70-b007-779f07143586",
    "lyric": "[Intro]\nHa-ha-ha-ha-ha-ha\n[Verse 1]\nCandy skies are dripping blue\nStuck in world of chewed up glue\nThe sun's a lollipop melting slow\nDripped in sugar on the ground below\nOh-oh\n[Chorus]\nIt's a bubblegum catastrophe\nSticky mess can't set it free\nPop it once it multiplies\nCandy chaos in disguise\nIt's a bubblegum catastrophe\nSticky mess can't set it free\nPop it once it multiplies\nCandy chaos in disguise\nHa-ha-ha-ha-ha hey\nHa-ha-ha-ha-ha hey\nHa-ha-ha-ha-ha hey\nHa-ha-ha-ha-ha hey\nCandy chaos in disguise\n[Verse 2]\nJellybean mountains crumble fast\nRainbows made of soda blast\nEvery step's a gummy bear trap\nMy sugar rush is taking a nap\nOh-oh\n[Bridge]\nChew it up (ha-ha-ha-ha)\nSpit it out (ha-ha-ha-ha)\nRound and round (ha-ha-ha-ha)\nWithout a doubt (ha-ha-ha-ha)\n[Chorus]\nIt's a bubblegum catastrophe\nSticky mess can't set it free\nPop it once it multiplies\nCandy chaos in disguise\nIt's a bubblegum catastrophe\nSticky mess can't set it free\nPop it once it multiplies\nCandy chaos in disguise\nHa-ha-ha-ha-ha hey\nHa-ha-ha-ha-ha hey\nHa-ha-ha-ha-ha hey\nHa-ha-ha-ha-ha hey\n[Outro]\nCotton candy clouds collapse\nChocolate rivers running laps\nEverywhere's a sugar flood\nMy shoes are drowning caramel\nHa-ha-ha-ha-ha hey\nHa-ha-ha-ha-ha hey\nHa-ha-ha-ha-ha hey\nHa-ha-ha-ha-ha hey\nIt's a bubblegum catastrophe\nSticky mess can't set it free\nPop it once it multiplies\nCandy chaos in disguise\nIt's a bubblegum catastrophe\nSticky mess can't set it free\nPop it once it multiplies\nCandy chaos in disguise",
    "style": "Upbeat bubblegum pop track with a high-energy electronic production style. The song features a bright, processed female vocal with a youthful and energetic tone, often layered with harmonies and occasional pitch-shifted ad-libs. The instrumentation is dominated by bouncy, staccato synthesizer chords, a driving four-on-the-floor electronic drum beat with crisp claps on the backbeat, and a prominent, melodic bassline. The tempo is approximately 128 BPM in a major key, utilizing a standard pop chord progression of I-V-vi-IV. Production elements include heavy use of sidechain compression, vocal chops, and shimmering sound effects that contribute to a sugary, hyper-pop aesthetic. The structure follows a verse-chorus-verse-chorus-bridge-chorus format with a high-energy build-up leading into the explosive, hook-driven choruses.",
    "image_url": "https://cdn.acedata.cloud/e724d7f13d.png?example=image-001",
    "image_large_url": "https://cdn.acedata.cloud/e724d7f13d.png?example=image-002",
    "audio_url": "https://cdn.acedata.cloud/assets/examples/fish/5ade0339-5f11-487e-aacc-06a908271706-8e3fcb0e5547.mp3",
    "title": "up-d6c3970d-6db1-41e3-b966-90539c93678a",
    "duration": 131.16
  }
}
```

As you can see, `data` is always an object, and `audio_id` is the song ID after upload. Analysis results such as `lyric`, `style`, `duration`, title, and media URLs are optional fields, subject to the actual returned content.

After obtaining the song ID, you can use the [Suno Audios Generation API](https://platform.acedata.cloud/documents/suno-audios) to call operations requiring `audio_id`, such as `upload_extend`, `upload_cover`, or segment sampling. To create new music based on 1 to 4 complete reference audio tracks through the Inspo inspiration creation feature, directly call `action=inspo` and pass in the list of original public audio URLs; the service will automatically complete upload and analysis, without requiring the client to assemble audio metadata.

## Uploading Original Cover Songs for Private Voice Covers

When creating a cover with a private voice created using `/suno/voices`, pass the `persona_id` of that voice in the standard upload request to associate the original song with the voice:

```json theme={null}
{
  "audio_url": "https://cdn.acedata.cloud/suno_demo.mp3",
  "mode": "standard",
  "persona_id": "<persona_id returned by the voice creation API>"
}
```

After a successful upload, use the returned `data.audio_id` to call `/suno/audios`, set `action: "upload_cover"`, and pass in the same `persona_id`. Do not continue using the previous audio ID that was not associated with that voice.

`persona_id` is supported only for standard uploads and cannot be used together with `mode: "enhanced"`. There is no need to additionally specify `vocal_gender`; gender preference cannot replace a voice ID. Voice creation, original song upload, and cover creation must use the same service channel.

## Enhanced Upload Mode

> `audio_url` is the input URL and will be passed directly to the audio processing workflow; it will not be pre-transferred by the final media persistence service. Please ensure that it is publicly accessible during task processing.

When standard upload cannot process audio that you own or are authorized to use, you can set `mode` to `enhanced`. This mode must also provide a `name` of 1 to 100 characters and use a publicly accessible HTTPS `audio_url`.

Enhanced upload always uses asynchronous processing and usually takes 2 minutes or longer. Successful processing consumes **1.87 Credits**; failed processing is not charged.

```bash theme={null}
curl -X POST 'https://api.acedata.cloud/suno/upload' \
  -H 'authorization: Bearer {token}' \
  -H 'content-type: application/json' \
  -d '{
    "audio_url": "https://cdn.acedata.cloud/suno_demo.mp3",
    "mode": "enhanced",
    "name": "My Song"
  }'
```

The API immediately returns `task_id` and `trace_id`. Use the [Suno Tasks API](https://platform.acedata.cloud/documents/suno-tasks) to query the task, and after success, read the uploaded audio ID from `response.data.audio_id`. You can also provide an HTTPS `callback_url` to receive the final state.
Enhance the uploaded `audio_id` to be usable for Cover, Samples, and Mashup. Accompaniment and MIDI extraction, full-track separation, and vocal/accompaniment separation may still be restricted by the account to which the audio belongs; operations not listed are not guaranteed to support cross-account use. The shorter the audio, the higher the processing success rate usually is.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.