Skip to main content
POST
Upload File

Authorizations

Authorization
string
header
required

HTTP: Bearer Auth

Headers

Content-Type
enum<string>
default:multipart/form-data
required

Indicates the request is a multipart file upload.

Available options:
multipart/form-data

Body

multipart/form-data
purpose
enum<string>
default:prompt_audio
required

The purpose of the file. Supported values and formats:

  • prompt_audio: Sample Audio for Voice Cloning(supports mp3, m4a, wav)
Available options:
prompt_audio
Example:

"prompt_audio"

file
file
required

The file to upload. Provide the path to the audio file.

Requirements for uploaded files:

  • Format: mp3, m4a, wav
  • Duration: less than 8 seconds
  • Size: up to 20 MB

Response

200 - application/json
file
object
base_resp
object