apimaxDocs
DocsPricingConsole
API ReferenceIntegration GuideUser GuideChangelog

Music Series

POSTMethod 1: Create a Voice from an Existing SongPOSTMethod 2, Step 1: Upload a Vocal SamplePOSTMethod 2, Step 2: Verify and Create a Voice

Image Series

Video series

Task Management

Error Code ReferenceQuery Task StatusGET

Account Management

Query Quota UsageGET

Docs / Music Series / Suno / Vocals & Voices

Vocals & VoicesPOSTSunovoiceclipsuno_voice_from_clip

Method 1: Create a Voice from an Existing Song

Create a vocal voice directly from a song clip already generated in this pool.

POSThttps://api.apimax.ai/v1/music/voice/from-clip
Try it
Bearer API KeyJSONServer-side call

Purpose#

Extract vocals directly from a song clip already generated by this service and create a reusable voice (persona) in a single step. The endpoint is asynchronous: the service returns a public task_id as soon as validation passes and does not wait for the upstream to finish voice extraction and creation. Poll the task status and result afterwards with GET /v1/tasks/:id.

Unlike the two-step verification flow of voice/sample + voice/create, this endpoint skips vocal-sample collection and read-aloud verification: it extracts vocals directly from an existing song clip and creates a voice, which is ideal for quickly cloning a voice on work you have already generated. On success, the result returns a persona_id.

The source clip_id must be a song clip produced by this service's own generation pool. Clips imported by uploading audio, as well as clips derived from them via cover / extend, cannot be used with this endpoint.

Request body (pass-through)#

This endpoint does not parse business fields; the following parameters are forwarded to the upstream as-is.

FieldTypeRequiredDefaultDescription
clip_idstringYes—UUID of the source song clip; must be a non-upload-derived clip produced by this generation pool
namestringYes—Voice name
vocal_start_snumberYes—Start of the vocal extraction, in seconds
vocal_end_snumberYes—End of the vocal extraction, in seconds
descriptionstringNo—Voice description
is_publicboolNofalseWhether the voice is public
user_input_stylesstringNo—Style description
notify_hookstringNo—Callback URL notified when the task reaches a terminal state

clip_id, name, vocal_start_s, and vocal_end_s are required. Clips from uploaded audio and their cover or extend derivatives cannot be used with this endpoint; otherwise the upstream suno-pool returns the corresponding error, which the relay passes through as-is.

Request examples#

cURL
curl --request POST \
  --url https://api.apimax.ai/v1/music/voice/from-clip \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
    "clip_id": "11f1b88e-...",
    "name": "My Voice",
    "vocal_start_s": 0,
    "vocal_end_s": 12,
    "description": "",
    "is_public": false,
    "user_input_styles": "",
    "notify_hook": ""
  }'

Success response#

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

Response fields#

FieldTypeDescription
codestringResponse code; fixed to success on success
messagestringStatus message; usually empty on success
datastringPublic task ID (up to 40 characters) used for subsequent queries

data is the platform's public task_id, not the raw upstream ID. Use this public ID for all subsequent queries.

Error Response#

Errors use the structure below, where error.message is the reason returned by the upstream:

400
{
  "error": {
    "code": "upstream_error",
    "message": "clip_id must be a UUID",
    "type": "max_api_error",
    "upstream": {
      "code": "task_request_invalid"
    }
  }
}
HTTPerror.codeerror.messageScenario
400upstream_errorclip_id must be a UUIDclip_id is missing or is not a UUID
400upstream_errorOther reasons returned by the upstreamA required field is missing, or the clip origin is not allowed
503model_not_foundNo available channelNo channel is currently available

When a task fails asynchronously, GET /v1/tasks/:id returns status: failed and the reason is in error.message.

Fetching the task result#

After a successful submission, poll with the returned task_id:

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

Task status transitions: queued → in_progress → completed / failed; completed and failed are terminal states. On success, the result is returned in the task's data field and contains the ID of the created voice, for example:

json
[
  { "persona_id": "7d20fabc-..." }
]

Once you have the persona_id, pass it in the POST /v1/music/generations request body so the generated result reuses that vocal voice.

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.Upload AudioImport user audio as a Suno-owned clip; returns an async upload task ID. With copyright=true the request switches to the copyright pipeline.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
OverviewPurposeRequest body (pass-through)Request examplesSuccess responseResponse fieldsError ResponseFetching the task resultNext steps
API

POST /v1/music/voice/from-clip