API Documentation
AgileSTT is the public name of the service, formerly known as AgileAscolto: the technical identifiers do not change — the model names agileascolto-base and agileascolto-small, the base URL and the headers stay exactly as they are.
Contract 1.0 · base URL https://api.agileascolto.agile.software · changes are listed in What's new and in GET /health.
Authentication
Every request carries the key in the Authorization: Bearer aga_… header (or X-API-Key). In the WebSocket, when the client cannot send headers (browsers), use the agileascolto, key.aga_… subprotocol. Never put the key in the URL.
Every key carries one or more scopes — transcribe (files), stream (WebSocket), batch (asynchronous jobs), metrics (measures and overview), test (extra scope, never alone: marks a trial key, covers no route) — and can have an optional expiry: beyond it, 403 KEY_EXPIRED. To try the API without onboarding there is a passe-partout trial key, time-limited and with a low quota.
Models
| Name | What it is |
|---|---|
agileascolto-base | Model in production, the default: base size, CPU, telephone band. Streaming and files. |
agileascolto-turbo | General Italian model, served since 26/10/2026, and it is not what you get by asking for nothing: you ask for it by name. Large size of the fast family, CPU. It costs more waiting and makes far fewer mistakes: measured on 25/10/2026 on the real client path (40 human-voice sentences, one at a time, 4 vCPU) WER 2.50 % and p50 wait 6.0 s (0.58x the speech), against 19.45 % and p50 1.6 s (0.14x) of the base size. Streaming and files. |
agileascolto-discovery | Model under evaluation for the telephone (names, numbers, codes), per key and on request. Not available today (404 MODEL_UNKNOWN). |
agileascolto-turbo-ft | Model under evaluation for the telephone (telephone speech, names, numbers, codes), per key and on request: it is not what you get if you ask for nothing, you ask for it by name. |
agileascolto-small | Mid-size model for the telephone, CPU, served on this deployment since 9/11/2026, and it is not what you get by asking for nothing: you ask for it by name. While the person is still speaking it makes fewer mistakes than agileascolto-base and makes you wait longer for the final line: measured on 9/11/2026 on the real client path (test tenant, 100 clips per branch, continuous listening, one conversation at a time) WER 9.1 % on the telephone and 8.5 % on the microphone, against 18.8 % and 16.1 % of agileascolto-base, with p50 final-line wait ~3.3 s against ~1.6 s. Up to 4 conversations at once (the cap this deployment declares in streams_max of GET /health); above the cap the refusal is the one already documented. Streaming and files. |
| legacy alias of the widespread standard | The model name that clients of the widespread standard send out of habit is accepted only as a compatibility alias for the default model. |
GET /v1/models lists the models your key can use and the alias names the frontend serves. The catalogue belongs to the deployment, not to this page: GET /health says which models the frontend you are calling actually serves and which one is the default. There have been two ears since 26/10/2026 and the default is still agileascolto-base: whoever wants the large size asks for it by name. Which one will be the standard is a decision not yet taken: until it arrives, the table states today's catalogue and the examples use the default name, because an example that gets a 404 is not an example.
Asking for it by name. agileascolto-small is asked for like the others: on the file route with -F model=agileascolto-small (POST /v1/audio/transcriptions) and on streaming with ?model=agileascolto-small (WS /v1/audio/stream?model=agileascolto-small). With no model, the answer still comes from agileascolto-base.
With AGILEASCOLTO_ALIAS the operator makes a second name be served by the same engine, without renaming it: AGILEASCOLTO_ALIAS="dettatura=agileascolto-turbo" means whoever asks for dettatura is served by agileascolto-turbo. Since 26/10/2026 the example can no longer be agileascolto-turbo=agileascolto-base: the asked name cannot overshadow a real model, and agileascolto-turbo now is one. The form is asked=served[,asked=served…]; the served name must be a real model, the asked name cannot overshadow a real model, and an alias cannot point to another alias (one hop only). Alias names appear in GET /v1/models and in the alias map of /health, but not inside models of /health. The name that ends up in usage (/v1/usage) is always the machine's, never the one asked for.
GET /v1/codici/blocchi?tipo=cf&sentito=<code heard before> gives the blocks of that type with the phrase to say and, for each one, posizionabile and quota_che_chiude: a block can be spliced only if the heard code is long enough, and asking for one that cannot be spliced throws a turn away. Without sentito you get just the table of blocks.
posizionabile: true does not mean «worth asking for»: the recomposition is anchored to the end and closes only if the error falls inside the block asked for. How much it is worth is said by quota_che_chiude, the block's slice: on the CF nascita 31.2 % against controllo 6.2 %, and one block at random out of the five closes the code 64 times out of 320. Measured over 1352 pairs, with one error only and error positions weighed equally.
Block or whole code, on the same base (13/10/2026): on the lot of real re-dictations (three CFs, 18 clips at 8,000 Hz) the two numbers are measured in the same run on two models. The conclusion is the same on both and is written once: if you do not know which block holds the error, ask for the whole code (true for 5 blocks out of 5, even with a perfect ear on the block: it is slice arithmetic); if you do know, only the ear is left. With model agileascolto-base (on CPU, in production today as the default; since 26/10/2026 it is no longer the only one served, but the figures are measured on it) the whole-code clip comes back exact 1 time out of 3 (33.3 %) and the block path is worth 31.2 % nascita, 12.5 % comune, 9.4 % nome, 3.1 % controllo, 0 % cognome; with the block known 5 blocks exact out of 10 (50 %) and the block wins on 4 names out of 5. With model agileascolto-grande (on GPU, decided and not deployed yet) the whole-code clip comes back exact 2 times out of 3 (66.7 %) and the block path is worth 25 % comune, 18.8 % nome, 15.6 % nascita, 9.4 % cognome, 3.1 % controllo; with the block known 7 blocks exact out of 10 (70 %) and the block wins on 2 names out of 5. Every figure comes from its own model’s report: a model named here without a report turns the gate red with its own name. Three codes and two models: the limit is stated.
File transcription — POST /v1/audio/transcriptions
Same route, fields and responses as the widespread transcription standard. multipart/form-data body: file (wav, mp3, m4a, ogg, webm, flac… up to 200 MB and 60 minutes), model, language (default it), response_format = json | text | verbose_json | srt | vtt (subtitles: at most two lines of 42 characters and 7 seconds per caption; long sentences are split at word boundaries). words=1 (or timestamp_granularities[]=word, as in the widespread standard): words with start and end in verbose_json, and subtitles cut at the pauses between words. prompt and temperature are accepted and ignored. codici=1: dictated codes (IBAN, POD, PDR, tax code, case numbers read letter by letter) come out packed into a single token: «i ti otto uno di zero uno sette zero…» → IT81D0170…, «bi esse trattino uno cinque…» → BS-15767. The rest of the sentence is unchanged. The response also carries codici: the tokens found with their type, valido (mod 97 checksum for the IBAN, check character for the tax code, shape for the others) and motivo; if the code does not hold and one single repair would make it hold, also riparato and regola — valido stays false: it is a proposal to be confirmed, not an accepted code. atteso=cf (with codici=1): the type of code you asked for (iban|cf|pod|pdr|telefono|pratica) — the candidate that answers your question carries atteso: true, and if the ear dropped a character and no candidate has that shape any more, the closest one is adopted and re-checked as that type (adottato: true), with a reason you can say out loud. A valid candidate is never adopted and adoption makes nothing valid. ricomponi=<code heard before> + blocco=cognome (with codici=1 and atteso): when the code does not hold and there is no repair, ask for one block instead of the whole code (codice fiscale: cognome, nome, nascita, comune, controllo; IBAN: paese, banca, sportello, conto; POD and PDR: testa, coda) and send the answering turn with those two fields: you get ricomposto back, with the code put together again and re-checked. giudicabile says whether that type's check has a checksum and can therefore reject a wrong recomposition (IBAN and codice fiscale yes, POD and PDR no: there valido: true only means «the shape holds» and the code must be read back to the person). Two fields to read, saying two different things: rileggi: true means that type's check is not enough on its own and the code must be read back to the person even with valido: true (pod, pdr and codice fiscale, whose check character has 26 values); richiedi: true means that the piece just re-dictated was misheard — the characters that arrived are not in the class of that block's positions — so do not ask for the next block: ask for that piece again. Neither changes any verdict. You pick the block: the frontend does not know where the error is. Ask one block at a time in the order of the code and let the check tell you when to stop. Two numbers, not one: if the person always re-dictates right the ladder closes on 30 codici fiscali out of 36 and 29 IBANs out of 29 (median 4 questions of 3–5 characters); if the re-dictation succeeds as much as the measured ear — and this is the number to expect — it closes on 13 codici fiscali out of 36 and 14 IBANs out of 29 (median of 8 seeds), with 0 wrong recompositions accepted on the codice fiscale thanks to rileggi. It is worth it because the short piece is heard: a codice fiscale dictated whole comes out exact 9 times out of 90, one of 7–10 characters lands between 74 % and 93 %.
With a client of the widespread standard you only need the base address https://api.agileascolto.agile.software/v1 and the key aga_…: the call audio.transcriptions.create(model="agileascolto-base", file=…, language="it") stays the same. With a direct call:
curl https://api.agileascolto.agile.software/v1/audio/transcriptions \
-H "Authorization: Bearer aga_…" -F file=@chiamata.wav -F model=agileascolto-base -F language=it
{"text": "…"}
The four response headers. Every response of the file route carries them on all five formats, including text, srt and vtt, where a body field would not fit. The bill: agileascolto-audio-seconds (the seconds of audio this request consumed, 2 decimals) and agileascolto-processing-ms (the milliseconds the service spent on this request, integer) — the same two numbers that go into the books, not a second measurement: in /v1/usage you find them as usage[].audio_s and usage[].ms, there as the key's monthly totals, so the bill is never an estimate. Who listened: agileascolto-model (the model this request is billed on — the name in the books, not the alias you asked with) and agileascolto-engine (the machine: name when the model has only one, name#1, name#2… from the second on). On a refusal (401, 413, 429, 503) the two billing headers are absent: there is nothing to pay for. On the stream there are no headers — the socket opens before transcription starts — and the same two numbers travel in the closed message, named duration and processing_ms.
With verbose_json: {"task","language","duration","text","segments":[{"id","start","end","text"}],"model","processing_ms"}. Segments are the sentences as the engine closed them, with start and end in seconds. With words=1 there is also "words":[{"word","start","end"}], at the top (as in the widespread standard) and inside each segment. For long jobs (scope batch), POST /v1/audio/jobs accepts the file and GET /v1/audio/jobs/{id}?format=srt (or vtt, text) delivers the finished file; GET /v1/audio/jobs lists your own jobs and DELETE /v1/audio/jobs/{id} cancels a queued one or deletes the result before it expires — waiting is not an archive.
Who speaks when (diarisation): it is there since 1/11/2026, and the declared limit is HOW MUCH IT GETS WRONG. The form of POST /v1/audio/jobs accepts diarizza=1: when the transcription is over the front tries to say who speaks, the segments it recognises carry speaker (SPK_00, SPK_01, …) inside segments, and the outcome sits in the job’s diarization field. Whoever does not ask does not receive: without diarizza no segment carries speaker and the diarization field is not there at all. Free-licence weights (a voice-print model to say who speaks and a voice-activity detector to say when): no personal signature from anyone, no third-party account. speakers=<2..10> pins the number of voices instead of discovering it (out of range or not an integer → 400 BAD_SPEAKERS). Who-speaks runs before the minutes, so with riassunto=1 the names enter the minutes next to the minute mark.
A diarisation failure does not bring the job down. The text is delivered anyway and diarization says why the names are missing: fatto (true/false) and, when it is false, codice + motivo — DIARIZE_UNAVAILABLE (the free weights are not on that site), DIARIZE_BAD_REQUEST, DIARIZE_FAILED, DIARIZE_NO_AUDIO (the job’s audio is already dead: it dies with the job) and DIARIZE_NOT_RUN (asked for and not run). When fatto is true the field carries voci, the labels that are countable in segments and not those of the clustering (voci_catena), plus etichettati, segmenti, fasce, cpu_s, s, soglia, voci_chieste, finestra_s.
How much it gets wrong, measured on the client’s own path (the whole job, not the laboratory; 1/11/2026, repeatable script banco/aula/chi_parla_dal_vivo.py, a constructed classroom of 603.2 s with 3 voices and 114 turns, 547.0 s of speech, agileascolto-base on CPU over 4 vCPUs). With the voices discovered (no speakers): DER 35.37% — missed 21.2 s, false alarms 22.7 s, confusion 149.5 s out of 547.0 s — with 77 segments out of 77 carrying a name (100%), per-segment accuracy 84.4% (65 out of 77) and 5 voices delivered against 3 real ones; the diarisation costs 63.7 s of CPU, 10.6% of the duration, and the whole job (transcription included) 95.8 s of wall clock.
Asking for the number of voices makes it WORSE, and it has to be said. With speakers=3, same material: DER 52.55% (missed 21.6 s, false alarms 22.5 s, confusion 243.3 s), 76 out of 76 carrying a name, per-segment accuracy 65.8% (50 out of 76) and the voices delivered are 2, not 3 — you ask for three and two arrive, because the third is a crumb that wins the overlap nowhere; cost 61.3 s of CPU, 10.2% of the duration. So 52.55% against 35.37%: the extra parameter does not help, it is worse, and it is the same direction as the laboratory (39.55% with the number of voices known against 9.95% with the voices discovered). A client reading two figures without this line believes the opposite.
The laboratory numbers, for comparison (banco/aula/primo_der.py: who-speaks alone, not the client’s path, on the same material). DER 9.95% with the voices discovered — but that threshold (0.5 with --finestra 999) is tuned on that very material, so it is a number that has seen its own exam paper — and 39.55% with the number of voices known, against a voice/silence-only floor of 8.08%. And that 39.55% is not quoted bare: it is a degenerate clustering, because of the 3 labels requested one absorbs two real voices (176.0 s and 171.0 s, the two female ones) and the third is a 2.6 s crumb. It is not “a diarisation that is 60% right”.
What we do NOT promise, said by name. The classroom is synthetic: single-voice clips concatenated, with no room noise and no two people talking over each other. On real classroom material the measurements are zero. The product number of objective 7 — two hours of a meeting worked under 20% of the duration — is, on the time side, no longer a promise: it is measured on 2/11/2026 at 12:11 Rome time, from the client’s seat, on CPU (4 vCPU, no video board) and with the small model (base), on a two-hour synthetic classroom worked with who-speaks-when and the minutes in the same job: 1,174.5 s of wall clock, that is 16.3% of the running time. What stays tied to a site with a graphics card is the quality of the large model, not the small one’s time — and over those same two hours the quality is said with figures: DER 34.42% with the voices discovered, the name right in 92.8% of the segments, voices delivered 5 against 3 real ones, and the minutes came back truncated and declared incomplete (summary_truncated and summary_incomplete true). So: the time is a measurement, not a commitment; it is not a commitment, neither of a date nor of quality on a real recording, and on real classroom material the measurements stay zero. And there is a limit of today, on the installed front: the free weights are not on it (they live in the cache of the user who downloaded them, not in a place the service can read), so on that site diarizza=1 answers DIARIZE_UNAVAILABLE and delivers the text alone. That is the state of today, and we do not promise when it changes.
What you can do anyway: bring your own diarisation. POST /v1/audio/riassunto accepts segments, and a segment carrying speaker ends up in the minutes with the name in front of the text, next to the minute; a segment without speaker keeps the minute alone. On that route the field is the client’s: the service neither fills it in nor checks it.
The classroom summary (riassunto=1). On long files the form of POST /v1/audio/jobs accepts riassunto=1, off by default: when the transcription is over the front sends the segments with their minutes in front to AgileLLM, the sovereign language model, and when the job is done the answer of GET /v1/audio/jobs/{id} carries summary (agenda, decisions, speeches), summary_status and summary_ms; when the minutes are there, also summary_model. Whoever only wants the text does not send the field and does not pay for the second pass.
The minutes speak the job’s language (language). The language field of POST /v1/audio/jobs — the same one that governs the transcription, and that the job’s GET sends back as language — also governs the language the minutes are asked in: it is not a new field and it does not change name. The languages the minutes can be asked in are an allow list: it, en, fr, de, es, pt; the forms you really write are accepted — en, EN, en-US, en_us — because what counts is the part before the dash. A language outside the list (or empty, or absent) is not an error and makes nothing fail: the minutes are asked in the default language, Italian, and the service declares it in its log — no new refusal code and no new state in summary_status. Only the name of a language from the list enters the prompt, never the string the client wrote. Measured through the route: before, the minutes were asked in the job’s language in 0 calls out of 1 on the single pass and in 0 out of 35 on the classroom in stretches (29 stretches + the union); after, 1 out of 1 and 35 out of 35.
Repeating the summary without retranscribing (POST /v1/audio/jobs/{id}/riassunto). A broken summary must not cost the transcription: this route repeats only the summary, on the segments the job already has — no audio is sent, no engine is called, nothing is retranscribed — and it answers with the same body as GET /v1/audio/jobs/{id} (summary, summary_status, summary_ms, summary_parts). 404 like the GET and for the same reasons (JOB_UNKNOWN: unknown id, expired job, already consumed, or belonging to another key); 409 JOB_NOT_DONE if the job is not done yet (queued or running) — not a fault, it is the current state: call it again when the GET says done. It records no seconds of audio: it does not show up in /v1/usage nor in the invoice with new seconds, and the model's time stays in summary_ms. It can be asked for a job born without riassunto=1 as well: the segments are the same. With keep=0 the first GET consumes the job and the repetition answers 404: whoever wants to be able to repeat the minutes does not ask for keep=0.
The minutes from the segments you already hold (POST /v1/audio/riassunto). Whoever asks for keep=0 — “listening that does not keep” — holds the segments of their single delivery but no longer holds the job: the route above answers them 404, and getting the minutes back meant sending the file again — on a two-hour classroom, 82,213 characters already in the client’s hands and 6,779.9 s of machine time to retranscribe them. This route summarises the text you send: no job is created, no audio is sent, no engine is called. In the JSON body put segments (the list from the delivery: text alone is enough) or text, the plain text; if both arrive the segments win, because with their start the minutes carry the minute marks in front of every line. Scope batch. It answers 200 with the same minutes fields as the job (summary, summary_status, summary_ms, summary_parts, summary_model, summary_truncated) plus segments_received and characters, the two numbers you check to make sure nothing was lost. Nothing to keep: no job is born, no id, no expires, and the text does not come back in the answer. It records no seconds of audio: it does not show up in /v1/usage nor in the invoice, and the model’s time stays in summary_ms. 400 SUMMARY_INPUT_MISSING if there is nothing to summarise and 400 SUMMARY_INPUT_INVALID if the shape is wrong or the JSON cannot be read: in both cases AgileLLM is not called at all. 413 SUMMARY_TEXT_TOO_LARGE above AGILEASCOLTO_RIASSUNTO_MAX_CARATTERI (400,000 characters), with the message carrying both numbers: whoever goes past them splits the classroom and asks for minutes per stretch. The language is not asked for, and the minutes stay in Italian: this route has no language field — what reaches it is a text, not a job — so the minutes are asked in the default language. It is a declared limit: on jobs the language of the minutes is governed by language (above).
Two rules the client can demand. Never external providers: the text only leaves towards an address inside our estate — local traffic, or a name under the suffixes declared in AGILEASCOLTO_LLM_SOVRANI, by default .agile.software and .agile.local — and an address outside the estate is not called at all: the request stops before leaving and the field declares it. Never a fake summary: summary is null every time there is none, and summary_status says why. A summary that fails does not take the transcription down: the job stays done with its text. A long transcript is not cut: AGILEASCOLTO_LLM_MAX_CARATTERI (30,000, lowered from 60,000 on 22/10/2026 after calibration against the real model) is the ceiling of the part, not of the meeting — a longer assembly is split on line boundaries, every part is summarised and one merge round makes a single set of minutes (summary_parts says how many). Measured on 20/10/2026 on a two-hour meeting: 82,213 characters out of 82,213 reached the model, 0 lost, 2 parts. summary_truncated: true stays for the two declared cases — a segment longer than the ceiling, or a merge that at the last allowed round still does not fit: the cut is declared, not hidden. Today no deployed front has an AgileLLM configured: the status you read is non_configurato, that is, the field is there and declares that AgileLLM is not there yet.
| Status | What happened |
|---|---|
fatto | The minutes are there; summary_model says which model wrote them. |
non_configurato | This front has no AgileLLM yet: the field stays empty. |
fornitore_esterno | The configured address is outside the estate: the text did not leave. |
non_raggiungibile | AgileLLM did not answer, or answered something that is not minutes. |
rifiutato | AgileLLM answered with an error. |
vuoto | There was nothing to summarise, or the model returned no word. |
Streaming — WS /v1/audio/stream?model=…
The client opens the WebSocket, sends a start message, then 16-bit mono PCM audio in 20 ms frames, and receives partials and finals while speaking.
| Direction | Message | Meaning |
|---|---|---|
| client → server | {"type":"start","language":"it","sample_rate":16000} | Start. sample_rate 8000 (telephone) or 16000. Optional "codici":true (or ?codici=1 in the URL): final messages come out with dictated codes packed, partial ones do not. |
| server → client | {"type":"started"} | Ready to receive audio. |
| client → server | binary PCM s16le mono frames | 20 ms per frame (640 bytes at 16 kHz, 320 at 8 kHz), at real-time rate. |
| server → client | {"type":"partial","text":"…"} | Provisional text of the sentence in progress. |
| server → client | {"type":"final","text":"…","speech_final":true} | Closed sentence. speech_final true = the person has finished speaking. |
| client → server | {"type":"flush"} | Close the current sentence immediately (turn end decided by the client); the session stays open. |
| client → server | {"type":"vocabolario","vocabolario":1} | Turns your company’s vocabulary on (1) or off (0) on an open call, from the stretch that starts now. The field stops at the frontend: what goes to the engine are your tenant’s terms (or none). Wait for the answer |
| server → client | {"type":"vocabolario","acceso":true} | The confirmation of the change: acceso is the state the recognition goes on with. Without a confirmation within AGILEASCOLTO_ATTESA_ACK_VOCABOLARIO_S (2.0 s) you get VOCABOLARIO_NON_SUPPORTATO and the call goes on with the vocabulary of before |
| client → server | {"type":"stop"} | End of session: the last final arrives, then {"type":"closed"}. |
| server → client | {"type":"error","code":"…","status":429,"message":"…"} | Frontend error, then closed with code 1008. |
| server → client | {"type":"closing","code":"SHUTTING_DOWN","retry_after_s":10} | The frontend is shutting down (a redeploy): the final of what you have already said follows immediately, then the close with code 1012 ("service restart"). Reopen the session after retry_after_s: WebSocket libraries retry on 1012 by themselves. |
The preview of partials is not guaranteed, and what decides it is the push window. The preview depends on the push window, not on the rate: the window is the wall-clock seconds in which the audio goes in, that is the audio duration divided by the rate you push it at. A long audio pushed fast does receive partials, a short sentence pushed fast may receive none. Measured on our own bench (2 durations × 3 rates, 6 cells and 24 sessions): with a 0.6 s window the preview arrives in 0 sessions out of 4, at a full window (real time) it arrives in all of them, and below that threshold delivery is not deterministic — so the promise is not guaranteed, never "it arrives". What you lose by pushing fast is the preview, never the text: a final with text is there in 24 sessions out of 24, empty finals are 0 and the characters of the final do not change with the rate (27 at 3 s and 119 at 12 s, identical at 1x, 6x and 20x). The preview may be missing and the transcript does not change.
import asyncio, json, websockets
async def main():
async with websockets.connect("wss://api.agileascolto.agile.software/v1/audio/stream?model=agileascolto-base",
additional_headers={"Authorization": "Bearer aga_…"}) as ws:
await ws.send(json.dumps({"type": "start", "language": "it", "sample_rate": 16000}))
# … await ws.send(frame_pcm) ogni 20 ms …
await ws.send(json.dumps({"type": "stop"}))
async for m in ws:
print(m)
asyncio.run(main())
Your company's vocabulary — vocabolario=1
The names and acronyms your company dictates (surnames, acronyms, addresses, case numbers) are uploaded once and apply to your keys. With vocabolario=1 that table enters the recognition of that request, and the model stops hearing common words instead of your terms (SPID → «speed», PEC → «pack», INPS → «impz»). You ask for it where you need it: vocabolario=1 in the form of the file and of the long job, ?vocabolario=1 or "vocabolario": true in the streaming start. Off by default: without the field your vocabulary stays where it is and the request does not use it.
When it is worth switching on, with the numbers (measured on 23/10/2026 on the reference set, real table of 28 terms, 12 excerpts inside the table's coverage and 12 outside, 55 words per group). The vocabulary is a bias: it helps where your terms are and it disturbs where they are not. Inside the coverage it closes 5 word errors — from 19 out of 55 to 14 out of 55, WER from 0.3455 to 0.2545 — and exact dictated codes go from 4 out of 12 to 9 out of 12. Outside the coverage it opens 4 of them every 55 words (+7.28 WER points). The break-even is at 44 %: that much speech must sit inside your table for the vocabulary not to make the result worse. Changed on 24/10 (the codes used to say 6 out of 12 and 10 out of 12): neither the measurement nor the audio changed, the judge did — since 24/10 (directive A807) the exact code demands the word boundary and no longer counts a code that starts or ends in the middle of a word, such as «ASL» written inside «Asla» (n058); WER and break-even are unchanged.
So, in practice: switch it on for the stretch in which the person dictates a code, a name or an acronym, where coverage is high; do not leave it on for a whole phone call, because greeting, courtesy and explanation are not in the table and the 44 % is not reached. On streaming the stretch is switched on and off inside the call, with the message {"type":"vocabolario","vocabolario":1} (and 0 to switch it off): it holds from the stretch that starts now, and the service answers {"type":"vocabolario","acceso":true|false}. Wait for the answer before saying it is on: if the engine does not confirm within AGILEASCOLTO_ATTESA_ACK_VOCABOLARIO_S (2.0 s) you get VOCABOLARIO_NON_SUPPORTATO and the call goes on with the vocabulary of before — we do not declare a change that did not happen in the recognition. The message before the start is VOCABOLARIO_PRIMA_DELLO_START, without the vocabolario field it is VOCABOLARIO_MANCA. A second start with the field changed is not the road: measured, it never reaches the engine. The table's length is not the handle: from 28 to 200 terms the WER does not move (+0.00 points), and the ceiling of 200 terms is there for processing time, not for the WER. Your vocabulary is yours: no other company sees it, a request without a company has none, and the terms are not sent in the request.
If today you have it always on. Until 23/10/2026 the vocabulary entered every request, with no way to ask for it or remove it. From today it is asked for and the default is off; an installation that wants the previous behaviour sets AGILEASCOLTO_VOCABOLARIO_DEFAULT=1 on its front end. For the deployments that today have it always on, the date of the transition is set and written here: to be set — until that date those deployments keep the previous behaviour and nothing changes for callers.
Usage — GET /v1/usage
A key sees only its own usage: by month, operation (transcribe, stream, batch) and model, with requests, seconds of audio and milliseconds of processing. The used_s_this_month field is compared with quota_s_month. Without writing code: the usage page (GET /uso) shows the same numbers when you paste the key (which travels only in the header, never in the address).
Overview — GET /v1/quadro
For those who monitor (a key with the metrics scope): the keys with requests, seconds and the month's quota percentage (?mese=AAAA-MM, default the current month), totals, and engine status. Numbers only: never secrets, never texts. The same overview is read on the server with agileascolto-keys.py quadro and, with a metrics key, on the usage page. The perimeter is the key's and it is written in the reply (perimetro): a key with a tenant sees its own company, a control-room key (no tenant) the whole service. The GET /metrics counters are the service's and cannot be narrowed to one company: to a key with a tenant they answer 403 METRICS_TENANT_FORBIDDEN.
Status — GET /health
No key required. Reports whether the frontend and the engines respond, the contract version, active streams, the link to what's new, and the alias map ({asked: served}: the names served beyond the real models, for whoever configured them with AGILEASCOLTO_ALIAS).
Self-service console — /v1/console
Routes apart from the transcription contract: they are not authenticated with an aga_… key but with a user token agt_… of your tenant (Authorization: Bearer agt_…). They let a company's administrator (or an individual person) manage their own keys and their own people alone, without asking us for anything. You see and touch only your own tenant (403 TENANT_FORBIDDEN); every operation lands in the log, never with a key's secret nor with an invite token.
Where you come in, today. These routes do not come out on the public host api.agileascolto.agile.software: they are blocked by the proxy on the public host and from the Internet they answer 404 not found — the public door of the service is the transcription API, not its administration. You come in through the tunnel (WireGuard), and the control room agrees the access with you. A console from the browser on a host of its own is a decision still to be made: until it exists, this page does not promise it.
| Route | What it does |
|---|---|
POST /v1/console/keys | Issues a key of your tenant. The secret is shown once only, here. 403 PLAN_EXCEEDED if the key alone would promise more than the company plan. Self-service scopes are transcribe, stream and batch: metrics and test are issued by the control room (403 SCOPE_NOT_SELF_SERVICE). The key is born under a licence: the one in the optional licenza field, otherwise the company's only active licence; the id comes back in the reply (licenza, or null). With more than one active and no licenza it is 409 LICENSE_AMBIGUOUS — without a licence a key has no company ceiling on it at all. Whoever has no active licence carries on as before. |
GET /v1/console/keys | Your keys with status and the month's usage, plus the company plan and its seconds. Each one says whose it is: owner_email and owner_stato next to owner (an active key of a suspended person is visible at a glance); ?owner= narrows to a person (id or email) or to a product. Never the secret, never a person's token. |
POST /v1/console/keys/{key_id}/rotate | A new key with the same rights; grazia_ore keeps the old one alive for the grace period. For a key under a licence the grace comes from the licence (its cap by default): asking for more than the cap is 409 LICENSE_GRACE_EXCEEDED, never a silent cut. |
PUT /v1/console/keys/{key_id}/nome | Renames a key that already exists: without this route only new keys could have a name. Only on an active key (409 KEY_NOT_ACTIVE), and 409 KEY_NAME_TAKEN if that name belongs to another active key of the company. Anyone in the tenant may call it, like rotate and revoke: renaming is less than revoking. |
PUT /v1/console/keys/{key_id}/persone | The digital persons (the avatars) a key that already exists declares: without this route the avatar perimeter could only be switched on for a new key. Two forms, list or csv; answers with persone and persone_prima, normalised. Emptying is asked for ([]), but the field is mandatory: an empty body is 422, it does not switch the perimeter off. Only on an active key (409 KEY_NOT_ACTIVE), anyone of the tenant calls it (403 TENANT_FORBIDDEN on the others), and a list that is not right is 400 PERSONE_INVALID with nothing written. The obligation is a second step (field obbliga): the list says who may speak — and a person that is not among them is refused right away — the obligation says that saying it is mandatory (403 PERSONA_MANCANTE). Without the field the obligation stays as it was, so the perimeter of a key in service switches on without breaking whoever does not send the person yet. Obligation on a key that declares nobody: 400; emptying the list switches it off. Scope per organisation: an entry ending with * is a prefix and covers the present and future persons of an organisation (acme-*). A scope overlapping another company's one is 409 PERSONE_AMBITO_OCCUPATO both ways (acme-* vs acme-srl-*), and the refusal does not name the other company; the star only at the end and at least 3 characters before it, or 400 The limit of the scope (L163): a scope covers the slugs that start with its prefix, and nothing else. Between two scopes of the same company covering the same slug the more specific one wins (acme-srl-* beats acme-* on acme-srl-tutor-01). Until the duplicate has a scope of its own, its avatars stay in the first one's scope: it is a residue, not a guarantee. And a scope separates only the subjects that are told apart by slug, and nothing else: if two subjects share the slug no perimeter rule separates them — measured by adp on 13/10/2026, 27 organisations out of 33 have no readable subject and the slug is reused. |
POST /v1/console/keys/{key_id}/revoke | Immediate revocation. |
POST /v1/console/keys/revoke-by-owner | Removes in one move every active key of a person or of a product (owner: id, email or product name) — the gesture for whoever left the company. No grace period: a revocation hands out no new secret, so whoever wants the integration to keep running rotates the key instead. 404 OWNER_NOT_FOUND if that name has no key. |
POST /v1/console/users | Invites a person into your tenant (email, ruolo, scadenza_giorni). The invite token is shown once only, here, and it expires: 7 days by default, 90 at most (expires_at in the reply). 409 USER_EXISTS if they are already one of your people. |
POST /v1/console/users/accept | Whoever received an invite accepts it with their own token: you cannot accept on someone else's behalf. |
GET /v1/console/users | Your people with role (amministratore, utente) and status (invitato, attivo, sospeso). |
POST /v1/console/users/{utente_id}/suspend | Suspends a person: their token stops entering the console. Their keys are never touched on their own: chiavi in the body is the choice — "lascia" (default: they stay, and the log says which) or "revoca" (their active keys go in the same move). 409 LAST_ADMIN on the last active administrator: your company cannot lock itself out. |
POST /v1/console/users/{utente_id}/reactivate | Reactivates whoever comes back. |
PUT /v1/console/users/{utente_id}/role | Changes the role. Inviting, suspending and assigning roles belongs to the administrator (403 ADMIN_REQUIRED); the list is read by anyone in the tenant. |
POST /v1/console/users/{utente_id}/rotate-token | A new token for a person, identity unchanged (same id, same role, same keys, same history in the log): shown once only, here. You change your own, even as a plain user; your people's is changed by an administrator. By default the old one dies at once (grazia_ore: 0) and then gives 403 TOKEN_ROTATED. 409 USER_NOT_ACTIVE if the person is suspended. |
GET /v1/console/audit | Operations log of your tenant: who, what, on which key or on which person, with what outcome. A row about one of your keys is there even when the control room wrote it, and it says whose the actor is. Filters key_id, persona (id or email) and operazione; limite from 1 to 1000 (100 by default), beyond that it is 400 AUDIT_LIMIT_INVALID — no silent truncation — and the reply says quante rows match and whether it is troncato. Never a token, never a fingerprint, never an email. |
GET /v1/console/tenants/{tenant}/piano | The company plan (agreed requests per minute and seconds per month) and its seconds for the month. |
The limit of the avatars' scope. A scope (acme-*) covers the slugs that start with its prefix, and nothing else. Between two scopes of the same company covering the same slug the more specific one wins (acme-srl-* beats acme-* on acme-srl-tutor-01). Until the duplicate (acme-2-*) has a scope of its own, its avatars stay in the first one's scope: it is a residue, not a guarantee. And a scope separates only the subjects that are told apart by slug: if two subjects share the slug no perimeter rule separates them — measured by adp on 13/10/2026, 27 organisations out of 33 have no readable subject and the slug is reused.
The company plan — the tenant's ceiling
rate_per_min and quota_s_month live on the key, and keys are issued by the administrator from the console: they are your own choice, not the contract. The contract is the company plan (the tenant plan): requests per minute and seconds per month for the whole company, summed over all its keys — revoked ones included, for the month's seconds.
Only the control room writes the plan (PUT /v1/console/tenants/{tenant}/piano, header X-Regia-Superadmin): from the console a company cannot widen its own ceiling, because that is the agreed part. It reads it whenever it wants: the administrator in GET /v1/console/keys (piano, tenant_used_s_mese) and in GET /v1/console/tenants/{tenant}/piano, whoever holds a key in GET /v1/usage (piano_tenant, tenant_used_s_this_month).
It bites in two places. When a key is created that on its own would promise more than the plan: 403 PLAN_EXCEEDED, and that holds for an unlimited key too. And on every request, over the sum of all the company's keys: 429 TENANT_RATE_LIMIT and 429 TENANT_QUOTA_EXCEEDED. These two say something different from their namesakes on the key: RATE_LIMIT and QUOTA_EXCEEDED are about that key (the administrator can issue another one or widen it), the TENANT_* ones are about the company, and one more key changes nothing. The per-minute rate is a sliding window (the last 60 seconds), not the wall-clock minute.
0 means "no ceiling", as for keys, and a tenant with no written plan gets the deployment's starting one: 0 and 0 by default, so anyone not using plans sees no change in behaviour.
Why it exists, measured: with the plan "6 requests per minute, 6 seconds per month" and an administrator issuing himself 3 keys in good faith from the console, without the plan the company passed 18 requests per minute against a ceiling of 6 (3.0x) and 18 seconds in the month against a quota of 6 (3.0x); with the plan, 6 and 6 (1.0x). It is the measure from our own test bench, not a capacity promise.
Licences — /admin/licenze (control room)
A licence is the sales contract: it says what has been granted to your company and until when, and your keys sit under it. Issuing it, stopping it and closing it belongs to the control room, not to the console: a ceiling you choose for yourself is not a ceiling. These routes require the X-Regia-Superadmin header plus a valid user token (the log must be able to say who acted), and like /v1/console they are blocked by the proxy on the public host: you come in through the tunnel. They matter to you because they say what can change about the licence you hold.
| Route | What it does |
|---|---|
POST /admin/licenze | Issues a licence (201): tenant, piano (prova, standard, enterprise), ambiti, quota_s_month, rate_per_min, scadenza, grazia_ore_max. A body that is not a licence is 400 LICENSE_INVALID_INPUT. |
GET /admin/licenze | Lists them all, or those of one ?tenant=. |
GET /admin/licenze/{id} | Reads one with its effective status: an active licence past its expiry reads scaduta without anything being written on the row. 404 LICENSE_NOT_FOUND. |
POST /admin/licenze/{id}/sospendi | Stops it: your keys stop working with a named refusal (LICENSE_SUSPENDED) and no key is touched — your integration lives inside them. On an already suspended one 409 LICENSE_NOT_ACTIVE, on a revoked one 409 LICENSE_REVOKED. |
POST /admin/licenze/{id}/riattiva | Puts it back on its feet; on an already active one it is an idempotent 200. On a revoked one 409 LICENSE_REVOKED, on one whose term has passed 409 LICENSE_EXPIRED: renew first, then reactivate — otherwise the keys would stay down after a «successful» reactivation. |
POST /admin/licenze/{id}/rinnova | Moves the expiry forward (scadenza, epoch in the future): it recovers an expired licence without touching its status. A date in the past is not a renewal (400 LICENSE_INVALID_INPUT). |
POST /admin/licenze/{id}/revoca | Closes it for good, from any status. It revokes no key: it is the licence that stops them. |
GET /admin/licenze/{id}/uso | The month's audio seconds summed over only the keys of that licence: it is the row you are invoiced for. A key of another company carrying that licenza_id is a wrong row and does not enter the sum. |
POST /admin/licenze/{id}/chiavi | Puts a key under the licence (key_id). The order of refusals follows the question, not the number: first it looks at where the key stands and whose it is, and the invoice is looked at after the perimeter and after the licence already in place. A key that does not exist is 404 KEY_NOT_FOUND; another company's key is 409 LICENSE_TENANT_MISMATCH, by exact tenant equality. If it already has a licence, 409 LICENSE_KEY_ALREADY_LICENSED and the column stays unchanged — it is not moved in silence. A key that has consumed in an already-closed month is 409 LICENSE_KEY_BILLED: attaching it would rewrite that month's invoice. Consumption in only the current month does not stop the attachment (that invoice is not yet issued). |
DELETE /admin/licenze/{id}/chiavi | Removes a key from the licence (key_id), only if it really sits under that licence. A key that does not exist is 404 KEY_NOT_FOUND (the same answer as POST), one that does not sit under that licence is 409 LICENSE_KEY_NOT_ATTACHED even if it has consumed (the month's invoice belongs to the other licence). A key that has consumed in any month — and sits under this licence — is not removed (409 LICENSE_KEY_BILLED): removing it would rewrite the invoice, even the one of an already-issued month. |
POST /admin/licenze/{id}/sposta-chiavi | Moves a licence's keys under another licence of the same tenant: a plan change is a new licence, not a correction. Body: a (the destination), chiavi (optional: without it, all active keys of the origin), revoca_origine (the origin is revoked in the same transaction), nota (the reason, readable from GET /admin/licenze/{id}). a equal to the origin is 400 LICENSE_INVALID_INPUT; two licences of different companies are 409 LICENSE_TENANT_MISMATCH, by exact tenant equality; a destination that is not active is 409 with its status's name (LICENSE_SUSPENDED/LICENSE_EXPIRED/LICENSE_REVOKED). A listed key that does not sit under the origin is 404 KEY_NOT_FOUND and no key moves: all or none. The invoice is not rewritten: the key's unlabelled book rows are stamped with the origin licence in the same transaction, before the column changes — measured: 10.0 s with no licence plus 7.0 s under A, after the move A stays 17.0 s and B 0.0 s. The keys are not touched otherwise: one column is written. |
A licence's numbers are not corrected. Of an issued licence only the status (suspend, reactivate, revoke) and the expiry (renew) change: a change of plan or of numbers is a new licence, with the keys moved under it and the old one revoked with a note. The row you are invoiced for is not rewritten — so what you signed stays readable afterwards too.
Requesting a licence — POST /v1/richieste-licenza
Public route, no key needed: it is asked by whoever does not have one yet. JSON body with nome, email and uso required, azienda, piano (prova, standard or enterprise; absent means prova) and volume_stimato optional. The sito_web field must be left empty: it is the anti-robot trap.
201 answer with the number to quote when writing to us: {"numero":7,"id":"req_1a2b3c4d","stato":"registrata","messaggio":"richiesta registrata n. 7"}.
No request is swallowed: the row is written before any delivery is attempted, and once it exists the answer is 201 whatever happens next. A run on our box takes it to whoever must read it and marks it done only on successful delivery: if the channel is down, the request stays and the next run retries.
The refusals have names: 400 LICENSE_REQUEST_INVALID (it says which field), 400 LICENSE_REQUEST_REJECTED (the trap was filled: no row written), 413 LICENSE_REQUEST_TOO_LARGE (body over 4096 bytes, checked while reading), 429 RATE_LIMIT with Retry-After (at most 5 per minute per address).
Privacy: we keep only the SHA-256 of the address, and our log holds number, id and plan — never the name, never the email, never the text of what you wrote. The list of requests (GET /v1/richieste-licenza) is ours only, and without the control room token configured it is closed even to us (403 SUPERADMIN_REQUIRED). On the person's request the control room erases their request at once (DELETE /v1/richieste-licenza/{numero}: 204 if it was there, 404 LICENSE_REQUEST_UNKNOWN if not). And the requests expire: 24 months (730 days, changeable from the environment with RICHIESTE_LICENZA_GIORNI; 0 = never), then the run deletes them.
Errors
| Status | Code | When |
|---|---|---|
| 401 | KEY_MISSING, KEY_INVALID | Key missing or unknown. |
| 403 | KEY_REVOKED, KEY_EXPIRED, SCOPE_NOT_ALLOWED, MODEL_NOT_ALLOWED, LICENSE_SUSPENDED, LICENSE_EXPIRED, LICENSE_REVOKED, LICENSE_SCOPE_NOT_ALLOWED, LICENSE_TENANT_MISMATCH | Key revoked, expired, or it does not cover the operation or the model. The LICENSE_* ones are the licence the key sits under — suspended, expired, revoked, or not covering that scope: the key is not revoked and resumes by itself when the licence resumes. |
| 403 | INVITE_EXPIRED, TOKEN_ROTATED, TENANT_FORBIDDEN, ADMIN_REQUIRED, SUPERADMIN_REQUIRED, USER_SUSPENDED, PLAN_EXCEEDED, SCOPE_NOT_SELF_SERVICE, METRICS_TENANT_FORBIDDEN, PERSONA_MANCANTE, PERSONA_NON_DICHIARATA | In the console: an unaccepted invite past its expiry, or a token withdrawn by a rotation — the secret was recognised, ask for a new one: this is not a 401. Then: another tenant, an operation reserved to the tenant administrator or to the control room, a suspended person, a key that on its own would exceed the company plan (PLAN_EXCEEDED), scopes the console does not grant by itself (metrics, test: the control room issues those), and /metrics asked for by a company key (its numbers are in /v1/quadro and /v1/usage). The two digital persona codes bite only if the key declares its personas (the persone field in the console) and never for keys that declare none: PERSONA_MANCANTE = the request does not say which persona it is talking to (the persona field), PERSONA_NON_DICHIARATA = the persona asked for is not among those declared, or the key declares none and the request names one. |
| 404 | ROUTE_UNKNOWN, MODEL_UNKNOWN, JOB_UNKNOWN, KEY_NOT_FOUND, USER_NOT_FOUND, OWNER_NOT_FOUND, LICENSE_NOT_FOUND, LICENSE_REQUEST_UNKNOWN | No route answers that path (ROUTE_UNKNOWN): the path is wrong, not the key. Then: nonexistent model name; a job of another key, expired or never existing (same answer: nobody is told that someone else's job exists). In the console: a key or a person that does not exist at all — one of another tenant is 403, not 404 — or an owner with no key in the company. A licence request that does not exist (the control room's deletion: 204 only if it was there). |
| 405 | METHOD_NOT_ALLOWED | The route exists, but not with that verb (a DELETE on a read-only route): the path is right, the method is not. |
| 400 | AUDIO_INVALID, FORMAT_UNSUPPORTED, MONTH_INVALID, KEY_INVALID_INPUT, KEY_NAME_INVALID, PLAN_INVALID_INPUT, LICENSE_INVALID_INPUT, USER_INVALID_INPUT, AUDIT_LIMIT_INVALID, SUMMARY_INPUT_MISSING, SUMMARY_INPUT_INVALID, BAD_SPEAKERS, VOCABOLARIO_RIFIUTATO, ALLEGATO_INFETTO, ALLEGATO_CONTENUTO_ATTIVO | File not decodable, empty or too short; response_format (or job format) not supported; mese not in YYYY-MM form. In the console: impossible values for a key, a plan or a person (empty email, nonexistent role), a key name that is empty, over 60 characters or with control characters, an audit limite outside the declared range (1-1000) — which is not silently trimmed. From the attachment check: a file the antivirus rejects (ALLEGATO_INFETTO) or one carrying active content — an executable, a script, Office macros, a PDF with JavaScript or actions, an encrypted, nested or bomb archive (ALLEGATO_CONTENUTO_ATTIVO). The rejected file is not kept and the reason for the rejection does not travel in the answer: it stays in the log, without a byte of the content. |
| 501 | TIMESTAMPS_UNAVAILABLE | Subtitles requested from a model whose engine does not provide segment times: they are not made up. |
| 409 | KEY_NOT_ACTIVE, LICENSE_NOT_ACTIVE, KEY_NAME_TAKEN, LICENSE_GRACE_EXCEEDED, USER_EXISTS, USER_NOT_ACTIVE, USER_NOT_SUSPENDED, USER_ROLE_UNCHANGED, INVITE_NOT_PENDING, LAST_ADMIN, LICENSE_TENANT_MISMATCH, LICENSE_KEY_ALREADY_LICENSED, LICENSE_KEY_NOT_ATTACHED, LICENSE_KEY_BILLED, LICENSE_AMBIGUOUS, PERSONE_AMBITO_OCCUPATO, JOB_NOT_DONE | Never a fault: the current state does not allow that move — in the console, a key already revoked or expired, a name already held by another active key of the company, grace asked above the licence cap, a person already in your tenant or already suspended, a role that would not change, an invite already accepted, the last active administrator; on the key routes, another company's key, a key that already has a licence (not moved in silence), a key that does not sit under that licence, a key that has consumed in an already-closed month (attaching it) or in any month (removing it) would rewrite the invoice; on long jobs, JOB_NOT_DONE if the summary is asked to be repeated (POST /v1/audio/jobs/{id}/riassunto) on a job that is not done yet. |
| 413 | AUDIO_TOO_LONG, SESSION_TOO_LONG, AUDIO_TOO_LARGE, SUMMARY_TEXT_TOO_LARGE, ALLEGATO_TROPPO_GRANDE | Over 60 minutes per file or 4 hours per session; AUDIO_TOO_LARGE = body above 200 MB. ALLEGATO_TROPPO_GRANDE = the same ceiling seen from the attachment check, whose first gate it is: the body is not even read. |
| 415 | ALLEGATO_TIPO_NON_AMMESSO | The true type of the attachment, read from the first bytes and not from the file name nor from the declared content-type, is not among the audio formats we serve (closed list: wav, mp3, ogg, flac, webm, mp4, aiff, amr). On the stream (WS /v1/audio/stream) it is the opposite and the same code: the frames must be raw PCM s16le, and a first chunk starting with the signature of a container or of an executable stops here. |
| 422 | REQUEST_INVALID | The request does not have the expected fields — a required field is missing (the file of a transcription) or a value has the wrong type. The body says which fields are missing or malformed, never the values sent (privacy rule 4). |
| 429 | RATE_LIMIT, QUOTA_EXCEEDED, LICENSE_RATE_LIMIT, LICENSE_QUOTA_EXCEEDED, TENANT_RATE_LIMIT, TENANT_QUOTA_EXCEEDED | Too many requests per minute, or the month's seconds are used up (even in the middle of a stream). The TENANT_* ones are the whole company's ceiling (the tenant plan), not this key's: issuing another key does not help. |
| 503 | ENGINE_DOWN, CAPACITY, SHUTTING_DOWN, CONTROLLO_ALLEGATI_NON_DISPONIBILE | CONTROLLO_ALLEGATI_NON_DISPONIBILE = the attachment check is not available (antivirus down, or signatures older than 3 days): while it lasts no file is accepted on any of the three doors, because a silent pass without a check would be worse than a refusal. SHUTTING_DOWN = the frontend is shutting down (a redeploy): not a fault and not a full frontend, it is back in a few seconds, and whoever was already inside receives their final first. Engine unreachable, or too many parallel streams, or the jobs queue is full — by count or by seconds of audio in RAM (the message says how many are free), or too many requests holding audio in flight at once (a request waits its turn, then 503). There is never a silent fallback. |
| 502 | ENGINE_ERROR | The engine rejected the request. |
Error body: {"error":{"code":"…","message":"…"}}.
The quota (and the company plan) also counts the audio that has come in and is not booked yet: an open call, a file being processed, a queued job. Three lines together do not get three times the quota, and GET /v1/usage reports those seconds in in_corso_s and tenant_in_corso_s. The audio block that is refused never reaches the engine and is not billed.
When retrying makes sense, the refusal also says when: the 429s and the 503 CAPACITY carry the Retry-After header (whole seconds) and the same number in error.retry_after_s — on the WebSocket, where headers do not exist, only the field. On the per-minute ceiling it is the instant a slot frees up, on the quota it is the start of next month, on a full frontend it is a hint of a few seconds, on a redeploy (SHUTTING_DOWN) it is the time to shut down and come back. The other refusals do not carry it: retrying would change nothing.
Privacy
Audio travels in memory and is not written to disk; text is not recorded. Of the traffic, only seconds, requests and times remain, per key. No data leaves the European Union.