# Create a transcript

Starts the transcription of an audio or video file and answers at once with its transcript, queued.

`POST /v1/speech-to-text` on `https://api.eu.vatis.tech`

> **When batch opens on your workspace.** Batch transcription is not open on every workspace yet. When `GET /v1/models` lists a model whose `mode` is `batch`, your workspace can use it. Until then, a request answers `400` `unsupported_model`. Live audio works already: [Real-time transcription](https://platform.vatis.tech/docs/realtime).

## Headers

| header | values | default | meaning |
|---|---|---|---|
| `Authorization` | `Bearer <api key>` | required | Your API key ([Authentication and API keys](https://platform.vatis.tech/docs/authentication)). A web page sends `token` instead. |
| `Idempotency-Key` | 1 to 255 printable characters |  | Lets you repeat a request safely: the same key within 24 hours gets the first request's answer, and no second job starts ([Idempotency](https://platform.vatis.tech/docs/batch/idempotency)). Another value: `400` `invalid_parameter`. |

## Query parameters

| parameter | values | default | meaning |
|---|---|---|---|
| `token` | a single-use `batch` token |  | Instead of the `Authorization` header, for a web page that uploads a file ([Create a token](https://platform.vatis.tech/docs/endpoints/create-a-token)). The only query parameter this endpoint takes. |

## Form fields (`multipart/form-data`)

| field | values | default | meaning |
|---|---|---|---|
| `model_id` | `vatis_ro_v9`, `vatis_multi_v1` | required | A model whose `mode` is `batch` ([List models](https://platform.vatis.tech/docs/endpoints/list-models)). |
| `file` | a file |  | An audio or video file in any common format (WAV, MP3, M4A, FLAC, OGG, Opus, MP4, ...), up to 2 GiB. Send this or `url`. |
| `url` | an `http://` or `https://` address, up to 8192 characters |  | The address of a file: the API downloads it ([Files at an address](https://platform.vatis.tech/docs/batch/parameters#files-at-an-address)). |
| `language_code` | `ro` (also `ron`, in any case); with `vatis_multi_v1`, one of its languages or several, separated by commas | the model's | With `vatis_ro_v9`, files are Romanian. With `vatis_multi_v1`, one code is the file's language; several, such as `ro,en`, have the language detected among them only, part by part, so a recording that mixes them is transcribed in each; none, detected among all its languages. A language the model does not offer: `400` `invalid_parameter`. |
| `diarize` | `true`, `false` | `false` | Tells the speakers apart ([Speakers](https://platform.vatis.tech/docs/transcript-object#speakers)). |
| `num_speakers` | 1 to 32 |  | How many people speak, when you know. Above 8, a slower speaker model with no limit runs. Without `diarize` it has no effect. |
| `multichannel` | `true`, `false` | `false` | At most 2 channels, each transcribed alone: the channel is the speaker ([Two channels](https://platform.vatis.tech/docs/transcript-object#two-channels)). Not with `diarize`. |
| `remove_fillers` | `true`, `false` | `false` | Removes filler words and hesitations from the text. |
| `punctuation` | `true`, `false` | `true` | Punctuation and capitals, the capitals of names too. `false`: lowercase words without punctuation, and segments cut on pauses alone. |
| `numbers` | `digits`, `words` | `digits` | `digits`: numbers as digits, times and units in short form (`30`, `3:30`, `70km/h`). `words`: in words (`treizeci`, `trei și treizeci de minute`). |
| `timestamps` | `word`, `none` | `word` | `none`: words keep their text, confidence and speaker; `start` and `end` (of words and segments) are `null`. |
| `vocabulary_id` | a vocabulary id, `voc_...` |  | A saved list of names and terms to get right ([Vocabularies](https://platform.vatis.tech/docs/realtime/vocabularies#files)), read when the job is accepted. Romanian models only. An id that names no vocabulary of your workspace: `400` `invalid_parameter`. |
| `vocabulary` | a JSON list of up to 250 entries, as a string |  | The file's own entries, added to the saved vocabulary's, each written as it should appear ([Writing entries](https://platform.vatis.tech/docs/realtime/vocabularies#writing-entries)). Romanian models only. A bad entry: `400` `invalid_parameter`, `param` `vocabulary[3]`. |
| `vocabulary_strength` | 0 to 2, a decimal number | `1` | How hard the service leans towards the entries of both lists. Higher finds more of them, and also writes more of them where they were not said ([Strength](https://platform.vatis.tech/docs/realtime/vocabularies#strength)). |
| `async` | `true`, `false` | always on | Taken, and changes nothing: every request is answered `202` at once, and transcribed in the background ([Send now, collect later](https://platform.vatis.tech/docs/batch/send-now-collect-later)). |
| `webhook` | `true`, `false` | `false` | Also post the result to every enabled webhook when the job ends ([Webhooks](https://platform.vatis.tech/docs/batch/webhooks)). |
| `webhook_id` | a webhook's id |  | Post the result to this webhook only. |
| `metadata` | a JSON object, as a string, up to 16 KB |  | Your own data, returned unchanged in the transcript and the webhook delivery. |
| `store` | `true`, `false` | `true` | `false`: keep nothing after the webhook delivery ([Keeping nothing](https://platform.vatis.tech/docs/batch/manage-transcripts#keeping-nothing)). Needs `webhook` or `webhook_id`: without one, `400` `invalid_parameter`. The answer still carries an `id`, to match a delivery to its request, which finds nothing afterwards. |
| `exports` | any of `txt`, `srt`, `vtt`, separated by commas |  | The finished transcript also carries these files, made with the default options of [Export a transcript](https://platform.vatis.tech/docs/endpoints/export-a-transcript) ([Files with the transcript itself](https://platform.vatis.tech/docs/batch/exports#files-with-the-transcript-itself)). |

## Responses

`202`: Every request, at once: the transcript, `queued`, and the header `Location: /v1/transcripts/{id}` says where to read it. Ask for it with [Get a transcript](https://platform.vatis.tech/docs/endpoints/get-a-transcript) until it is `completed` or `failed`, or have it posted with a webhook. With a vocabulary, the finished transcript's `vocabulary` says what was applied.

```json
{
  "id": "tr_ae35f8db719b4d9c",
  "status": "queued",
  "created_at": "2026-11-12T09:14:03Z"
}
```

`400` `invalid_parameter`: A field unknown, sent twice, out of range, or with one it does not go with; a bad `Idempotency-Key`; a `url` refused or that failed to download; no enabled webhook, or a bad `webhook_id`; a vocabulary entry that breaks the rules (`vocabulary[3]`), an unknown `vocabulary_id`, or a vocabulary on a model or a server that takes none. The `param` names the field.

```json
{
  "error": {
    "code": "invalid_parameter",
    "message": "Unknown parameter 'diarise'.",
    "param": "diarise",
    "request_id": "req_bf2fed760ba5437ba0933a57"
  }
}
```

`400` `missing_parameter`: No `model_id`, or neither `file` nor `url`.

`400` `invalid_request`: A body that is not a valid form: not multipart or urlencoded, malformed, or more than 200 parts.

`400` `unsupported_model`: An unknown `model_id`, a real-time one, or no batch model on your workspace yet.

`400` `invalid_audio`: An empty file, no audio that can be decoded, or more than 2 channels with `multichannel`.

`400` `audio_too_long`: The audio is longer than the API takes in one file (10 hours). Split it.

`401` `unauthorized`: No key, or a wrong, revoked or expired one. A used, expired or wrong-type token too.

```json
{
  "error": {
    "code": "unauthorized",
    "message": "Invalid, revoked or expired key.",
    "param": null,
    "request_id": "req_bf2fed760ba5437ba0933a57"
  }
}
```

`403` `account_paused`: The workspace is paused: its credit is used up, or it is over its hourly spend limit. The message says which ([While a workspace is paused](https://platform.vatis.tech/docs/limits#while-a-workspace-is-paused)).

`409` `idempotency_conflict`: An `Idempotency-Key` used before with other fields or another file (`param` `Idempotency-Key`).

`413` `request_too_large`: A file or a download over 2 GiB, or a request body over 2 GiB and 2 MB.

`429` `busy`: Your workspace runs as many jobs as it may at once, or too many wait ([Work at once](https://platform.vatis.tech/docs/limits#work-at-once)). Send again after the seconds of the `Retry-After` header.

`500` `internal_error`: Something failed on our side. Try again, and quote the `request_id` if it stays.

`503` `unavailable`: Not ready. Wait the seconds of the `Retry-After` header.

## Notes

- **The body** is `multipart/form-data`. A request with a `url` and no file may also be `application/x-www-form-urlencoded`. Anything else: `400` `invalid_request`.
- **Booleans** are `true` or `false` (also `1` or `0`, in any case). An empty value counts as not sent.
- **Strict fields:** an unknown field, a field sent twice, or a second file is `400` `invalid_parameter`, with `param` naming it ([Strict parameters](https://platform.vatis.tech/docs/errors#strict-parameters)).
- **`file` and `url`:** both is `400` `invalid_parameter` (`param` `url`), neither is `400` `missing_parameter` (`param` `file`).
- **Fields that do not go together**, `400` `invalid_parameter`: `multichannel` with `diarize` (`param` `diarize`); `store=false` without a webhook (`param` `store`); `srt` or `vtt` in `exports` with `timestamps=none` (`param` `exports`).
- **Webhooks:** `webhook=true` with no enabled webhook (`param` `webhook`), or an unknown or turned-off `webhook_id` (`param` `webhook_id`): `400` `invalid_parameter`.
- **Vocabularies** ([Vocabularies](https://platform.vatis.tech/docs/realtime/vocabularies#files)): Romanian models only. The transcript has `vocabulary` only when the request had one: `{"id": "voc_...", "strength": 1, "entries": 427}`, the saved vocabulary's `id` (or `null`), the strength, and the entries in effect, never the entries themselves. A saved vocabulary is read when the job is accepted; the entries are not kept after the job ends. No extra price.
- **Vocabulary refusals**, `400` `invalid_parameter`: a bad entry (`param` `vocabulary[3]`, its place in the list), a list that is not JSON or holds more than 250 (`param` `vocabulary`), an unknown or deleted `vocabulary_id`, a strength outside 0 to 2 (`param` `vocabulary_strength`). Another model, or a server whose speech service does not take vocabularies yet, names the field: "vocabularies are not available on this server yet: its speech service is an older release". A file is never transcribed without the vocabulary it asked for.
- **Size:** the form fields together (all but the file) hold at most 1 MB, in at most 200 parts ([Limits for files](https://platform.vatis.tech/docs/limits#limits-for-files)).
- **Every request is answered at once**, however long the file: `202` and the transcript, queued. The result comes by webhook, or from [Get a transcript](https://platform.vatis.tech/docs/endpoints/get-a-transcript), asked every few seconds until it is `completed` or `failed`. `async` is still taken and changes nothing ([Send now, collect later](https://platform.vatis.tech/docs/batch/send-now-collect-later)).
- **A file at an address** is downloaded in the job, after the answer: a download that fails ends the job `failed` with its errors. The address must be reachable from the internet ([Files at an address](https://platform.vatis.tech/docs/batch/parameters#files-at-an-address)).
- **A transcription that fails** ends `failed`, with its `error`, for example `invalid_audio`. The failed transcript stays readable by its id.
- **A refused key on a large file** is answered while your client still sends, and nothing of the file is kept ([Refused before the upload ends](https://platform.vatis.tech/docs/errors#refused-before-the-upload-ends)).
