Verify and create Voice
curl --request POST \
--url https://apistable.com/api/v1/tasks/create_task \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "suno_voice_create",
"input": {
"voice_upload_task_id": "YOUR_UPLOAD_TASK_ID",
"phrase_id": "YOUR_PHRASE_ID",
"upload_url": "https://example.com/verification.wav"
}
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
model: 'suno_voice_create',
input: {
voice_upload_task_id: 'YOUR_UPLOAD_TASK_ID',
phrase_id: 'YOUR_PHRASE_ID',
upload_url: 'https://example.com/verification.wav'
}
})
};
fetch('https://apistable.com/api/v1/tasks/create_task', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://apistable.com/api/v1/tasks/create_task"
payload = {
"model": "suno_voice_create",
"input": {
"voice_upload_task_id": "YOUR_UPLOAD_TASK_ID",
"phrase_id": "YOUR_PHRASE_ID",
"upload_url": "https://example.com/verification.wav"
}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"code": 200,
"msg": "success",
"data": {
"task_id": "<string>"
}
}{
"code": 123,
"msg": "<string>",
"data": null
}{
"code": 123,
"msg": "<string>",
"data": null
}{
"code": 123,
"msg": "<string>",
"data": null
}{
"code": 123,
"msg": "<string>",
"data": null
}{
"code": 123,
"msg": "<string>",
"data": null
}{
"code": 123,
"msg": "<string>",
"data": null
}{
"code": 123,
"msg": "<string>",
"data": null
}{
"code": 123,
"msg": "<string>",
"data": null
}{
"code": 123,
"msg": "<string>",
"data": null
}{
"code": 123,
"msg": "<string>",
"data": null
}Suno
Verify and create Voice
Submit your recording of the verification phrase using the task ID and phrase ID from the same sample upload.
POST
/
api
/
v1
/
tasks
/
create_task
Verify and create Voice
curl --request POST \
--url https://apistable.com/api/v1/tasks/create_task \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "suno_voice_create",
"input": {
"voice_upload_task_id": "YOUR_UPLOAD_TASK_ID",
"phrase_id": "YOUR_PHRASE_ID",
"upload_url": "https://example.com/verification.wav"
}
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
model: 'suno_voice_create',
input: {
voice_upload_task_id: 'YOUR_UPLOAD_TASK_ID',
phrase_id: 'YOUR_PHRASE_ID',
upload_url: 'https://example.com/verification.wav'
}
})
};
fetch('https://apistable.com/api/v1/tasks/create_task', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://apistable.com/api/v1/tasks/create_task"
payload = {
"model": "suno_voice_create",
"input": {
"voice_upload_task_id": "YOUR_UPLOAD_TASK_ID",
"phrase_id": "YOUR_PHRASE_ID",
"upload_url": "https://example.com/verification.wav"
}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"code": 200,
"msg": "success",
"data": {
"task_id": "<string>"
}
}{
"code": 123,
"msg": "<string>",
"data": null
}{
"code": 123,
"msg": "<string>",
"data": null
}{
"code": 123,
"msg": "<string>",
"data": null
}{
"code": 123,
"msg": "<string>",
"data": null
}{
"code": 123,
"msg": "<string>",
"data": null
}{
"code": 123,
"msg": "<string>",
"data": null
}{
"code": 123,
"msg": "<string>",
"data": null
}{
"code": 123,
"msg": "<string>",
"data": null
}{
"code": 123,
"msg": "<string>",
"data": null
}{
"code": 123,
"msg": "<string>",
"data": null
}Operations are enabled individually by server configuration. Disabled operations return 503 without a task. Music credit deduction is currently disabled.
Using this operation
Submit your recording of the verification phrase using the task ID and phrase ID from the same sample upload.-
- Prepare the fields shown in the example below. Replace sample URLs and IDs with resources you can access.
-
- Set model to suno_voice_create and place the parameters inside input. Submit once and save the returned task_id.
-
- Query the saved task or receive its callback. A processing result is not a reason to submit the operation again.
- Save result.voice_id. Check its availability through GET /api/v1/voices/{voice_id} before reuse.
Create task
Send model and input to the common task endpoint. callback_url is an optional top-level public HTTPS address. All resource IDs are APIstable IDs owned by your account. Music credit deduction is currently disabled.{
"model": "suno_voice_create",
"input": {
"voice_upload_task_id": "YOUR_UPLOAD_TASK_ID",
"phrase_id": "YOUR_PHRASE_ID",
"upload_url": "https://example.com/verification.wav"
}
}
Acceptance response
HTTP 200 confirms acceptance, not completion. Query GET /api/v1/tasks/{task_id} until data.status is succeeded or failed. Read data.result only after success; a failed task has its error in data.message.{
"code": 200,
"msg": "success",
"data": {
"task_id": "YOUR_TASK_ID"
}
}
Parameter reference
| Field | Type | Required | Description and limits |
|---|---|---|---|
| voice_upload_task_id | string | Yes | APIstable task ID returned by suno_voice_upload, bound to the same account. maxLength: 200 |
| phrase_id | string | Yes | APIstable verification phrase ID, bound to the selected voice upload. maxLength: 200 |
| upload_url | string | Yes | Public HTTPS audio URL on port 443, without URL credentials. Use MP3/WAV/FLAC/OGG/M4A/AAC with a readable audio track. See the operation size limit. |
| name | string | No / conditional | Voice or Persona display name. maxLength: 100 |
| description | string | No / conditional | Voice or Persona description. maxLength: 1000 |
Inputs and limits
The schema lists supported fields, types and basic limits. Also follow Important conditions: cross-field and source-resource checks are not fully represented in JSON Schema. Unknown parameters are rejected. URL fields accept public HTTPS URLs, never file objects.{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"voice_upload_task_id": {
"type": "string",
"minLength": 1,
"maxLength": 200,
"description": "APIstable task ID returned by suno_voice_upload, bound to the same account."
},
"phrase_id": {
"type": "string",
"minLength": 1,
"maxLength": 200,
"description": "APIstable verification phrase ID, bound to the selected voice upload."
},
"upload_url": {
"type": "string",
"format": "uri",
"description": "Public HTTPS audio URL on port 443, without URL credentials. Use MP3/WAV/FLAC/OGG/M4A/AAC with a readable audio track. See the operation size limit."
},
"name": {
"type": "string",
"maxLength": 100,
"description": "Voice or Persona display name."
},
"description": {
"type": "string",
"maxLength": 1000,
"description": "Voice or Persona description."
}
},
"required": [
"voice_upload_task_id",
"phrase_id",
"upload_url"
],
"additionalProperties": false
}
Important conditions
- The sample session must be ready and unexpired, and phrase_id must belong to the same voice_upload_task_id. upload_url is your new recording reading the returned phrase. After the 24-hour sample session expires, restart from suno_voice_upload.
- Audio URL inputs must contain readable MP3/WAV/FLAC/OGG/M4A/AAC audio with positive duration; the limit is 500 MiB per file. URLs must be publicly accessible HTTPS on port 443, without embedded credentials or private-network addresses. Keep them accessible until the task finishes.
- Uploaded files last 24 hours, generated files 14 days and task details 30 days. Reused files keep their original expiry. Valid Voice/Persona identity mappings are separate from task-log cleanup. Download files you need to retain.
Result schema
The creation response is {code:200,msg:“success”,data:{task_id}}. Poll GET /api/v1/tasks/{task_id}. On success, data.result is an object matching the schema below; it is otherwise null. input remains a JSON string.{
"type": "object",
"required": [
"voice_id",
"name",
"description",
"available"
],
"properties": {
"voice_id": {
"type": "string"
},
"name": {
"type": "string"
},
"description": {
"type": "string"
},
"available": {
"type": "boolean"
}
},
"additionalProperties": false
}
Related workflows
Voice: all four steps File uploads CallbacksAuthorizations
Every valid key can submit and query its own account. Revoked keys are rejected.
Body
application/json