Docs / Music Series / Suno / Vocals & Voices
Method 1: Create a Voice from an Existing Song
Create a vocal voice directly from a song clip already generated in this pool.
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.
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
clip_id | string | Yes | — | UUID of the source song clip; must be a non-upload-derived clip produced by this generation pool |
name | string | Yes | — | Voice name |
vocal_start_s | number | Yes | — | Start of the vocal extraction, in seconds |
vocal_end_s | number | Yes | — | End of the vocal extraction, in seconds |
description | string | No | — | Voice description |
is_public | bool | No | false | Whether the voice is public |
user_input_styles | string | No | — | Style description |
notify_hook | string | No | — | 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 --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#
{
"code": "success",
"message": "",
"data": "task_gCcOftvxrLiZiuVmzYixXcJUfecP4YbF"
}Response fields#
| Field | Type | Description |
|---|---|---|
code | string | Response code; fixed to success on success |
message | string | Status message; usually empty on success |
data | string | Public 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:
{
"error": {
"code": "upstream_error",
"message": "clip_id must be a UUID",
"type": "max_api_error",
"upstream": {
"code": "task_request_invalid"
}
}
}| HTTP | error.code | error.message | Scenario |
|---|---|---|---|
| 400 | upstream_error | clip_id must be a UUID | clip_id is missing or is not a UUID |
| 400 | upstream_error | Other reasons returned by the upstream | A required field is missing, or the clip origin is not allowed |
| 503 | model_not_found | No available channel | No 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:
[
{ "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.

