# Create a job

Last updated: 2026-11-19

`POST /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.

## Body

- `language_config` (object): `languages`: the codes the audio may be in (one code fixes it); `code_switching`: re-detect the language per utterance.
  - `languages` (array of string, default: `null`): The codes the audio may be in (`en`, `fr`...); one code fixes the language. Empty or absent: detected.
  - `code_switching` (boolean, default: `null`): Detect the language again for each utterance (default false).
- `model` (string, 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`): The model, by code name: `solaria-1` (the default) or `solaria-3`, each with its own price. On a cluster whose pre-recorded hosts do not serve `solaria-1`, a job naming it runs on the model they serve. `trantoria-1`, `solaria-4` and the `solaria-2` family are on staging only for now, unbilled, until they have a price: refused with a 400 elsewhere.
- `diarization` (boolean, default: `null`): Tell who speaks when (`speaker` on each utterance).
- `diarization_config` (object): `number_of_speakers`, or `min_speakers` / `max_speakers`, when known.
  - `number_of_speakers` (integer, default: `null`, 1 to 100): The exact number of speakers, when known.
  - `min_speakers` (integer, default: `null`, 1 to 100): At least this many speakers.
  - `max_speakers` (integer, default: `null`, 1 to 100): At most this many speakers.
  - `enhanced` (boolean, default: `null`): Gladia's enhanced diarization flag.
- `translation` (boolean, default: `null`): Translate the transcript.
- `translation_config` (object): `target_languages` (required), `model`, ...
  - `target_languages` (array of string, default: `null`): The codes to translate into: required when `translation` is on, and one of the targets this cluster's hosts translate into (`x-translation-targets` of this document); another is refused with a 400 when the job is created.
  - `model` (string, default: `null`): The translation model: `base` (the default) or `enhanced` on Gladia's API, `batch` on the cluster's own endpoints; the backend refuses one it does not run.
  - `context_adaptation` (boolean, default: `null`): Adapt the translation to `context`.
  - `context` (string, default: `null`): What the audio is about.
  - `informal` (boolean, default: `null`): Informal forms of address.
- `summarization` (boolean, default: `null`): Summarize the transcript.
- `summarization_config` (object): `type`: `general`, `bullet_points` or `concise`.
  - `type` (string, default: `null`): The summary's form: `general` (the default), `bullet_points` or `concise`; checked when `summarization` is on.
