POST
/
voice
/
base64_to_url
Convert base64 audio to URL
curl --request POST \
  --url https://modelslab.com/api/v6/voice/base64_to_url \
  --header 'Content-Type: application/json' \
  --data '{
  "key": "<string>",
  "init_audio": "<string>"
}'
{
  "status": "success",
  "id": 123,
  "output": [
    "<string>"
  ]
}

Request

Make a POST request to below endpoint and pass the required parameters as a request body.
curl
--request POST 'https://modelslab.com/api/v6/voice/base64_to_url' \

Body

json
{   
    "key":"",
    "init_audio":"data:audio/wav;base64,<base64>",
}

Body

application/json
key
string
required

Your API Key used for request authorization

init_audio
string
required

Base64 format audio file (MP3/WAV, 10-15 seconds for faster upload)

Response

Base64 to URL response

status
enum<string>

Status of the conversion

Available options:
success,
error
id
integer

Unique identifier for the conversion

output
string<uri>[]

Array of converted audio URLs