API reference
The API serves real-time transcription: create a session over HTTP, stream its audio over a WebSocket.
Base URL
Section titled “Base URL”| region | |
|---|---|
| Europe | https://eu1.api.gladia.io |
| United States | coming: its address is published on Regions when it opens |
Use the region of your account (Regions).
Authentication
Section titled “Authentication”Send your API key in the x-gladia-key header (Authentication):
curl https://eu1.api.gladia.io/v2/live/defaults -H "x-gladia-key: $GLADIA_API_KEY"Endpoints
Section titled “Endpoints”POST /v2/live |
Create a session, get its WebSocket URL |
WebSocket /v2/live?token=… |
Stream the audio, receive the messages |
GET /v2/live/{id} |
A session and its result |
GET /v2/live |
Your sessions |
GET /v2/live/{id}/file |
A session’s recording |
DELETE /v2/live/{id} |
Delete a session |
GET /v2/live/defaults |
The values of omitted options |
Every page has a Try it panel that calls the API with your key, from your browser.
The pre-recorded API (/v2/pre-recorded, /v2/upload) has its own pages, under Pre-recorded.
Deprecated: Gladia’s older /v2/transcription paths
Section titled “Deprecated: Gladia’s older /v2/transcription paths”Before /v2/pre-recorded, Gladia Classic (Gladia’s cloud API, api.gladia.io) named the
pre-recorded API /v2/transcription. Both are served here, on the same jobs, and the older ones
are deprecated: they are kept only for clients migrated from Gladia Classic. Do not use them in new
integrations: they may be removed (decommissioned) in a future release. Use /v2/pre-recorded
(Deprecated Gladia Classic compatibility). The reference pages above document the current paths only; these answer the
same, with the same key, scopes, bodies, answers and error codes, except the two reads Gladia Classic used
for every kind of transcription (below):
| deprecated | use instead |
|---|---|
POST /v2/transcription |
POST /v2/pre-recorded (Transcribe a file) |
GET /v2/transcription |
GET /v2/pre-recorded for the jobs, GET /v2/live for the live sessions |
GET /v2/transcription/{id} |
GET /v2/pre-recorded/{id}, or GET /v2/live/{id} for a live session |
GET /v2/transcription/{id}/file |
GET /v2/pre-recorded/{id}/file |
DELETE /v2/transcription/{id} |
DELETE /v2/pre-recorded/{id} |
POST /v2/transcription/{id}/feedback |
POST /v2/pre-recorded/{id}/feedback |
A job created on one path is read, downloaded, rated and deleted on the other: the two names are
one API, not two. /v2/upload was never renamed, and has no older path.
As on Gladia Classic, GET /v2/transcription lists the live sessions too, mixed with the
pre-recorded jobs, newest first (each item’s kind says which: pre-recorded or live), and
GET /v2/transcription/{id} reads a live session by its id. A key scoped to one product lists that
product’s items only. Its query parameters are those of the two lists (limit, offset, cursor,
dates, status, custom_metadata), and next pages through both. A new integration lists each kind
on its own route: GET /v2/pre-recorded and GET /v2/live.
Errors
Section titled “Errors”Errors answer with a JSON body:
{ "statusCode": 400, "timestamp": "2026-10-12T09:04:17.210Z", "path": "/v2/live", "message": "Invalid parameter(s). See validation_errors for more details.", "request_id": "G-1a2b3c4d", "validation_errors": ["sample_rate Input should be 8000, 16000, 32000, 44100 or 48000"]}| status | meaning |
|---|---|
400 |
The request is invalid: validation_errors says why. On POST /v2/live, also a model this region does not run (model … is not available in region …), a feature the model you named does not run (translation is not available with model … in region eu: use solaria-3), a language it does not transcribe (language fr is not available with model solaria-2 in region eu: use solaria-3), or a translation target it does not translate into (translation target pl is not available with model solaria-3 in region eu: use solaria-4): change the request, retrying will not help. Those refusals carry their code in error_code (model_unavailable, addon_unavailable, language_unavailable): read it rather than the message, which may be reworded. |
401 |
No API key, or an unknown one. |
403 |
The key may not do this: its scopes, or the caller’s address (error_code gives the reason). |
404 |
No such session for your account. |
429 |
Your account has its maximum number of sessions open (Limits). |
500 |
No model in this region runs the session as asked: its model, its languages and its features together (no inference endpoint available). When the models that run it are only full, the answer is 429 with Retry-After instead. |
503 |
The service is busy: retry with backoff. |
A field the API does not know is refused, never ignored: a misspelled option answers 400 with
"languge_config property should not exist", so a typo cannot leave you with the default
setting. A value of the wrong type ("16000" for 16000) or outside its list of values is
refused the same way. A body that is not JSON answers body is not valid JSON.
An option sent at the top level of the POST /v2/live body while it belongs to a nested config is
refused with its place, so you can move it rather than drop it:
{ "statusCode": 400, "timestamp": "2026-10-12T09:04:17.210Z", "path": "/v2/live", "message": "Invalid parameter(s). See validation_errors for more details.", "request_id": "G-1a2b3c4d", "validation_errors": [ "custom_vocabulary property should not exist at the top level: did you mean realtime_processing.custom_vocabulary?" ]}Quote request_id when you contact support.
OpenAPI
Section titled “OpenAPI”The whole API is described in /openapi.json (OpenAPI 3.1), including the WebSocket messages
(x-websocket): generate a client, or import it in your API tool.