- `named_entity_recognition` (boolean, default: `null`): Find the named entities.
- `sentiment_analysis` (boolean, default: `null`): Find the sentiment of each sentence.
- `sentiment_analysis_config` (object, default: `null`): `unit`: `sentence` (the default, one result per sentence) or `utterance` (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).
- `pii_redaction` (boolean, default: `null`): Redact personal information from the transcript.
- `pii_redaction_config` (object, default: `null`): Which entities to redact, and how.
  - `entity_types` (array of string, default: `null`): Presets (`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.
  - `processed_text_type` (string, default: `"MARKER"`, one of: `MARKER`, `MASK`): `MARKER`: 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 (`##########`).
- `custom_vocabulary` (boolean, default: `null`): Favour your own words and names.
- `custom_vocabulary_config` (object): `vocabulary`: the words, `default_intensity`.
  - `vocabulary` (array of string or object, required): The words to favour: plain strings, or entries with their own intensity.
    - `value` (string, required): The word or name.
    - `intensity` (number, default: `null`, 0 to 1): How much to favour it.
    - `pronunciations` (array of string, default: `null`): How it may be heard.
    - `language` (string, default: `null`): Its language's code.
  - `default_intensity` (number, default: `null`, 0 to 1): The intensity of the plain strings (default 0.5).
- `custom_spelling` (boolean, default: `null`): Rewrite words your way.
- `custom_spelling_config` (object): `spelling_dictionary`: spelling -> heard forms.
  - `spelling_dictionary` (object, required): Each spelling, with the forms heard that it replaces.
- `subtitles` (boolean, default: `null`): Produce subtitles.
- `subtitles_config` (object): `formats` (`srt`, `vtt`) and their layout.
  - `formats` (array of string, default: `null`): The formats to produce (default `srt`).
  - `minimum_duration` (number, default: `null`, at least 0): A caption's shortest duration, seconds.
  - `maximum_duration` (number, default: `null`, at least 0): A caption's longest duration, seconds.
  - `maximum_characters_per_row` (integer, default: `null`, at least 1): A row's longest length.
  - `maximum_rows_per_caption` (integer, default: `null`, 1 to 5): A caption's most rows.
  - `style` (string, default: `null`, one of: `default`, `compliance`): `compliance`: broadcast captioning rules.
- `sentences` (boolean, default: `null`): Split the transcript into sentences.
- `display_mode` (boolean, default: `null`): Regroup the transcript into display lines: the words of each utterance, in time order, cut where another speaker's word falls between them.
- `punctuation_enhanced` (boolean, default: `null`): Finer punctuation.
- `name_consistency` (boolean, default: `null`): One spelling per name across the transcript (`Catherine` and `Katherine` become one).
- `adapter` (string, default: `null`): A specialised version of the model for a domain or a dialect (`medical`), decoding the job's language: set it in `language_config.languages` (`medical`: `en`). Refused with a 400 where no model serves it.
- `audio_to_llm` (boolean, default: `null`): Ask 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/features` `addons.audio_to_llm`), refused with a 400.
- `audio_to_llm_config` (object, default: `null`): `prompts`: what to ask about the transcript.
  - `prompts` (array of string, default: `null`, at least 1 item(s)): Your 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_llm` is on.
  - `model` (string, default: `null`): The LLM model the prompts are asked of, by its code (`google/gemini-3.5-flash-lite`): one of the models `GET /v2/audio-to-llm/models` lists 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.
- `audio_url` (string, default: `null`): The file: an `audio_url` of `POST /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 of `audio_url` and `from_session_id`.
- `from_session_id` (string, default: `null`): A 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 of `audio_url` and `from_session_id`.
- `callback` (boolean, default: `null`): Call `callback_config.url` when the job ends.
- `callback_config` (object, default: `null`): Where to call when the job ends.
  - `url` (string, required): Your HTTPS endpoint, called when the job ends.
  - `method` (string, default: `"POST"`, one of: `POST`, `PUT`): `POST` or `PUT`.
- `callback_url` (string, deprecated, default: `null`): The URL to call when the job ends, Gladia Classic's form of `callback` with `callback_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. Use `callback: true` with `callback_config.url` instead.
- `custom_metadata` (object, default: `null`): Your own data, returned with the job and its callback, and a filter of the list.
- `moderation` (any, deprecated): Accepted 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.
- `chapterization` (any, deprecated): Accepted 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` (any, deprecated): Accepted 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_config` (any, deprecated): Accepted 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` (any, deprecated): Accepted 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_config` (any, deprecated): Accepted 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_enhancer` (any, deprecated): Accepted 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_prompt` (any, deprecated): Accepted 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_enhanced` (any, deprecated): Accepted 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_version` (any, deprecated): Accepted 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_agent` (any, deprecated): Accepted 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_pipeline` (any, deprecated): Accepted 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_timestamps` (any, deprecated): Accepted 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.

Example:

```json
{
  "audio_url": "https://eu1.api.gladia.io/file/0199d7a2-0000-7000-8000-00000000f11e",
  "language_config": {
    "languages": [
      "en"
    ]
  },
  "diarization": true,
  "custom_metadata": {
    "call_id": "42"
  }
}
```

## Responses

### 201

The job is created.

- `id` (string, required): Identifier of the job (a time-ordered UUID).
- `result_url` (string, required): Where to read the job (`GET /v2/pre-recorded/{id}`).

```json
{
  "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.

### 401

No API key, or an unknown one.

### 402

Your workspace has no credits left (`insufficient_credits`).

### 403

The key may not do this (its scopes, or the addresses it may be used from).

### 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.

### 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.

### 503

Pre-recorded transcription is not available right now: try again.

## Example

```bash
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"}}'
```
