Gladia Integration¶
Official Gladia API Documentation
Gladia provides audio upload and transcription APIs. Use KeyPool to call Gladia with your team token and a stable base URL.
Endpoint¶
{YOUR_KEYPOOL_BASE_URL}/v1/gladia
Authentication¶
Send your KeyPool team token as a bearer token. Do not send a personal Gladia API key.
Authorization: Bearer {KEYPOOL_TOKEN}
Quick Start¶
Upload Audio¶
curl -X POST "${KEYPOOL_BASE_URL}/v1/gladia/v2/upload" \
-H "Authorization: Bearer ${KEYPOOL_TOKEN}" \
-F "audio=@./sample.wav"
Start Pre-recorded Transcription¶
curl -X POST "${KEYPOOL_BASE_URL}/v1/gladia/v2/pre-recorded" \
-H "Authorization: Bearer ${KEYPOOL_TOKEN}" \
-H "Content-Type: application/json" \
-d '{
"audio_url": "https://example.com/sample.wav",
"diarization": false
}'
Poll A Result¶
curl "${KEYPOOL_BASE_URL}/v1/gladia/v2/pre-recorded/${GLADIA_JOB_ID}" \
-H "Authorization: Bearer ${KEYPOOL_TOKEN}"
Notes¶
- Use the same JSON request bodies documented by Gladia.
- KeyPool injects the upstream
x-gladia-keyheader for you. - Your token must be enabled for the
gladiaservice.
Interactive API Reference¶
For in-browser testing, see API Reference -> Gladia.