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>' \
  --form 'audio=<string>'
{
  "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/test/audio-transcription/short-audio-en-16000.wav",
    "extension": "wav",
    "size": 365702,
    "audio_duration": "4.145782",
    "number_of_channels": 1
  }
}

Authorizations

x-gladia-key
string
headerrequired

Your personal Gladia API key

Body

audio
string

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

audio_metadata
object
required

Uploaded audio file detected metadata