# Limits and free credit

What a new workspace can do on its free credit, and every limit of the API.

## The free credit

A new workspace starts with free credit, so you can try the API before you pay:

- **EUR 10 of free credit**, with no card. It is valid for 90 days: what is not used by then expires.
- One free credit per email address.
- **A verified email before the first API key:** open the link in the email we send at sign-up, then create a key on the [API keys](https://platform.vatis.tech/keys) page.

From the start, a new workspace has every model, option and endpoint, and the same limits as every other workspace (below). Adding credit on platform.vatis.tech adds to the balance; nothing else changes.

## Work at once

How much work a workspace can have going at the same time, counted across all its API keys:

| At once | Every workspace | Over it |
|---|---|---|
| Live sessions open | 10 | `capacity`, close code 1013, before `session.started`: "This account can run 10 real-time sessions at a time: try again when one ends." |
| Batch jobs waiting or running | 10 | Refused, and the message says the limit. Send the next when one ends. |

- A two-channel session (`multichannel=true`) counts as 2 live sessions, all or none: with fewer than 2 free it is refused.
- `peak_realtime_sessions` of [Usage](https://platform.vatis.tech/docs/usage) shows the most your workspace had open at once, each day.
- Need more at once? Contact Vatis Tech support.

## Credit and the spend limit

A workspace pays for the audio it transcribes, by the second, from its credit ([Usage](https://platform.vatis.tech/docs/usage)). Two things pause it.

### When the credit runs out

A live session is charged as it runs, every 5 minutes, and at its end. At zero credit the workspace is paused: new work is refused, and open live sessions end about a minute later. Adding credit on platform.vatis.tech resumes it.

### The spend limit

A workspace may spend at most **EUR 25 per hour** by default, measured over the last 60 minutes, so a program stuck in a loop cannot use up your credit. Above it, the workspace is paused in the same way until its spend rate falls back under the limit. Owners and admins change it in the console, under Settings, Limits: from EUR 1 to EUR 1,000 per hour.

### While a workspace is paused

- An open live session ends about a minute after the pause, if the pause still holds: its last `final` messages, then the `error` `account_paused` and close code 1013. Its audio up to there counts as usage. An accepted batch job completes.
- A new live session is refused with the `error` `account_paused` before `session.started`, close code 1013, and a new batch job with `403 account_paused`.
- Everything else works: API keys, tokens, transcripts and their exports, usage, activity and `GET /v1/me`.

The refusal's message says why the workspace is paused, and what to do:

| Why | The message |
|---|---|
| The credit is used up | The account's credit is used up: add credit on platform.vatis.tech to continue. |
| Over the spend limit | The account reached its hourly spend limit: try again in a few minutes, or raise the limit on platform.vatis.tech. |
| Paused by Vatis Tech | The account is paused: contact Vatis Tech support. |

> **Do not retry a paused workspace in a loop.** The same request gets the same answer until the cause is gone. Show the message to a person, or wait a few minutes after the spend limit.

## Limits for files

| Limit | Value | Over it |
|---|---|---|
| File size | 2 GiB | `413` `request_too_large` |
| The whole request body | the file size limit and 2 MB | `413` `request_too_large` |
| Form fields together (all but the file) | 1 MB | `400` `invalid_parameter` (urlencoded: `400` `invalid_request`) |
| Form parts | 200 | `400` `invalid_request` |
| A file's `url` | 8192 characters; 60 s without data and 30 minutes for the whole download; 5 redirects | `400` `invalid_parameter` |
| Longest recording | 10 hours | `400` `audio_too_long` |
| `metadata` | a JSON object of at most 16 KB | `400` `invalid_parameter` |
| `num_speakers` | 1 to 32 | `400` `invalid_parameter` |
| A file's own vocabulary, `vocabulary` ([Vocabularies](https://platform.vatis.tech/docs/realtime/vocabularies#files)) | 250 entries, 100 characters an entry; Romanian models only | `400` `invalid_parameter` |
| `vocabulary_strength` | 0 to 2 | `400` `invalid_parameter` |
| Channels with `multichannel` | 2 | `400` `invalid_audio` |
| `Idempotency-Key` | 1 to 255 printable characters, remembered for 24 hours | `400` `invalid_parameter` |
| Transcript retention | 7 days after the job ends, then the transcript is deleted | `404` `not_found` |
| Uploaded audio | deleted 1 day after the job ends: nothing reads it after the job |  |
| A page of transcripts | 1 to 100, 50 by default | `400` `invalid_parameter` |
| Export `lines`, `words_per_line` | 1 to 3, 3 to 12 | `400` `invalid_parameter` |

## Limits for live sessions

| Limit | Value | Over it |
|---|---|---|
| A frame | at most 1 s of audio (of both channels with `multichannel`), no minimum | `audio_chunk_too_large`, close code 1009 |
| A WebSocket message | 1 MiB | close code 1009 |
| Reading | 1000 frames and 20 text messages a second; 20 s of audio ahead of the transcription | read later: the server stops reading until it catches up |
| `num_speakers` | 1 to 8, with `diarize` | `invalid_parameter` |
| A session's own vocabulary ([Vocabularies](https://platform.vatis.tech/docs/realtime/vocabularies)) | 250 entries a message, 100 characters an entry | `invalid_parameter`, close code 1008 |
| `vocabulary_strength` | 0 to 2 | `invalid_parameter` |
| `turn_sensitivity` | 0 to 1, with `commit=turn` ([End of turn](https://platform.vatis.tech/docs/realtime/end-of-turn)) | `invalid_parameter` |
| A segment | `commit=manual`: 30 s of speech without a commit. `commit=vad`: no limit, a pause ends it. `commit=turn`: no limit, as with `vad`: the end of the turn or a pause ends it. | the segment ends, and its final comes |
| A final waiting for its speakers | 1.5 s | sent with the speakers known so far |
| The last finals after `end` | 30 s | `transcriber_error`, close code 1011 |
| Idle | 15 s without a message or audio | `idle_timeout`, close code 1008 |
| Session length | 4 hours | The last finals, then `session_time_limit`, close code 1008. Open a new session to go on: it starts at once. |

## Limits for keys, webhooks and requests

| Limit | Value | Over it |
|---|---|---|
| A single-use token | 15 minutes, one use | `401` `unauthorized`; a live session `unauthorized` |
| Refused keys from one address | over 10 a minute: later refusals are answered 2 s late. A valid key is never delayed, so a client that keeps sending a revoked key slows only itself | a late answer |
| An API key's name | 1 to 64 letters, digits, `.`, `_`, `-`; no two active keys share one | `400` `invalid_parameter`; `409` `name_taken` |
| JSON bodies (tokens, webhooks, keys) | 64 KB | `413` `request_too_large` |
| Saved vocabularies ([Vocabularies](https://platform.vatis.tech/docs/realtime/vocabularies)) | 100 a workspace; 10,000 entries each, 100 characters an entry; a JSON body of 8 MB; a name of 1 to 64 letters, digits, `.`, `_`, `-`, one per vocabulary | `409` `vocabulary_limit` (the 101st); `400` `invalid_parameter`; `413` `request_too_large`; `409` `name_taken` |
| Webhooks | 50 a workspace; `url` 2048 characters, `name` 200; 20 own headers (names 256, values 4096 characters) | `400` `invalid_request` (the 51st); `400` `invalid_parameter` |
| A webhook delivery | 15 s for an attempt; 5 retries | retried, then given up |
| A webhook signature | `t` within 5 minutes ([Webhooks](https://platform.vatis.tech/docs/batch/webhooks)) | refuse the delivery |
| A usage range | 366 days by day; 3660 days by month | `400` `invalid_parameter` |
| A page of activity | 1 to 100 rows, 25 by default | `400` `invalid_parameter` |

## Paths and methods

- One address for REST and WebSocket, on the HTTPS port, 443: `https://api.eu.vatis.tech`.
- Paths have no trailing slash: `/v1/transcripts/` is `404` `not_found`.
- A wrong method is `405` `invalid_request`, with an `Allow` header.
- The on-premise Speech Gateway's license and usage report are not on the cloud: their paths are `404` `not_found` too ([On-premise only](https://platform.vatis.tech/docs/endpoints#on-premise-only)).

## Not in this release

- **Live sessions are Romanian only, with no language detection.** Leave `language_code` out, or set it to `ro`; another language is refused. For files, `vatis_multi_v1` takes 99 languages and detects which one is spoken ([Batch](https://platform.vatis.tech/docs/batch)).
- **No English sessions and no live captions with translation on the cloud yet.** Such a session is refused before `session.started`. `GET /v1/models` lists what your workspace can use.
- No audio events (laughter, music), no character timestamps, no file formats beyond TXT, SRT and WebVTT, no entity detection on files, no redaction.

## Next steps

- [Errors](https://platform.vatis.tech/docs/errors): every code, and what to do about it.
- [Usage](https://platform.vatis.tech/docs/usage): how much audio your workspace transcribed.
- [Authentication and API keys](https://platform.vatis.tech/docs/authentication): keys, roles, and tokens for web pages.
