Skip to main content
POST
https://api.getmalakai.com/
agent-voices
/
clone
curl --request POST \
  --url 'agent-voices/clone' \
  --header 'Authorization: Bearer YOUR_API_KEY' \
  --header 'Content-Type: multipart/form-data' \
  -F 'name="Sample"' \
  -F 'description="sample description"' \
  -F 'file=(binary)' \
{
  "status": "<string>",
  "message": "<string>",
  "data": {}
}

Headers

Authorization
string
required
Your API key for authentication. Prefix with Bearer .
x-access-token
string
required
Your access token for authentication.

Body

This endpoint accepts multipart/form-data.
name
string
required
The name for the new agent’s voice.
description
string
required
The description for the new agent’s voice.
file
file
The audio file which hold a sample audio to clone from.
curl --request POST \
  --url 'agent-voices/clone' \
  --header 'Authorization: Bearer YOUR_API_KEY' \
  --header 'Content-Type: multipart/form-data' \
  -F 'name="Sample"' \
  -F 'description="sample description"' \
  -F 'file=(binary)' \

Response

status
string
Confirms the request was successful.
message
string
A human-readable message about the request’s outcome.
data
object
An object containing the details of the newly created agent voice.