Check Voice availability
curl --request GET \
--url https://apistable.ai/api/v1/voices/{voice_id} \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://apistable.ai/api/v1/voices/{voice_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://apistable.ai/api/v1/voices/{voice_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"code": 200,
"msg": "<string>",
"data": {
"voice_id": "<string>",
"available": true,
"reason": "<string>"
}
}Suno
Check Voice availability
Check a resource owned by your account.
GET
/
api
/
v1
/
voices
/
{voice_id}
Check Voice availability
curl --request GET \
--url https://apistable.ai/api/v1/voices/{voice_id} \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://apistable.ai/api/v1/voices/{voice_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://apistable.ai/api/v1/voices/{voice_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"code": 200,
"msg": "<string>",
"data": {
"voice_id": "<string>",
"available": true,
"reason": "<string>"
}
}Operations are enabled individually by server configuration. Disabled operations return 503 without a task. Music credit deduction is currently disabled.
Resource and availability
Replace voice_id in the path with an APIstable Voice or Persona ID owned by your account. This synchronous check does not create a task. available:false means the provider reported the resource unavailable; it is not returned for network errors. A missing/foreign resource returns 404, a provider-account mismatch 409, an expired resource 410, an invalid provider reply 502, and provider failure 503.Output
{
"code": 200,
"msg": "success",
"data": {
"voice_id": "APIstable voice ID",
"available": true,
"reason": null
}
}