curl --request POST \
--url https://api.gladia.io/v2/upload \
--header 'Content-Type: multipart/form-data' \
--header 'x-gladia-key: <api-key>' \
--form audio=@example-file
{
"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
}
}
Upload a file for use in a pre-recorded job.
curl --request POST \
--url https://api.gladia.io/v2/upload \
--header 'Content-Type: multipart/form-data' \
--header 'x-gladia-key: <api-key>' \
--form audio=@example-file
{
"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
}
}
Your personal Gladia API key
The response is of type object
.
Was this page helpful?