Suno Voice Cloning API Integration Guide

SUNO allows us to create custom voice personas from any audio file, enabling voice cloning for music generation. Unlike the existing Persona API (which uses a Suno-generated audio_id), this API accepts a publicly accessible audio_url, namely your own vocal recording. This document explains how to integrate with the voice cloning API.

Step 1: Create a Voice Persona

Billing: After a voice persona is created successfully, the standard fee for each request is 0.15 Credits. Applicable consumption discounts are subject to the actual bill, and failed requests are not charged.

This API has three input parameters: audio_url (required), which is a publicly accessible URL for an audio file in MP3 or WAV format containing clear single-person vocals; and name and description (optional), which are the name and description of the voice persona.

Audio File Requirements

  • The audio format must be WAV or MP3
  • The audio duration must be between 10~240 seconds; clean single-person dry vocal material of 30~60 seconds is recommended
  • The audio should contain clear, recognizable single-person speaking or singing vocals
  • Be sure to avoid background noise, accompaniment, echo, and reverb; complete songs with accompaniment usually cannot pass voiceprint verification
  • Do not include multiple speakers or multiple vocal layers
  • Material with excessively low volume, unclear speech, or excessive noise may result in cloning failure or poor generation results Usage Restrictions
  • Voice personas created by uploading audio are private resources
  • This voice persona does not support reuse across accounts
  • It is recommended to use it as soon as possible after successful creation; it may become invalid or unavailable if left unused for a long time
  • The returned name is automatically generated by the system; please use the returned persona_id as the reference

Handle Failures Based on Explicit Retry Indicators retryable in the error object is an optional Boolean field. When error.retryable is true, it indicates that this failure allows you to make another request later using the same material and parameters. Explicitly rejected service-busy errors or some temporary voiceprint verification failures may include this indicator; it is recommended to use backoff intervals and limit the number of retries. When retryable is false or the field is missing, do not automatically resend based solely on HTTP 500, busy, or error text. Issues with format, duration, clarity, duplicate recordings, and content moderation should be corrected first; in the event of submission timeouts, connection interruptions, or unclear creation results, you should prioritize using the original task_id to query the task and avoid creating duplicate voice personas. Failed requests are not charged, and successfully retried requests are charged according to the normal rules.

curl -X POST 'https://api.01ai.cloud/suno/voices' \
-H 'accept: application/json' \
-H 'authorization: Bearer {token}' \
-H 'content-type: application/json' \
-d '{
  "audio_url": "https://cdn.acedata.cloud/suno_demo.mp3",
  "name": "My Voice",
  "description": "Example of clear single-person vocals"
}'

The above https://cdn.acedata.cloud/suno_demo.mp3 is a directly callable sample material (MP3, 41 seconds, single-person dry vocals). For a WAV format example, you can use https://cdn.acedata.cloud/uploads/82d23b97-ec1c-4b41-91b8-989fc51f8765 (WAV, 41 seconds, mono 44.1kHz).

The result is as follows:

{
  "success": true,
  "task_id": "0fa609a6-c8d9-4bb5-8574-e4c93bb55d02",
  "data": {
    "persona_id": "1ab79a71-a229-4350-8f02-402ff02eac16",
    "name": "VOICE_20260803037676",
    "is_public": false
  }
}

As you can see, the persona_id field in data is the ID of the created voice persona. The is_public field is always false, because voice personas created by uploading audio are private. Note that the returned name is automatically generated by the system; please use persona_id to reference the voice persona subsequently.

Step 2: Generate Music Using the Voice Persona

After obtaining the voice persona ID, we can use the Suno Audios Generation API to generate music. Set action to generate, and set persona_id to the voice persona ID returned above. The generated song will be sung using the cloned voice.

Note: Voice cloning only supports chirp-v4-5 and later models (such as chirp-v4-5, chirp-v5, and chirp-v5-5), and does not support chirp-v4.

curl -X POST 'https://api.01ai.cloud/suno/audios' \
-H 'accept: application/json' \
-H 'authorization: Bearer {token}' \
-H 'content-type: application/json' \
-d '{
  "action": "generate",
  "model": "chirp-v5-5",
  "prompt": "A warm synth-pop song about city nights",
  "persona_id": "1ab79a71-a229-4350-8f02-402ff02eac16"
}'

The result is as follows:

{
  "success": true,
  "task_id": "53d8a334-a972-43c5-895e-60c4454e88d5",
  "data": [
    {
      "id": "16463960-077c-4700-bbb3-3c7897b943d3",
      "title": "Soft Neon on My Skin",
      "audio_url": "https://cdn.acedata.cloud/assets/examples/fish/5ade0339-5f11-487e-aacc-06a908271706-8e3fcb0e5547.mp3",
      "image_url": "https://cdn.acedata.cloud/e724d7f13d.png",
      "model": "chirp-v5-5",
      "state": "succeeded",
      "prompt": "A warm synth-pop song about city nights",
      "duration": 156.28
    }
  ]
}

persona_id can be used for generate generation and also for cover / upload_cover covers. When specifying a voice, there is no need to fill in vocal_gender at the same time; voice similarity still depends on the reference material and the generated result.

Voices created through this API are private resources. Before covering an existing song, first call /suno/upload, passing the original song's audio_url and the voice's persona_id; after the upload succeeds, call /suno/audios using the returned data.audio_id and the same persona_id:

{
  "action": "upload_cover",
  "model": "chirp-v6",
  "audio_id": "<audio_id returned after uploading with this voice associated>",
  "persona_id": "<persona_id returned by the voice creation API>",
  "custom": true,
  "instrumental": false,
  "lyric": "[Verse]\nEnter the lyrics to be sung",
  "async": true
}

Creating a voice, uploading the original track, and creating a cover must use the same service channel. Do not directly reuse a song ID that was not previously associated with this private voice; see Suno Upload Reference Audio for details.