# Pre-recorded (batch) transcription add-ons

Last updated: 2026-11-18

A transcript is often the start, not the end: you want the names and phone numbers in it, the personal data
hidden before it is stored, how each speaker felt, a French version, subtitles for the video. Add-ons do that
in the same job: ask for them in the request, and each one adds its entry to the job's `result`, in the shape
of Gladia's pre-recorded API.

:::note[Where the add-ons run]
A job runs on Gladia Enterprise's own pre-recorded hosts, or on Gladia's standard API, as your
cluster's operator chose ([Where pre-recorded jobs run](/pre-recorded/where-jobs-run/)). On Gladia
Enterprise's own hosts, every add-on below but summarization runs on the same host as the
transcription: your audio and its transcript never go to another service for them. Summarization sends
the transcript to the LLM that writes the summary, for that job only.
:::

## Ask for them

Add the options to the job's request. Here: the named entities, the sentiment of each sentence, and the
personal data redacted.

```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", "diarization": true, "named_entity_recognition": true, "sentiment_analysis": true, "pii_redaction": true, "pii_redaction_config": {"entity_types": ["NAME", "PHONE_NUMBER"], "processed_text_type": "MARKER"}}'
```

Once the job is `done`, each add-on's entry sits next to the transcript in `result`: whether it succeeded,
how long it took, and its results.

```json
{
  "id": "0199d7a2-6a10-7c22-8d4e-5f6a7b8c9d0e",
  "request_id": "G-0199d7a2",
  "version": 2,
  "status": "done",
  "created_at": "2026-10-20T09:12:03.000Z",
  "completed_at": "2026-10-20T09:12:09.000Z",
  "custom_metadata": null,
  "error_code": null,
  "kind": "pre-recorded",
  "post_session_metadata": {},
  "file": {
    "id": "0199d7a2-0000-7000-8000-00000000f11e",
    "filename": "call.wav",
    "source": null,
    "audio_duration": 6.0,
    "number_of_channels": 1
  },
  "request_params": {"diarization": true, "named_entity_recognition": true, "sentiment_analysis": true},
  "result": {
    "metadata": {
      "audio_duration": 6.0,
      "number_of_distinct_channels": 1,
      "billing_time": 6.0,
      "transcription_time": 1.4
    },
    "transcription": {
      "full_transcript": "Hi, this is [NAME_GIVEN_1] from Gladia. Thanks, that is great.",
      "languages": ["en"],
      "utterances": [
        {
          "start": 0.0, "end": 2.6, "confidence": 0.96, "channel": 0, "speaker": 0,
          "language": "en", "text": "Hi, this is [NAME_GIVEN_1] from Gladia.",
          "words": [
            {"word": "Hi,", "start": 0.0, "end": 0.4, "confidence": 0.98},
            {"word": " this", "start": 0.5, "end": 0.7, "confidence": 0.97},
            {"word": " is", "start": 0.7, "end": 0.9, "confidence": 0.97},
            {"word": " [NAME_GIVEN_1]", "start": 0.9, "end": 1.6, "confidence": 0.95},
            {"word": " from", "start": 1.7, "end": 2.0, "confidence": 0.96},
            {"word": " Gladia.", "start": 2.0, "end": 2.6, "confidence": 0.94}
          ]
        },
        {
          "start": 3.1, "end": 6.0, "confidence": 0.95, "channel": 0, "speaker": 1,
          "language": "en", "text": "Thanks, that is great.",
          "words": [
            {"word": "Thanks,", "start": 3.1, "end": 3.7, "confidence": 0.97},
            {"word": " that", "start": 3.9, "end": 4.2, "confidence": 0.95},
            {"word": " is", "start": 4.2, "end": 4.4, "confidence": 0.95},
            {"word": " great.", "start": 4.4, "end": 6.0, "confidence": 0.93}
          ]
        }
      ]
    },
    "named_entity_recognition": {
      "success": true, "is_empty": false, "exec_time": 0.02, "error": null,
      "results": [{"entity_type": "ORGANIZATION", "text": "Gladia", "start": 2.0, "end": 2.6}]
    },
    "sentiment_analysis": {
      "success": true, "is_empty": false, "exec_time": 0.03, "error": null,
      "results": [
        {"sentiment": "neutral", "emotion": "neutral", "text": "Hi, this is [NAME_GIVEN_1] from Gladia.",
         "start": 0.0, "end": 2.6, "channel": 0, "speaker": 0},
        {"sentiment": "positive", "emotion": "joy", "text": "Thanks, that is great.",
         "start": 3.1, "end": 6.0, "channel": 0, "speaker": 1}
      ]
    },
    "diarization": {
      "success": true, "is_empty": false, "exec_time": 0.4, "error": null,
      "results": [
        {
          "start": 0.0, "end": 2.6, "confidence": 0.96, "channel": 0, "speaker": 0,
          "language": "en", "text": "Hi, this is [NAME_GIVEN_1] from Gladia.",
          "words": [
            {"word": "Hi,", "start": 0.0, "end": 0.4, "confidence": 0.98},
            {"word": " this", "start": 0.5, "end": 0.7, "confidence": 0.97},
            {"word": " is", "start": 0.7, "end": 0.9, "confidence": 0.97},
            {"word": " [NAME_GIVEN_1]", "start": 0.9, "end": 1.6, "confidence": 0.95},
            {"word": " from", "start": 1.7, "end": 2.0, "confidence": 0.96},
            {"word": " Gladia.", "start": 2.0, "end": 2.6, "confidence": 0.94}
          ]
        },
        {
          "start": 3.1, "end": 6.0, "confidence": 0.95, "channel": 0, "speaker": 1,
          "language": "en", "text": "Thanks, that is great.",
          "words": [
            {"word": "Thanks,", "start": 3.1, "end": 3.7, "confidence": 0.97},
            {"word": " that", "start": 3.9, "end": 4.2, "confidence": 0.95},
            {"word": " is", "start": 4.2, "end": 4.4, "confidence": 0.95},
            {"word": " great.", "start": 4.4, "end": 6.0, "confidence": 0.93}
          ]
        }
      ]
    }
  }
}
```

