Skip to Content
Vatis TechAPI docs
Transcripts

Create a transcript

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

Serverhttps://api.eu.vatis.tech

POST/v1/speech-to-text

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.

Headers

Authorization (required)
Your API key (Authentication and API keys). A web page sends token instead.
ValuesBearer <api key>
Idempotency-Key
Lets you repeat a request safely: the same key within 24 hours gets the first request's answer, and no second job starts (Idempotency). Another value: 400 invalid_parameter.
Values1 to 255 printable characters

Query parameters

token
Instead of the Authorization header, for a web page that uploads a file (Create a token). The only query parameter this endpoint takes.
Valuesa single-use batch token

Form fields

multipart/form-data
model_id (required)
A model whose mode is batch (List models).
Valuesvatis_ro_v9, vatis_multi_v1
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.
Valuesa file
url
The address of a file: the API downloads it (Files at an address).
Valuesan http:// or https:// address, up to 8192 characters
language_code
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.
Valuesro (also ron, in any case); with vatis_multi_v1, one of its languages or several, separated by commasDefaultthe model's
diarize
Tells the speakers apart (Speakers).
Valuestrue, falseDefaultfalse
num_speakers
How many people speak, when you know. Above 8, a slower speaker model with no limit runs. Without diarize it has no effect.
Values1 to 32
multichannel
At most 2 channels, each transcribed alone: the channel is the speaker (Two channels). Not with diarize.
Valuestrue, falseDefaultfalse
remove_fillers
Removes filler words and hesitations from the text.
Valuestrue, falseDefaultfalse
punctuation
Punctuation and capitals, the capitals of names too. false: lowercase words without punctuation, and segments cut on pauses alone.
Valuestrue, falseDefaulttrue
numbers
digits: numbers as digits, times and units in short form (30, 3:30, 70km/h). words: in words (treizeci, trei și treizeci de minute).
Valuesdigits, wordsDefaultdigits
timestamps
none: words keep their text, confidence and speaker; start and end (of words and segments) are null.
Valuesword, noneDefaultword
vocabulary_id
A saved list of names and terms to get right (Vocabularies), read when the job is accepted. Romanian models only. An id that names no vocabulary of your workspace: 400 invalid_parameter.
Valuesa vocabulary id, voc_...
vocabulary
The file's own entries, added to the saved vocabulary's, each written as it should appear (Writing entries). Romanian models only. A bad entry: 400 invalid_parameter, param vocabulary[3].
Valuesa JSON list of up to 250 entries, as a string
vocabulary_strength
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).
Values0 to 2, a decimal numberDefault1
async
Taken, and changes nothing: every request is answered 202 at once, and transcribed in the background (Send now, collect later).
Valuestrue, falseDefaultalways on
webhook
Also post the result to every enabled webhook when the job ends (Webhooks).
Valuestrue, falseDefaultfalse
webhook_id
Post the result to this webhook only.
Valuesa webhook's id
metadata
Your own data, returned unchanged in the transcript and the webhook delivery.
Valuesa JSON object, as a string, up to 16 KB
store
false: keep nothing after the webhook delivery (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.
Valuestrue, falseDefaulttrue
exports
The finished transcript also carries these files, made with the default options of Export a transcript (Files with the transcript itself).
Valuesany of txt, srt, vtt, separated by commas

Responses

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

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.

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.

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

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

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). 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).
  • 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): 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).
  • 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, asked every few seconds until it is completed or failed. async is still taken and changes nothing (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).
  • 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).