Create voice
Create a reusable voice from a track.
Semua dokumentasi/v1/music/generations/createVoice- Referencing the source track: this endpoint does NOT use
task_id+audio_index— provide a publicly accessibleaudio_urldirectly - Async task: submitting returns a
task_id; pollGET /v1/music/tasks/:task_idfor the result
Note
Referencing the source track: this endpoint does not use
task_id+audio_index; you must directly provide a publicly accessibleaudio_url(the system extracts the voice from it). If missing, returns 400audio_url cannot be empty.
Note
This endpoint has no version dimension: do not pass
version— if passed, it is discarded and does not affect billing.
Contoh permintaan
curl -X POST https://api.apisea.ai/v1/music/generations/createVoice \
-H 'Authorization: Bearer <token>' \
-H 'Content-Type: application/json' \
--data '{
"model": "suno",
"audio_url": "https://example.com/source.mp3"
}'Authorizations
AuthorizationstringrequiredAll endpoints require authentication using a Bearer Token
Get an API Key:
Visit the API Key management page to get your API Key
Add the following to the request headers when using it:
Authorization: Bearer YOUR_API_KEYBody
modelstringdefault: sunoAudio model. Currently pass suno (defaults to suno if omitted).
audio_urlstringrequiredPublicly accessible URL of the source track; the system extracts the voice from it. Only MP3 / WAV are accepted. If missing, returns 400 audio_url cannot be empty.
Note
Get Results: This API is an asynchronous task. After submission, you will receive
task_id; then poll withGET /v1/music/tasks/{task_id}. There is no fixedresult.voice_idresponse format; please display the results based on the actual returned objects and do not use them aspersona_iddirectly.
Response
codeintegerResponse status code
dataarrayReturned data array
Attributes
statusstringTask status
submitted- Submitted
task_idstringUnique task identifier (used to poll GET /v1/music/tasks/{task_id} for the result)
Respons
{
"code": 200,
"data": [
{
"status": "submitted",
"task_id": "task_01K8SGYNNNVBQTXNR4MM964S7K"
}
]
}Menemukan masalah dalam dokumentasi ini? Email support@apisea.ai.