POST
/
v2
/
upload
curl --request POST \
  --url https://api.gladia.io/v2/upload \
  --header 'Content-Type: multipart/form-data' \
  --header 'x-gladia-key: <api-key>'
{
  "audio_url": "https://api.gladia.io/file/6c09400e-23d2-4bd2-be55-96a5ececfa3b",
  "audio_metadata": {
    "id": "6c09400e-23d2-4bd2-be55-96a5ececfa3b",
    "filename": "short-audio-en-16000.wav",
    "source": "http://files.gladia.io/example/audio-transcription/split_infinity.wav",
    "extension": "wav",
    "size": 365702,
    "audio_duration": 4.145782,
    "number_of_channels": 1
  }
}

Authorizations

x-gladia-key
string
header
required

Your personal Gladia API key

Body

audio
file

The file to be uploaded. This should be an audio or video file.

Response

200 - application/json
audio_url
string
required

Uploaded audio file Gladia URL

Example:

"https://api.gladia.io/file/6c09400e-23d2-4bd2-be55-96a5ececfa3b"

audio_metadata
object
required

Uploaded audio file detected metadata