Skip to Content
Vatis TechAPI docs
Batch transcription

Batch transcription

Send a recording, or its address, and collect its text with words, times and speakers when it is done.

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.

Transcribe a file

POST/v1/speech-to-text

Starts the transcription of an audio or video file and answers at once with its transcript, queued. The body is multipart/form-data.

Send the file as file, and the options as form fields next to it. metadata is any JSON object of your own, returned unchanged with the transcript. The request is answered at once, and the file is transcribed in the background: ask for the transcript by its id until it is done, as here, or have it posted to your server (Webhooks).

# 1. Send the file: the answer comes at once, with the transcript queued
curl -sS -H "Authorization: Bearer $VATIS_KEY" https://api.eu.vatis.tech/v1/speech-to-text \
  -F model_id=vatis_ro_v9 -F diarize=true -F metadata='{"case": "2026-118"}' -F file=@speech.wav

# 2. Ask every 2 seconds while it is queued or processing (-o keeps the last answer in a file)
ID=tr_3b41a7db9aba52c0   # the "id" of the first answer
while sleep 2; do
  curl -sS -H "Authorization: Bearer $VATIS_KEY" -o transcript.json https://api.eu.vatis.tech/v1/transcripts/$ID
  grep -qE '"status": ?"(queued|processing)"' transcript.json || break
done
cat transcript.json

Expected result: 202 at once, with the transcript queued (The first answer):

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

Then, a few seconds later for a few minutes of audio, the transcript, completed (trimmed here: a real one has every word). Every field: The transcript object.

{
  "id": "tr_3b41a7db9aba52c0",
  "status": "completed",
  "model_id": "vatis_ro_v9",
  "language_code": "ro",
  "created_at": "2026-11-12T09:14:03Z",
  "completed_at": "2026-11-12T09:14:05Z",
  "duration_s": 5.62,
  "processing_s": 1.41,
  "metadata": {"case": "2026-118"},
  "text": "Bună ziua, luați loc. Am venit pentru contractul din 12 martie.",
  "words": [
    {"text": "Bună", "start": 0.12, "end": 0.4, "confidence": 0.98, "speaker": "speaker_0"},
    ...
  ],
  "segments": [
    {"speaker": "speaker_0", "start": 0.12, "end": 1.7, "text": "Bună ziua, luați loc."},
    {"speaker": "speaker_1", "start": 2.48, "end": 5.1, "text": "Am venit pentru contractul din 12 martie."}
  ],
  "speakers": ["speaker_0", "speaker_1"]
}
  • Keep the id: the transcript is kept for 7 days after its job ends, to read, export or delete (Manage transcripts). The uploaded audio is deleted 1 day after.
  • A request the API refuses answers at once with the error, for example 400 invalid_parameter, and param names the field.
  • A transcription that fails ends failed, with its error, for example invalid_audio. The failed transcript stays readable by its id.

In this guide

Next steps

On this page