Saltar al contenido principal
POST
/
suno
/
audios
Suno Audios
curl --request POST \
  --url https://api.acedata.cloud/suno/audios \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "lyric": "<string>",
  "model": "chirp-v5-5",
  "style": "<string>",
  "variation_category": "<string>",
  "title": "<string>",
  "action": "generate",
  "custom": true,
  "prompt": "A song for Christmas",
  "lyric_prompt": {},
  "audio_id": "<string>",
  "mashup_audio_ids": [
    "<string>"
  ],
  "audio_urls": [
    "https://cdn1.suno.ai/b481b17a-bf50-4e10-8adc-4d5635050893.mp3"
  ],
  "weirdness": 0.5,
  "persona_id": "<string>",
  "overpainting_start": 123,
  "overpainting_end": 123,
  "samples_start": 123,
  "samples_end": 123,
  "underpainting_start": 123,
  "underpainting_end": 123,
  "continue_at": 123,
  "callback_url": "<string>",
  "async": true,
  "instrumental": true,
  "vocal_gender": "<string>",
  "style_negative": "<string>",
  "style_influence": 0.5,
  "audio_weight": 0.5,
  "replace_section_end": 123,
  "replace_section_start": 123
}
'
import requests

url = "https://api.acedata.cloud/suno/audios"

payload = {
    "lyric": "<string>",
    "model": "chirp-v5-5",
    "style": "<string>",
    "variation_category": "<string>",
    "title": "<string>",
    "action": "generate",
    "custom": True,
    "prompt": "A song for Christmas",
    "lyric_prompt": {},
    "audio_id": "<string>",
    "mashup_audio_ids": ["<string>"],
    "audio_urls": ["https://cdn1.suno.ai/b481b17a-bf50-4e10-8adc-4d5635050893.mp3"],
    "weirdness": 0.5,
    "persona_id": "<string>",
    "overpainting_start": 123,
    "overpainting_end": 123,
    "samples_start": 123,
    "samples_end": 123,
    "underpainting_start": 123,
    "underpainting_end": 123,
    "continue_at": 123,
    "callback_url": "<string>",
    "async": True,
    "instrumental": True,
    "vocal_gender": "<string>",
    "style_negative": "<string>",
    "style_influence": 0.5,
    "audio_weight": 0.5,
    "replace_section_end": 123,
    "replace_section_start": 123
}
headers = {
    "Authorization": "Bearer <token>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.text)
const options = {
  method: 'POST',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: JSON.stringify({
    lyric: '<string>',
    model: 'chirp-v5-5',
    style: '<string>',
    variation_category: '<string>',
    title: '<string>',
    action: 'generate',
    custom: true,
    prompt: 'A song for Christmas',
    lyric_prompt: {},
    audio_id: '<string>',
    mashup_audio_ids: ['<string>'],
    audio_urls: ['https://cdn1.suno.ai/b481b17a-bf50-4e10-8adc-4d5635050893.mp3'],
    weirdness: 0.5,
    persona_id: '<string>',
    overpainting_start: 123,
    overpainting_end: 123,
    samples_start: 123,
    samples_end: 123,
    underpainting_start: 123,
    underpainting_end: 123,
    continue_at: 123,
    callback_url: '<string>',
    async: true,
    instrumental: true,
    vocal_gender: '<string>',
    style_negative: '<string>',
    style_influence: 0.5,
    audio_weight: 0.5,
    replace_section_end: 123,
    replace_section_start: 123
  })
};

fetch('https://api.acedata.cloud/suno/audios', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));
{
  "data": [
    {
      "id": "1b694cae-8b5f-424f-a5bf-2f27b7697843",
      "lyric": "[Verse]\nSnowflakes falling like whispered dreams\nFrosty windows\nCocoa steam\nCandles flicker\nHearts aglow\nThe quiet hum of winter’s show\n[Chorus]\nOh the world feels soft tonight\nWrapped in stars and silver light\nChristmas whispers\nHold it tight\nSnowfall serenade\n[Verse 2]\nFootprints weaving through the white\nEvery step feels just so right\nLaughter echoes\nFires burn\nEvery corner a joy to turn\n[Prechorus]\nHolly hangs and bells will ring\nMagic hums in everything\n[Chorus]\nOh the world feels soft tonight\nWrapped in stars and silver light\nChristmas whispers\nHold it tight\nSnowfall serenade\n[Bridge]\nStockings hung with quiet care\nDreams and wishes fill the air\nA moment frozen\nTime stands still\nHearts align\nThey always will",
      "model": "chirp-v3",
      "state": "succeeded",
      "style": "uplifting, orchestral with sleigh bells and warm strings",
      "title": "Snowfall Serenade",
      "prompt": "A song for Christmas",
      "duration": 240,
      "audio_url": "https://cdn1.suno.ai/1b694cae-8b5f-424f-a5bf-2f27b7697843.mp3",
      "image_url": "https://cdn2.suno.ai/image_1b694cae-8b5f-424f-a5bf-2f27b7697843.jpeg",
      "video_url": "",
      "created_at": "2025-07-29T01:28:32.508Z"
    },
    {
      "id": "532f4ae0-48fb-4604-9c68-350897373522",
      "lyric": "[Verse]\nSnowflakes falling like whispered dreams\nFrosty windows\nCocoa steam\nCandles flicker\nHearts aglow\nThe quiet hum of winter’s show\n[Chorus]\nOh the world feels soft tonight\nWrapped in stars and silver light\nChristmas whispers\nHold it tight\nSnowfall serenade\n[Verse 2]\nFootprints weaving through the white\nEvery step feels just so right\nLaughter echoes\nFires burn\nEvery corner a joy to turn\n[Prechorus]\nHolly hangs and bells will ring\nMagic hums in everything\n[Chorus]\nOh the world feels soft tonight\nWrapped in stars and silver light\nChristmas whispers\nHold it tight\nSnowfall serenade\n[Bridge]\nStockings hung with quiet care\nDreams and wishes fill the air\nA moment frozen\nTime stands still\nHearts align\nThey always will",
      "model": "chirp-v3",
      "state": "succeeded",
      "style": "uplifting, orchestral with sleigh bells and warm strings",
      "title": "Snowfall Serenade",
      "prompt": "A song for Christmas",
      "duration": 240,
      "audio_url": "https://cdn1.suno.ai/532f4ae0-48fb-4604-9c68-350897373522.mp3",
      "image_url": "https://cdn2.suno.ai/image_532f4ae0-48fb-4604-9c68-350897373522.jpeg",
      "video_url": "",
      "created_at": "2025-07-29T01:28:32.508Z"
    }
  ],
  "success": true,
  "task_id": "6a8fe7f7-3897-43e4-ad1e-5d0792fb3dba",
  "trace_id": "2b63eb64-8244-48fa-9d67-8c46041666fe"
}
{
  "error": {
    "code": "token_mismatched",
    "message": "The specified token is not matched with API."
  },
  "trace_id": "2efa9340-b21b-4e26-9e14-4aac95f343ab"
}
{
  "error": {
    "code": "invalid_token",
    "message": "The specified token is invalid or wrong."
  },
  "trace_id": "2efa9340-b21b-4e26-9e14-4aac95f343ab"
}
{
  "error": {
    "code": "used_up",
    "message": "Your balance is not sufficient for current request, please buy more in Ace Data Cloud."
  },
  "trace_id": "2efa9340-b21b-4e26-9e14-4aac95f343ab"
}
{
  "error": {
    "code": "no_api",
    "message": "API does not exist, please make sure url is correct."
  },
  "trace_id": "2efa9340-b21b-4e26-9e14-4aac95f343ab"
}
{
  "error": {
    "code": "too_many_requests",
    "message": "You have exceeded the rate limit."
  },
  "trace_id": "2efa9340-b21b-4e26-9e14-4aac95f343ab"
}
{
  "error": {
    "code": "api_error",
    "message": "Internal server error."
  },
  "trace_id": "2efa9340-b21b-4e26-9e14-4aac95f343ab"
}
{
  "error": {
    "code": "timeout",
    "message": "timeout while waiting for audio generation"
  },
  "trace_id": "2efa9340-b21b-4e26-9e14-4aac95f343ab"
}

