4Z API

Upload sample audio

Endpoint: POST https://4zapi.com/minimax/v1/files

Files that need to be uploaded. Fill in the path address of the file

Files that support uploading must comply with the following specifications:

The uploaded audio file format must be: mp3, m4a, wav format The duration of the uploaded audio file is less than 8 seconds The size of the uploaded audio file must not exceed 20mb

Request body (multipart/form-data)

  • file (string, required): Select audio file (mp3/m4a/wav)
  • purpose (string, required): prompt_audio

Request example

{
  "file": "",
  "purpose": "prompt_audio"
}