curl --location 'https://api.myvocal.ai/sound_clone/api/v1/music/projects/mup_.../playback-url' \
--header 'accessKey: <your_api_key>'
{
"code": 1,
"message": "success",
"data": {
"assetId": "ma_...",
"url": "https://<storage-host>/...",
"expiresAt": "2027-01-15T16:10:00",
"requestId": "..."
}
}
Text-to-Music
Get a playback URL
Get a temporary URL that plays the finished song.
GET
/
sound_clone
/
api
/
v1
/
music
/
projects
/
{projectId}
/
playback-url
curl --location 'https://api.myvocal.ai/sound_clone/api/v1/music/projects/mup_.../playback-url' \
--header 'accessKey: <your_api_key>'
{
"code": 1,
"message": "success",
"data": {
"assetId": "ma_...",
"url": "https://<storage-host>/...",
"expiresAt": "2027-01-15T16:10:00",
"requestId": "..."
}
}
Use this to preview or stream the finished song without downloading the whole file.
Header
string
required
API key for authentication.
Path
string
required
The project identifier.
Response
string
The finished audio asset.
string
Temporary URL for the audio.
string
When the URL stops working.
curl --location 'https://api.myvocal.ai/sound_clone/api/v1/music/projects/mup_.../playback-url' \
--header 'accessKey: <your_api_key>'
{
"code": 1,
"message": "success",
"data": {
"assetId": "ma_...",
"url": "https://<storage-host>/...",
"expiresAt": "2027-01-15T16:10:00",
"requestId": "..."
}
}
The URL is short-lived (about 10 minutes). Request it when you need to play the audio instead of storing it, and request a fresh one after it expires.
Common errors
code = 47009: the project does not exist or is not owned by your account.code = 47015: the download/playback source is temporarily unavailable because the song is not ready yet.