## What runs on Gladia Enterprise

| Option | What you get | On Gladia Enterprise | Good to know |
|---|---|---|---|
| `diarization` | `speaker` on every utterance | diarization-v1 | `diarization_config`: the speaker count, when known ([Speakers, subtitles and sentences](/pre-recorded/speakers-subtitles-sentences/#diarization-who-speaks-when)). |
| `language_config` | the language of each utterance | language-id-v1 | One language: forced on the whole file. Several: each utterance gets one of them. None: detected. |
| `custom_vocabulary` | your words and names spelled your way | the transcription itself, then the vocabulary's `pronunciations` rewritten to their `value` | Up to 1000 entries, 64 KiB of text in all. |
| `custom_spelling` | `spelling_dictionary` applied to the text and the words | the transcript, rewritten | Whole words, case-insensitive. Up to 1000 spellings of up to 32 variants each, 64 KiB of text in all. |
| `punctuation_enhanced` | finer punctuation and casing | punctuation-v1 | |
| `named_entity_recognition` | `named_entity_recognition.results`: `entity_type` (upper case, `EMAIL_ADDRESS`), `text`, `start`, `end` | ner-pii-v1 | Times are those of the entity's words. |
| `pii_redaction` | the personal data replaced in the text, the words, the sentences and the subtitles | ner-pii-v1 | `processed_text_type`: `MARKER` (`[NAME_1]`, the default) or `MASK` (`##########`). `entity_types`: Gladia's presets and types ([PII redaction](#pii-redaction)). |
| `sentiment_analysis` | `sentiment` and `emotion` of every sentence | the turn router on the sentence's words (text only) | One result per sentence, as on Gladia's API. See [Sentiment per sentence](#sentiment-per-sentence). |
| `translation` | `translation.results`: one transcript per `target_languages` | translation-v1, on the `solaria-3` model | Translates the speech itself. Translated utterances keep the original times and speakers; their `words` are empty. |
| `sentences` | `sentences.results`: one object per sentence (`sentence`, `start`, `end`, `words`, `confidence`, `language`, `channel`, `speaker`) | built from the words | A sentence never spans two utterances ([output](/pre-recorded/speakers-subtitles-sentences/#sentences)). |
| `subtitles` | `transcription.subtitles`: SRT and WebVTT files | built from the words | `subtitles_config`: `formats`, `maximum_characters_per_row` (42), `maximum_rows_per_caption` (2), `minimum_duration` (1 s), `maximum_duration` (7 s), `style` ([settings and output](/pre-recorded/speakers-subtitles-sentences/#subtitles-srt-and-webvtt)). |
| `display_mode` | `display_mode.results`: the transcript regrouped into display lines | built from the words | Classic's hidden add-on, the same result. Each line carries its own times, channel, speaker and confidence. Included in the price. |

Every add-on of a job runs once, on the final transcript: the named entities and the redaction share one pass,
the sentences, subtitles, display lines and sentiment read the redacted text.

## PII redaction

`pii_redaction` works as on Gladia's cloud API: the same request, the same markers, the same presets. Here, a
call's personal data under the GDPR preset, each value replaced by a marker:

```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", "pii_redaction": true, "pii_redaction_config": {"entity_types": ["GDPR"], "processed_text_type": "MARKER"}}'
```

```json
{
  "start": 0.0, "end": 6.2, "confidence": 0.95, "channel": 0, "language": "en",
  "text": "I'm calling about the order for [NAME_1]. Can you confirm the delivery to [EMAIL_ADDRESS_1]? Yes, [NAME_1] placed it.",
  "words": [
    {"word": " [NAME_1].", "start": 1.6, "end": 2.4, "confidence": 0.95},
    {"word": " [EMAIL_ADDRESS_1]?", "start": 3.9, "end": 5.1, "confidence": 0.94}
  ]
}
```

- **`MARKER`** (the default): the type (always in English: `[NAME_1]`, `[OCCUPATION_1]`, whatever the language
  spoken), then a number: one counter per type, one number per value, in the order the values are first heard, as
  on the cloud API. "John Smith" is `[NAME_1]` every time; a later "John" alone is
  `[NAME_GIVEN_1]`, a later "Smith" `[NAME_FAMILY_1]`, another first name `[NAME_GIVEN_2]`. Each word of a value
  carries its marker, so the words keep their times. Your own code, or an LLM, can follow the values without
  seeing them.
- **`MASK`**: each character of the value replaced by `#`, the blanks included: "John Smith" is `##########`.
- **`entity_types`**: presets and types, as Gladia's cloud API names them, upper case. Only those are redacted;
  omitted or empty, the cloud API's own default set (names, contact details, identity, card and account numbers,
  dates, times, events, money: no health information). Each preset redacts what the cloud API redacts for it:
  `GDPR`, `GDPR_SENSITIVE`, `HIPAA_SAFE_HARBOR`, `HEALTH_INFORMATION`, `PCI`, `CPRA`, `APPI`, `APPI_SENSITIVE`,
  `QUEBEC_PRIVACY_ACT`, `CCI`, `CORE_ENTITIES`, `NUMERICAL_EXCL_PCI`, `LIDI`. `HIPAA_SAFE_HARBOR` leaves clinical
  content in clear: add `HEALTH_INFORMATION` for it. Every preset and its entity types:
  [From Gladia's cloud API](/migrations/from-gladia-cloud/#pii-redaction-and-named-entities).
- **Refused with a `400` naming it**, before the job exists: a name that is neither a preset nor a type of the
  cloud API (`unknown entity types: PERSON`), in lower case as the cloud API takes them upper case.
- **If the redaction fails**, the job is still `done`, as on the cloud API: the transcript is returned as
  transcribed, **not redacted**, and the result has a `pii_redaction` entry with `"success": false` and its
  `error` (the cloud API says nothing). Check for it before you store or show the transcript: a redaction that
  succeeded adds no `pii_redaction` entry. `named_entity_recognition` and `name_consistency`, read on the same
  pass, fail with it; the translations are still redacted on their own, or withheld, never in clear;
  `summarization` and `audio_to_llm` are not run (their entries say why), so no LLM reads the text in clear.
  The sentences, subtitles and sentiment read the transcript as it is returned, in clear.

## Name consistency

A name heard several times is not always transcribed the same way: "Katherine" in one sentence, "Catherine"
two minutes later. A search, a CRM or a summary then sees two people. `name_consistency` writes each name one
way across the whole transcript: the spelling heard most often wins.

```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", "name_consistency": true}'
```

The transcript, its words, the sentences and the subtitles come back with the names rewritten, and the
`name_consistency` entry lists what changed:

```json
{
  "id": "0199d7a2-6a10-7c22-8d4e-5f6a7b8c9d0f",
  "request_id": "G-0199d7a2",
  "version": 2,
  "status": "done",
  "created_at": "2026-11-09T09:12:03.000Z",
  "completed_at": "2026-11-09T09:12:07.000Z",
  "custom_metadata": null,
  "error_code": null,
  "kind": "pre-recorded",
  "post_session_metadata": {},
  "file": {
    "id": "0199d7a2-0000-7000-8000-00000000f11e",
    "filename": "call.wav",
    "source": null,
    "audio_duration": 6.0,
    "number_of_channels": 1
  },
  "request_params": {"name_consistency": true},
  "result": {
    "metadata": {
      "audio_duration": 6.0,
      "number_of_distinct_channels": 1,
      "billing_time": 6.0,
      "transcription_time": 1.2
    },
    "transcription": {
      "full_transcript": "Katherine called. Thanks, Katherine. Katherine, see you Monday.",
      "languages": ["en"],
      "utterances": [
        {
          "start": 0.0, "end": 6.0, "confidence": 0.95, "channel": 0,
          "language": "en", "text": "Katherine called. Thanks, Katherine. Katherine, see you Monday.",
          "words": [
            {"word": "Katherine", "start": 0.0, "end": 0.6, "confidence": 0.97},
            {"word": " called.", "start": 0.6, "end": 1.1, "confidence": 0.96},
            {"word": " Thanks,", "start": 1.6, "end": 2.0, "confidence": 0.97},
            {"word": " Katherine.", "start": 2.0, "end": 2.7, "confidence": 0.95},
            {"word": " Katherine,", "start": 3.4, "end": 4.0, "confidence": 0.71},
            {"word": " see", "start": 4.1, "end": 4.4, "confidence": 0.96},
            {"word": " you", "start": 4.4, "end": 4.6, "confidence": 0.96},
            {"word": " Monday.", "start": 4.6, "end": 6.0, "confidence": 0.94}
          ]
        }
      ]
    },
    "name_consistency": {
      "success": true, "is_empty": false, "exec_time": 0.004, "error": null,
      "results": {"Catherine": "Katherine"}
    }
  }
}
```

Good to know:

- **The names are those the named entity recognition finds** (people and organizations), on the same pass:
  asking for `named_entity_recognition` or `pii_redaction` as well costs nothing more. The named entities
  are reported with the consistent spelling.
- **Two spellings merge when they sound alike and share most of their letters** ("Katherine" and
  "Catherine", "Mohammed" and "Muhammad", "Mathieu" and "Matthieu"). Two people with close names can merge
  too ("Martin" and "Marvin"): when you know the names, `custom_spelling` or `custom_vocabulary` spells them
  exactly, and a spelling you set there is never rewritten by `name_consistency`.
- **Names of three letters or fewer are left as heard** ("Jon", "Tom"), and so are hyphenated ones.
- **A name the PII redaction masks** is no longer in the transcript: it is not counted.
- **A language without a phonetic reading** leaves the transcript as it is: the entry says `"is_empty": true`.
- **If the add-on fails**, its entry says `"success": false` and the transcript is returned as transcribed.
- **On Gladia's standard API** (see the note at the top of this page), `name_consistency` is accepted and has no
  effect: the result has no `name_consistency` entry.

## Translation with PII redaction

`translation` and `pii_redaction` work together. The translation is made from the speech, so the personal data the
transcript masks would come back in it: each translated utterance is redacted too, the same way as the
transcript, with the same numbers (`[NAME_GIVEN_1]` with `MARKER`, a mask with `MASK`). A value is masked in the
translation even when it is translated or written in another script ("Jean Dupont" as ジャン・デュポン in Japanese). A translated
utterance that cannot be fully redacted is left out of its target's `utterances`: personal data never appears in
clear.

## Translation register and context

`translation_config.informal: true` translates in the informal register where the target language has one
(French *tu*, German *du*, Spanish *tú*); `context` is a free-text hint on the recording (its domain, who
speaks, the terms it uses, up to 4096 characters) that helps choose the terms ("the failure" in a cardiology
consultation is *l'insuffisance*, not *l'échec*); `context_adaptation: false` translates each utterance alone,
without the `context` nor the previous utterances.

```json
{
  "audio_url": "https://files.example.com/call.wav",
  "model": "solaria-3",
  "translation": true,
  "translation_config": {
    "target_languages": ["fr", "de"],
    "informal": true,
    "context": "A support call between a games company and one of its young players."
  }
}
```

They are applied by the **translation LLM**, from each utterance's text: the workspace's own LLM (set in its
console), else the deployment's translation LLM. Every target of the job is then written by the LLM, one call per
utterance; an utterance the LLM cannot translate comes from the speech translation instead. Gotchas:

- **No LLM, no job.** These options need a translation LLM on the gateway: the workspace's own, else the one
  your operator connected and routed to `translation` in the gateway's LLM providers, else the cluster's.
  Without one the job is refused at creation with a `400`,
  `translation_config.informal: not supported: no LLM is configured on this gateway` (same for `context`): never
  translated without the option.
- **Not with `pii_redaction` yet**: `400`, drop one of them.
- **Its own language is copied.** An utterance already in a target language is its transcript.

## Sentiment per sentence

`sentiment_analysis` gives one result per sentence, as Gladia's pre-recorded API does: a caller who starts upset
and ends satisfied shows both moods, not one average over the whole turn. Each result has the sentence's `text`,
`start` and `end` (from its words), `channel`, and `speaker` when `diarization` is on. `sentiment` is `positive`,
`neutral` or `negative` (Gladia's API also lists `mixed` and `unknown`: a client that handles them works
unchanged). By default each sentence is judged from its words only, not from the voice (`use_audio` and
`emotion_use_audio` are `false`, below): emotion recognition from audio is another category under the GDPR and
the EU AI Act.

`sentiment_analysis_config.unit` picks the unit: `sentence` (the default) or `utterance`, one result per
utterance, the unit of the live API's `sentiment_analysis` messages, to compare a call's live and pre-recorded
results. `utterance` is refused with a `400` while jobs run on Gladia's standard API, which has sentences only.

`sentiment_analysis_config.use_audio` / `emotion_use_audio` (default `false`) fuse the speech
profiler's heads when the host loaded them. Leave them false for the EU AI Act (text only).

```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", "diarization": true, "sentiment_analysis": true, "sentiment_analysis_config": {"unit": "sentence", "use_audio": false, "emotion_use_audio": false}}'
```

## Display mode

Some transcripts are read, not searched: a call's two sides, an interview, a crosstalk where the speakers talk
over each other. `display_mode` regroups the transcript into display lines: every word, in time order, cut into
runs of consecutive words of the same utterance. A line never mixes two speakers, and the words keep the order
they were heard, so an utterance another speaker talks through gives several lines, one per uninterrupted run.

It is Gladia's cloud API's hidden `display_mode` add-on, with the same result: an integration that sends it keeps
working, and gets `display_mode.results` back.

```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", "diarization": true, "display_mode": true}'
```

Here a second speaker says "Hey," in the middle of the first one's "how are you?": the transcript's utterance
stays whole, and the display lines cut it in two.

```json
{
  "id": "0199d7a2-6a10-7c22-8d4e-5f6a7b8c9d0e",
  "request_id": "G-0199d7a2",
  "version": 2,
  "status": "done",
  "created_at": "2026-10-20T09:12:03.000Z",
  "completed_at": "2026-10-20T09:12:09.000Z",
  "custom_metadata": null,
  "error_code": null,
  "kind": "pre-recorded",
  "post_session_metadata": {},
  "file": {
    "id": "0199d7a2-0000-7000-8000-00000000f11e",
    "filename": "call.wav",
    "source": null,
    "audio_duration": 6.0,
    "number_of_channels": 1
  },
  "request_params": {"diarization": true, "display_mode": true},
  "result": {
    "metadata": {
      "audio_duration": 6.0,
      "number_of_distinct_channels": 1,
      "billing_time": 6.0,
      "transcription_time": 1.4
    },
    "transcription": {
      "full_transcript": "Hey, how are you? Hey, this is Lewis.",
      "languages": ["en"],
      "utterances": [
        {
          "start": 2.87, "end": 5.01, "confidence": 0.105, "channel": 0, "speaker": 1,
          "language": "en", "text": "Hey, how are you?",
          "words": [
            {"word": "Hey,", "start": 2.87, "end": 3.05, "confidence": 0.15},
            {"word": " how", "start": 3.38, "end": 3.58, "confidence": 0.07},
            {"word": " are", "start": 3.6, "end": 3.72, "confidence": 0.13},
            {"word": " you?", "start": 4.86, "end": 5.01, "confidence": 0.07}
          ]
        },
        {
          "start": 4.85, "end": 5.04, "confidence": 0.37, "channel": 0, "speaker": 2,
          "language": "en", "text": "Hey,",
          "words": [{"word": "Hey,", "start": 4.85, "end": 5.04, "confidence": 0.37}]
        }
      ]
    },
    "display_mode": {
      "success": true, "is_empty": false, "exec_time": 0.01, "error": null,
      "results": [
        {"text": "Hey, how are", "start": 2.87, "end": 3.72, "confidence": 0.12,
         "channel": 0, "speaker": 1, "language": "en",
         "words": [
           {"word": "Hey,", "start": 2.87, "end": 3.05, "confidence": 0.15},
           {"word": " how", "start": 3.38, "end": 3.58, "confidence": 0.07},
           {"word": " are", "start": 3.6, "end": 3.72, "confidence": 0.13}
         ]},
        {"text": "Hey,", "start": 4.85, "end": 5.04, "confidence": 0.37,
         "channel": 0, "speaker": 2, "language": "en",
         "words": [{"word": "Hey,", "start": 4.85, "end": 5.04, "confidence": 0.37}]},
        {"text": "you?", "start": 4.86, "end": 5.01, "confidence": 0.07,
         "channel": 0, "speaker": 1, "language": "en",
         "words": [{"word": "you?", "start": 4.86, "end": 5.01, "confidence": 0.07}]}
      ]
    }
  }
}
```

Each line carries its `words`, its `text`, its `language` and `channel`, its own `start` and `end`, its `speaker`
with `diarization`, and its `confidence`: the mean of the line's words, rounded to two decimals as the cloud API
rounds it (the transcript's utterances keep three). The add-on is included in the price.

## Summarization

A one-hour call is a lot to read. `summarization` adds a summary of the transcript to the job's result, written by
a large language model (LLM). Gladia Enterprise does not host that LLM itself: your cluster's operator connects
one (OpenRouter, OpenAI, Anthropic, Blade, OVHcloud AI Endpoints, or any OpenAI-compatible server), or your
workspace brings its own. Summarization is available on your cluster once one of them is set; until then it is
refused (see [What is refused](#what-is-refused)).

```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", "summarization": true, "summarization_config": {"type": "bullet_points"}}'
```

`summarization_config.type` picks the summary's shape: `general` (the default, a few paragraphs), `bullet_points`
(the key points, one per line) or `concise` (a few sentences). The summary is written in the language most of the
call is in. It is the last step of the job: it reads the transcript after the PII redaction, so the personal data
you asked to hide never reaches the LLM.

The summary is the `summarization` entry of the job's `result`, next to the transcript:

```json
{
  "id": "0199d7a2-6a10-7c22-8d4e-5f6a7b8c9d0f",
  "request_id": "G-0199d7a2",
  "version": 2,
  "status": "done",
  "created_at": "2026-11-09T09:12:03.000Z",
  "completed_at": "2026-11-09T09:12:11.000Z",
  "custom_metadata": null,
  "error_code": null,
  "kind": "pre-recorded",
  "post_session_metadata": {},
  "file": {
    "id": "0199d7a2-0000-7000-8000-00000000f11e",
    "filename": "call.wav",
    "source": null,
    "audio_duration": 6.0,
    "number_of_channels": 1
  },
  "request_params": {"summarization": true, "summarization_config": {"type": "bullet_points"}},
  "result": {
    "metadata": {
      "audio_duration": 6.0,
      "number_of_distinct_channels": 1,
      "billing_time": 6.0,
      "transcription_time": 1.4
    },
    "transcription": {
      "full_transcript": "Can you deliver on Friday instead? Sure, I am sending you a new tracking link.",
      "languages": ["en"],
      "utterances": []
    },
    "summarization": {
      "success": true,
      "is_empty": false,
      "exec_time": 2.4,
      "error": null,
      "results": "- The caller asks to move the delivery to Friday.\n- The agent confirms and sends a new tracking link."
    }
  }
}
```

- **A silent file** gives `"is_empty": true` and `"results": null`: no LLM is called.
- **The LLM failing** (down, slow, its answer not a summary) fails the summary only: `"success": false` with an
  `error`, the transcript and the other add-ons are there.
- **Which LLM writes it**: your workspace's own LLM when it has one, else the one your cluster's operator routed
  summarization to, else the cluster's default. Your transcript is sent to that LLM only for this job.
- **Billing**: summarization is billed per audio minute, like the other add-ons, once the job is `done`; a job
  refused or failed is not billed.

## Audio to LLM

A summary answers one question. Your team usually has others: what did the customer complain about, which
action items were agreed and by whom, did the agent read the legal notice. `audio_to_llm` asks your own prompts
about the transcript, each one answered by a large language model (LLM), in the same job. As for summarization,
your cluster's operator connects that LLM, or your workspace brings its own; until one is connected for audio to
LLM, it is refused (see [What is refused](#what-is-refused)). [Audio to LLM](/features/audio-to-llm/) has the
step-by-step guide and prompt examples.

```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", "audio_to_llm": true, "audio_to_llm_config": {"prompts": ["Extract the key points", "List the action items, with their owner"]}}'
```

Each prompt is sent with the transcript (after the PII redaction and your custom spelling, up to its first 200,000
characters), and the answer is written in the language most of the call is in. The answers are the `audio_to_llm` entry of the job's
`result`, one per prompt, in the order of your prompts:

```json
{
  "id": "0199d7a2-6a10-7c22-8d4e-5f6a7b8c9d1a",
  "request_id": "G-0199d7a3",
  "version": 2,
  "status": "done",
  "created_at": "2026-11-09T09:14:03.000Z",
  "completed_at": "2026-11-09T09:14:12.000Z",
  "custom_metadata": null,
  "error_code": null,
  "kind": "pre-recorded",
  "post_session_metadata": {},
  "file": {
    "id": "0199d7a2-0000-7000-8000-00000000f11e",
    "filename": "call.wav",
    "source": null,
    "audio_duration": 6.0,
    "number_of_channels": 1
  },
  "request_params": {
    "audio_to_llm": true,
    "audio_to_llm_config": {
      "prompts": ["Extract the key points", "List the action items, with their owner"]
    }
  },
  "result": {
    "metadata": {
      "audio_duration": 6.0,
      "number_of_distinct_channels": 1,
      "billing_time": 6.0,
      "transcription_time": 1.4
    },
    "transcription": {
      "full_transcript": "Can you deliver on Friday instead? Sure, I am sending you a new tracking link.",
      "languages": ["en"],
      "utterances": []
    },
    "audio_to_llm": {
      "success": true,
      "is_empty": false,
      "exec_time": 3.1,
      "error": null,
      "results": [
        {
          "success": true,
          "is_empty": false,
          "exec_time": 2.2,
          "error": null,
          "results": {
            "prompt": "Extract the key points",
            "response": "- The delivery moves to Friday.\n- A new tracking link is sent."
          }
        },
        {
          "success": true,
          "is_empty": false,
          "exec_time": 3.0,
          "error": null,
          "results": {
            "prompt": "List the action items, with their owner",
            "response": "- Agent: send the new tracking link."
          }
        }
      ]
    }
  }
}
```

- **`prompts` is required** when `audio_to_llm` is `true`: there are no default prompts (`400`,
  `audio_to_llm_config.prompts must be provided when audio_to_llm is true`). Up to 10 prompts, each up to 4,000
  characters. `audio_to_llm_config` alone (without `audio_to_llm`) asks for it too; `"audio_to_llm": false`
  turns it off whatever the config says.
- **Pick a model of your cluster's provider**: `audio_to_llm_config.model` names any model your cluster's LLM
  provider serves (`GET /v2/audio-to-llm/models` lists them, with their prices); omitted, the cluster's default
  answers. A model the provider does not serve is a `400` (no job is created).
- **One prompt failing does not fail the others**: its entry says `"success": false` with an `error` and
  `"results": null`, the other prompts, the transcript and the other add-ons are there. Match the answers to your
  prompts by their position, or by `results.prompt`.
- **A silent file** gives `"is_empty": true` and `"results": null`: no LLM is called.
- **Ask one question per prompt**: each prompt is its own call to the LLM, with no memory of the others; they
  run in parallel, a few at a time, so ten prompts take a few times as long as one, not ten times.
- **Billing**: audio to LLM is billed what its LLM provider charged for the job's calls (your prompts and the
  transcript sent with them, and the answers, counted in tokens: the pieces of words an LLM reads and writes),
  plus your cluster's markup. Each model's price is listed on [Audio to LLM](/features/audio-to-llm/#pick-a-model).
  Only a job that ends `done` is billed; a job refused or failed is not.

## What is refused

An option the host cannot run is refused with a `400` before the file is fetched, and `validation_errors` names
each option and why. Nothing is ever dropped silently. The options below are refused as soon as you create the
job, on a cluster whose jobs run on Gladia Enterprise's own hosts: no job is created and nothing is billed. Do not
retry such a job as is: drop the option, or wait until your cluster serves it.

- **`summarization` when no LLM is connected** (`validation_errors`: `summarization: not supported: no LLM is
  configured on this gateway`): neither your workspace nor your cluster's operator set an LLM for it. Ask your Gladia contact; the documentation site's `GET /v2/features`
  says `"addons": {"summarization": true}` once your cluster serves it. A job accepted with summarization whose
  LLM is removed before it starts fails with a `400` and is not billed.
- **`audio_to_llm` when no LLM is connected** (`audio_to_llm: not supported: no LLM is configured on this
  gateway`), the same way as summarization:
  `GET /v2/features` says `"addons": {"audio_to_llm": true}` once your cluster serves it. Where your cluster sends
  its jobs to Gladia's cloud instead of its own servers, it is refused there too.
- **An `audio_to_llm_config.model` your cluster's LLM provider does not serve**, and `audio_to_llm` without
  `audio_to_llm_config.prompts`.
- **`translation` on another model than `solaria-3`.**
- **A `target_languages` code the translation does not serve**, or an add-on the host was not set up with: the
  error says which. A target is one of the codes the hosts translate into, listed on
  [Translation](/features/translation/#target-languages): another one (`pl` on a cluster whose hosts serve
  `de, en, fr, …`) is refused here, before the job exists, with
  `translation_config.target_languages: pl is not translated into by this cluster's pre-recorded hosts
  (they translate into …)`.
- **`translation_config.match_original_utterances: false`** (coming soon on Gladia Enterprise's own hosts): the
  translation is made per utterance. `lipsync` is accepted and has no effect.
- **`informal: true` or a `context` that nothing on the gateway applies**: `not supported: no LLM is configured
  on this gateway` without a translation LLM, its own reason with `pii_redaction`; see
  [Translation register and context](#translation-register-and-context).
- **An unknown key in a `*_config`**, or a value of the wrong type.
- **An unknown `pii_redaction_config.entity_types` name, or a lower-case one** ([PII redaction](#pii-redaction)).
- **`pre_processing`** (`pre_processing property should not exist`): the audio enhancer and the speech threshold
  are live options ([Audio enhancer](/features/audio-enhancer/)); Gladia's pre-recorded API has none either.

## Good to know

- **A failed add-on does not fail the job.** Its entry says `"success": false` with an `error`, the transcript
  and the other add-ons are there. One exception: if the redaction fails, the job fails (`500`): a transcript is
  never returned with personal data you asked to hide.
- **Identical channels** (a stereo file with the same audio on both) are processed once: their add-ons' results
  are the same on both channels.

## Related pages

- [Pre-recorded (batch) transcription of an audio file](/pre-recorded/transcribe-a-file/)
- [Audio to LLM](/features/audio-to-llm/)
- [Recommended parameters for pre-recorded (batch) transcription](/pre-recorded/recommended-parameters/)
- [Where pre-recorded jobs run](/pre-recorded/where-jobs-run/)
