Create a job
/v2/pre-recorded Starts transcribing a file with its options; read the job with GET /v2/pre-recorded/{id} until it is done, or get a callback. Jobs run on Gladia Enterprise's own pre-recorded hosts, or on Gladia's standard API (Gladia SaaS, with zero data retention), as the cluster's operator set it; the API is the same either way.
Authentication: your API key in the x-gladia-key header (Authentication).
Example
curl -X POST https://eu1.api.gladia.io/v2/pre-recorded \ -H "x-gladia-key: $GLADIA_API_KEY" \ -H "content-type: application/json" \ -d '{"audio_url": "https://eu1.api.gladia.io/file/0199d7a2-0000-7000-8000-00000000f11e", "language_config": {"languages": ["en"]}, "diarization": true, "custom_metadata": {"call_id": "42"}}'Try it
Body
-
language_configobjectlanguages: the codes the audio may be in (one code fixes it);code_switching: re-detect the language per utterance.2 fields
-
languagesarray of stringThe codes the audio may be in (
en,fr...); one code fixes the language. Empty or absent: detected.default:
null -
code_switchingbooleanDetect the language again for each utterance (default false).
default:
null
-
-
modelstringThe model, by code name:
solaria-1(the default) orsolaria-3, each with its own price. On a cluster whose pre-recorded hosts do not servesolaria-1, a job naming it runs on the model they serve.trantoria-1,solaria-4and thesolaria-2family are on staging only for now, unbilled, until they have a price: refused with a 400 elsewhere.default:
null· one of:solaria-1,solaria-3,trantoria-1,solaria-4,solaria-2,solaria-2.1,solaria-2-med-en,solaria-2-med-de,solaria-2-en-dict -
diarizationbooleanTell who speaks when (
speakeron each utterance).default:
null -
diarization_configobjectnumber_of_speakers, ormin_speakers/max_speakers, when known.4 fields
-
number_of_speakersintegerThe exact number of speakers, when known.
default:
null· 1 to 100 -
min_speakersintegerAt least this many speakers.
default:
null· 1 to 100 -
max_speakersintegerAt most this many speakers.
default:
null· 1 to 100 -
enhancedbooleanGladia's enhanced diarization flag.
default:
null
-
-
translationbooleanTranslate the transcript.
default:
null -
translation_configobjecttarget_languages(required),model, ...5 fields
-
target_languagesarray of stringThe codes to translate into: required when
translationis on, and one of the targets this cluster's hosts translate into (x-translation-targetsof this document); another is refused with a 400 when the job is created.default:
null -
modelstringThe translation model:
base(the default) orenhancedon Gladia's API,batchon the cluster's own endpoints; the backend refuses one it does not run.default:
null -
context_adaptationbooleanAdapt the translation to
context.default:
null -
contextstringWhat the audio is about.
default:
null -
informalbooleanInformal forms of address.
default:
null
-
-
summarizationbooleanSummarize the transcript.
default:
null -
summarization_configobjecttype:general,bullet_pointsorconcise.1 fields
-
typestringThe summary's form:
general(the default),bullet_pointsorconcise; checked whensummarizationis on.default:
null
-
-
named_entity_recognitionbooleanFind the named entities.
default:
null -
sentiment_analysisbooleanFind the sentiment of each sentence.
default:
null -
sentiment_analysis_configobjectunit:sentence(the default, one result per sentence) orutterance(one per utterance, as the live API);use_audio/emotion_use_audio: fuse the speech profiler's heads (default false = text only, EU AI Act).default:
null -
pii_redactionbooleanRedact personal information from the transcript.
default:
null -
pii_redaction_configobjectWhich entities to redact, and how.
default:
null2 fields
-
entity_typesarray of stringPresets (
GDPR,HIPAA_SAFE_HARBOR,PCI...) and entity types (NAME,PHONE_NUMBER...) to redact, as Gladia's API names them (upper case): only those are redacted, each preset what Gladia's API redacts for it. Omitted or empty: Gladia's API's own default set (no health information). An unknown name is refused with a 400 that names it.default:
null -
processed_text_typestringMARKER: each value replaced by its type and its number, one per value and type in the order first heard ([NAME_1],[EMAIL_ADDRESS_1]);MASK: each character of the value replaced by#, the blanks included (##########).default:
"MARKER"· one of:MARKER,MASK
-
-
custom_vocabularybooleanFavour your own words and names.
default:
null -
custom_vocabulary_configobjectvocabulary: the words,default_intensity.2 fields
-
vocabularyarray of string or object requiredThe words to favour: plain strings, or entries with their own intensity.
4 fields
-
valuestring requiredThe word or name.
-
intensitynumberHow much to favour it.
default:
null· 0 to 1 -
pronunciationsarray of stringHow it may be heard.
default:
null -
languagestringIts language's code.
default:
null
-
-
default_intensitynumberThe intensity of the plain strings (default 0.5).
default:
null· 0 to 1
-
-
custom_spellingbooleanRewrite words your way.
default:
null -
custom_spelling_configobjectspelling_dictionary: spelling -> heard forms.1 fields
-
spelling_dictionaryobject requiredEach spelling, with the forms heard that it replaces.
-
-
subtitlesbooleanProduce subtitles.
default:
null -
subtitles_configobjectformats(srt,vtt) and their layout.6 fields
-
formatsarray of stringThe formats to produce (default
srt).default:
null -
minimum_durationnumberA caption's shortest duration, seconds.
default:
null· at least 0 -
maximum_durationnumberA caption's longest duration, seconds.
default:
null· at least 0 -
maximum_characters_per_rowintegerA row's longest length.
default:
null· at least 1 -
maximum_rows_per_captionintegerA caption's most rows.
default:
null· 1 to 5 -
stylestringcompliance: broadcast captioning rules.default:
null· one of:default,compliance
-
-
sentencesbooleanSplit the transcript into sentences.
default:
null -
display_modebooleanRegroup the transcript into display lines: the words of each utterance, in time order, cut where another speaker's word falls between them.
default:
null -
punctuation_enhancedbooleanFiner punctuation.
default:
null -
name_consistencybooleanOne spelling per name across the transcript (
CatherineandKatherinebecome one).default:
null -
adapterstringA specialised version of the model for a domain or a dialect (
medical), decoding the job's language: set it inlanguage_config.languages(medical:en). Refused with a 400 where no model serves it.default:
null -
audio_to_llmbooleanAsk your own prompts about the transcript: each one is answered by the cluster's LLM (
audio_to_llm_config.prompts). Where no LLM is connected for it (GET /v2/featuresaddons.audio_to_llm), refused with a 400.default:
null -
audio_to_llm_configobjectprompts: what to ask about the transcript.default:
null2 fields
-
promptsarray of stringYour prompts, each asked of the LLM over the transcript (one answer each, in their order): 1 to 10, each up to 4000 characters. Required when
audio_to_llmis on.default:
null· at least 1 item(s) -
modelstringThe LLM model the prompts are asked of, by its code (
google/gemini-3.5-flash-lite): one of the modelsGET /v2/audio-to-llm/modelslists for your workspace (any model of your cluster's LLM provider is accepted, that list shows the most used). Omitted: the cluster's default model. Refused (400) until your cluster's operator turns model choice on. Always run by your cluster's own LLM provider, at your workspace's sovereignty level; a model the provider does not serve is a 400. Billed what the provider charges for the job's calls, plus the cluster's markup.default:
null
-
-
audio_urlstringThe file: an
audio_urlofPOST /v2/upload, the public URL of an audio or video file, or, where the cluster takes them, the URL of an online video page (YouTube, TikTok, Facebook, LinkedIn, ShareChat, Likee): see the documentation's Supported formats and limits page. Exactly one ofaudio_urlandfrom_session_id.default:
null -
from_session_idstringA live session of yours that ended with its audio recorded: its recording is the file, transcribed again by the pre-recorded pipeline, its live transcript speeding the pass up (the post-call pass of
finalization). Exactly one ofaudio_urlandfrom_session_id.default:
null -
callbackbooleanCall
callback_config.urlwhen the job ends.default:
null -
callback_configobjectWhere to call when the job ends.
default:
null2 fields
-
urlstring requiredYour HTTPS endpoint, called when the job ends.
-
methodstringPOSTorPUT.default:
"POST"· one of:POST,PUT
-
-
callback_urlstring deprecatedThe URL to call when the job ends, Gladia Classic's form of
callbackwithcallback_config.url. Deprecated: kept only for clients migrated from Gladia Classic (Gladia's cloud API,api.gladia.io). Do not use it in new integrations: it may be removed (decommissioned) in a future release. Usecallback: truewithcallback_config.urlinstead.default:
null -
custom_metadataobjectYour own data, returned with the job and its callback, and a filter of the list.
default:
null -
moderationany deprecatedAccepted with any value and ignored. Deprecated: kept only for clients migrated from Gladia Classic (Gladia's cloud API,
api.gladia.io). Do not use it in new integrations: it may be removed (decommissioned) in a future release. It has no effect: remove it from your requests. -
chapterizationany deprecatedAccepted with any value and ignored. Deprecated: kept only for clients migrated from Gladia Classic (Gladia's cloud API,
api.gladia.io). Do not use it in new integrations: it may be removed (decommissioned) in a future release. It has no effect: remove it from your requests. -
structured_data_extractionany deprecatedAccepted with any value and ignored. Deprecated: kept only for clients migrated from Gladia Classic (Gladia's cloud API,
api.gladia.io). Do not use it in new integrations: it may be removed (decommissioned) in a future release. It has no effect: remove it from your requests. -
structured_data_extraction_configany deprecatedAccepted with any value and ignored. Deprecated: kept only for clients migrated from Gladia Classic (Gladia's cloud API,
api.gladia.io). Do not use it in new integrations: it may be removed (decommissioned) in a future release. It has no effect: remove it from your requests. -
speaker_reidentificationany deprecatedAccepted with any value and ignored. Deprecated: kept only for clients migrated from Gladia Classic (Gladia's cloud API,
api.gladia.io). Do not use it in new integrations: it may be removed (decommissioned) in a future release. It has no effect: remove it from your requests. -
speaker_reidentification_configany deprecatedAccepted with any value and ignored. Deprecated: kept only for clients migrated from Gladia Classic (Gladia's cloud API,
api.gladia.io). Do not use it in new integrations: it may be removed (decommissioned) in a future release. It has no effect: remove it from your requests. -
audio_enhancerany deprecatedAccepted with any value and ignored. Deprecated: kept only for clients migrated from Gladia Classic (Gladia's cloud API,
api.gladia.io). Do not use it in new integrations: it may be removed (decommissioned) in a future release. It has no effect: remove it from your requests. -
context_promptany deprecatedAccepted with any value and ignored. Deprecated: kept only for clients migrated from Gladia Classic (Gladia's cloud API,
api.gladia.io). Do not use it in new integrations: it may be removed (decommissioned) in a future release. It has no effect: remove it from your requests. -
diarization_enhancedany deprecatedAccepted with any value and ignored. Deprecated: kept only for clients migrated from Gladia Classic (Gladia's cloud API,
api.gladia.io). Do not use it in new integrations: it may be removed (decommissioned) in a future release. It has no effect: remove it from your requests. -
x_gladia_versionany deprecatedAccepted with any value and ignored. Deprecated: kept only for clients migrated from Gladia Classic (Gladia's cloud API,
api.gladia.io). Do not use it in new integrations: it may be removed (decommissioned) in a future release. It has no effect: remove it from your requests. -
x_user_agentany deprecatedAccepted with any value and ignored. Deprecated: kept only for clients migrated from Gladia Classic (Gladia's cloud API,
api.gladia.io). Do not use it in new integrations: it may be removed (decommissioned) in a future release. It has no effect: remove it from your requests. -
x_transcription_pipelineany deprecatedAccepted with any value and ignored. Deprecated: kept only for clients migrated from Gladia Classic (Gladia's cloud API,
api.gladia.io). Do not use it in new integrations: it may be removed (decommissioned) in a future release. It has no effect: remove it from your requests. -
accurate_words_timestampsany deprecatedAccepted with any value and ignored. Deprecated: kept only for clients migrated from Gladia Classic (Gladia's cloud API,
api.gladia.io). Do not use it in new integrations: it may be removed (decommissioned) in a future release. It has no effect: remove it from your requests.
Responses
201 The job is created.
-
idstring requiredIdentifier of the job (a time-ordered UUID).
-
result_urlstring requiredWhere to read the job (
GET /v2/pre-recorded/{id}).
{ "id": "0199d7a2-5c3e-7b41-9f0a-3c2d1e4f5a6b", "result_url": "https://eu1.api.gladia.io/v2/pre-recorded/0199d7a2-5c3e-7b41-9f0a-3c2d1e4f5a6b"} 400 The request is invalid (validation_errors lists why), or pre-recorded transcription is not available or turned off on this cluster (message says so): do not retry.
{ "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" ], "error": "string"}401 No API key, or an unknown one.
{ "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" ], "error": "string"} 402 Your workspace has no credits left (insufficient_credits).
{ "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" ], "error": "string"}403 The key may not do this (its scopes, or the addresses it may be used from).
{ "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" ], "error": "string"}413 The file is too long for your workspace (its maximum audio duration), or larger than 1000 MB: split it, or ask your operator for a higher limit.
{ "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" ], "error": "string"} 429 Too many of your jobs are waiting, or too many requests in the minute: wait the seconds of the Retry-After header when it is sent, then retry.
{ "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" ], "error": "string"}503 Pre-recorded transcription is not available right now: try again.
{ "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" ], "error": "string"}