Skip to content
AceDataCloudPublic

Latest commit

 

History

264 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 

Repository files navigation

Suno API

Create songs from a short description or your own lyrics through Ace Data Cloud.

API documentation · Models and pricing · 中文文档

Get an API key

  1. Open Applications and sign in or register.
  2. Find General Application and click the copy button marked 1. If needed, select Initialize General Application first. Confirm access to this service and enough balance for your request.

Copy the API key from General Application using the button marked 1

  1. Save the copied key in your terminal. The examples add the Bearer prefix in the HTTP header.
export ACEDATACLOUD_API_KEY='YOUR_API_KEY'

Quickstart

Submit a request

curl --fail-with-body --silent --show-error https://api.acedata.cloud/suno/audios \
  --header "Authorization: Bearer $ACEDATACLOUD_API_KEY" \
  --header 'Content-Type: application/json' \
  --data '{
  "action": "generate",
  "model": "chirp-v6",
  "custom": false,
  "prompt": "An uplifting acoustic folk song about a new beginning, with warm vocals",
  "async": true
}'

Submission response JSON

The following JSON examples illustrate the documented fields. IDs, timestamps and output URLs are placeholders. Use the values returned by your own request.

{
  "task_id": "TASK_ID"
}

Save task_id and query that same task.

Query the task

curl --fail-with-body --silent --show-error https://api.acedata.cloud/suno/tasks \
  --header "Authorization: Bearer $ACEDATACLOUD_API_KEY" \
  --header 'Content-Type: application/json' \
  --data '{"action":"retrieve","id":"TASK_ID"}'

Processing response JSON

{
  "id": "TASK_ID",
  "type": "audios",
  "created_at": 1790000000,
  "trace_id": "TRACE_ID",
  "request": {
    "action": "generate",
    "model": "chirp-v6",
    "custom": false,
    "prompt": "An uplifting acoustic folk song about a new beginning, with warm vocals",
    "async": true
  },
  "finished_at": null
}

Query again after a few seconds while processing continues.

Completed response JSON

{
  "id": "TASK_ID",
  "type": "audios",
  "created_at": 1790000000,
  "trace_id": "TRACE_ID",
  "request": {
    "action": "generate",
    "model": "chirp-v6",
    "custom": false,
    "prompt": "An uplifting acoustic folk song about a new beginning, with warm vocals",
    "async": true
  },
  "finished_at": 1790000045,
  "elapsed": 45,
  "response": {
    "success": true,
    "task_id": "TASK_ID",
    "trace_id": "TRACE_ID",
    "data": [
      {
        "id": "AUDIO_ID_1",
        "model": "chirp-v6",
        "state": "succeeded",
        "title": "A New Beginning",
        "audio_url": "https://media.example.com/song-1.mp3"
      },
      {
        "id": "AUDIO_ID_2",
        "model": "chirp-v6",
        "state": "succeeded",
        "title": "A New Beginning",
        "audio_url": "https://media.example.com/song-2.mp3"
      }
    ]
  }
}

Continue while finished_at is null or absent. When the task finishes, inspect response.success and the result state. On success, open response.data[*].audio_url. On failure, inspect response.error and retain the original task ID for support.

Keep querying the original task after a timeout or page reload. Submit again when you intend to start another generation.

APIs and Guides

Explore the supported endpoints and integration guides for Suno Music Generation.

API Path Integration Guidance
Suno Audios Generation API /suno/audios Suno Audios Generation API Integration Guide
Suno Persona API /suno/persona Suno Persona API Integration Guide
Suno MP4 API /suno/mp4 Suno MP4 API Integration Guide
Suno Vox API /suno/vox Suno Vox API Integration Guide
$t(document_title_suno_timing_generation_api) /suno/timing Suno Timing API Integration Guide
Suno Wav API /suno/wav