Autorizaciones

Authorization
string
header
requerido

Encabezados

accept
enum<string>

Suno Audios Param Accept

Opciones disponibles:
application/json,
application/x-ndjson

Cuerpo

application/json
lyric
string

Suno Audios Lyric

model
enum<string>

Suno Audios Model

Opciones disponibles:
chirp-v5-5,
chirp-v5,
chirp-v4-5-plus,
chirp-v4-5,
chirp-v4,
chirp-v3-5,
chirp-v3-0
Ejemplo:

"chirp-v5-5"

style
string

Suno Audios Style

variation_category
string

Suno Audios Variation Category

title
string

Suno Audios Title

action
enum<string>

Suno Audios Action

Opciones disponibles:
generate,
extend,
upload_extend,
upload_cover,
concat,
cover,
artist_consistency,
artist_consistency_vox,
stems,
all_stems,
replace_section,
underpainting,
overpainting,
remaster,
mashup,
samples,
inspo
Ejemplo:

"generate"

custom
boolean

Suno Audios Custom

prompt
object

Suno Audios Prompt

Ejemplo:

"A song for Christmas"

lyric_prompt
object

Suno Audios Lyric Prompt

audio_id
string

Suno Audios Audio Id

mashup_audio_ids
string[]

Suno Audios Mashup Audio Ids

audio_urls
string[]

Suno Audios Audio Urls

Ejemplo:
[
  "https://cdn1.suno.ai/b481b17a-bf50-4e10-8adc-4d5635050893.mp3"
]
weirdness
number

Suno Audios Weirdness

Rango requerido: 0 <= x <= 1
persona_id
string

Suno Audios Persona Id

overpainting_start
number

Suno Audios Overpainting Start

overpainting_end
number

Suno Audios Overpainting End

samples_start
number

Suno Audios Samples Start

samples_end
number

Suno Audios Samples End

underpainting_start
number

Suno Audios Underpainting Start

underpainting_end
number

Suno Audios Underpainting End

continue_at
number

Suno Audios Continue At

callback_url
string

Suno Audios Callback Url

async
boolean

Suno Audios Async

instrumental
boolean

Suno Audios Instrumental

vocal_gender
string

Suno Audios Vocal Gender

style_negative
string

Suno Audios Style Negative

style_influence
number

Suno Audios Style Influence

Rango requerido: 0 <= x <= 1
audio_weight
number

Suno Audios Audio Weight

Rango requerido: 0 <= x <= 1
replace_section_end
number

Suno Audios Replace Section End

replace_section_start
number

Suno Audios Replace Section Start

Respuesta

Suno Audios Response 200

data
object[]

Suno Audios Response 200 Data

success
boolean

Suno Audios Response 200 Success

task_id
string

Suno Audios Response 200 Task Id

trace_id
string

Suno Audios Response 200 Trace Id