Skip to main content

Response formats

Choose the format with response_format. Every format has punctuation and capitals, and numbers written as digits.

{"text":"He hoped there would be stew for dinner, turnips and carrots...",
"usage":{"type":"duration","seconds":11}}
  • json (the default) returns the text and the audio length charged.
  • verbose_json adds duration, segments and, if you ask with timestamp_granularities[], words with start and end times in seconds.
  • srt and vtt return subtitles built from the word timings.
  • text returns plain text.
  • diarized_json returns segments with speaker labels.

With encrypt_to, any format comes back signed by us and encrypted to your PGP key; see Encrypted results.

Numbers​

Spoken numbers come back as digits:

SpokenWritten
eight point three percent8.3%
two point five billion dollars$2.5 billion
nine hundred million euros€900 million
three hundred and fifty thousand units350,000 units
two hundred twenty two basis points222 basis points
twenty years ago20 years ago
in twenty twenty onein 2021

Whole numbers from 10 up, percentages, dollar and euro amounts, basis points and years are written as digits. Words that do not read as one number stay as they were: one to nine on their own ("one of the two people"), ordinals ("the twenty first century"), fractions ("two thirds"), clock times ("eleven thirty"), digit strings such as phone numbers ("nine one one"), and phrases such as "tens of thousands".

This is on unless you turn it off, and it applies to every format. In words, a number spoken as several words becomes one entry, starting when its first word starts and ending when its last word ends.

To keep the model's own wording, which often spells numbers out, send written_numbers=false (also 0, no or off). Over MCP, the transcribe tools take written_numbers: false.

curl https://api.getloquela.com/v1/audio/transcriptions \
-H "Authorization: Bearer $LOQUELA_API_KEY" \
-F file=@call.mp3 \
-F written_numbers=false

With OpenAI's Python SDK, pass it as an extra field: extra_body={"written_numbers": False}.

Partial results​

If part of a long file cannot be transcribed, you get the rest, the JSON formats include "partial": true, and only the transcribed audio is charged.

Long files​

If a JSON response is not ready within 80 seconds, the server sends the status line early and then spaces until the result arrives (JSON allows leading spaces). This keeps very long files from timing out. Any error after that point arrives in the body as an error object. For files over an hour, prefer json or verbose_json.