Transcribe audio: POST /v1/audio/transcriptions
Send an audio or video file as a multipart form to https://api.getloquela.com/v1/audio/transcriptions and get its text back. The endpoint takes the same form as OpenAI's endpoint of the same name, so OpenAI's SDKs work once you change the base URL (Switch from OpenAI).
The whole API is also described in OpenAPI 3.1 at api.getloquela.com/openapi.json, for client generators, Postman and coding assistants.
| Field | Required | Meaning |
|---|---|---|
file | yes | The audio: WAV, MP3, M4A, AAC, OGG/Opus, WebM, FLAC, CAF or AIFF. Video files (MP4, MOV, 3GP, MKV, WebM) work too; the first audio track is used, or the loudest of the first four when the first is silent. The type is read from the file's contents, not its name, and other files are refused. On Pro and Business, the file may be PGP-encrypted to your account's key. |
model | no | loquela-remote-beta, or leave it out. For clients that cannot change the model name, whisper-1, gpt-4o-transcribe, gpt-4o-mini-transcribe and gpt-transcribe are accepted and use the same model. gpt-4o-transcribe-diarize is accepted too and turns on speaker labels. |
response_format | no | json (default), text, verbose_json, srt, vtt or diarized_json. See response formats. |
diarize | no | true adds speaker labels. Off unless you ask for it. |
timestamp_granularities[] | no | With verbose_json: word and/or segment. |
written_numbers | no | false keeps numbers as the model wrote them, often in words. Left out or true: numbers as digits (Numbers). |
encrypt_to | no | Return the result signed by us and PGP-encrypted to a public key on your account: its fingerprint, its last 16 characters, or default. Not the key itself. Pro and Business. |
language | no | en (also en-US, en-GB or english) for English. When other languages are on for your account (Languages on your account page): a two-letter code such as es, de or fr (a region is fine: es-MX), or auto to detect it. One language per request. Left out: English, or your account's default language. verbose_json names the language; written_numbers applies to English. Codes: bg, cs, da, de, el, en, es, et, fi, fr, hr, hu, it, lt, lv, mt, nl, pl, pt, ro, ru, sk, sl, sv, uk. |
prompt, temperature, stream and other OpenAI fields | no | Accepted and ignored. stream is ignored too: the whole result comes back as one response, so leave it off. |
Large recordings: uploads are limited to 100 MB, but compressed audio fits far more. About 3 hours of speech fits as a 64 kbps MP3 or Opus file. See limits.
Numbers come back as digits ("8.3%", "$2.5 billion") unless you send written_numbers=false; see Numbers.
The response carries an x-request-id header. Quote it if you contact us; it is the only thing we can look up, since nothing about the audio is kept.
For encrypted audio and results, GET /v1/pgp/key returns your account's PGP key and our signing key (PGP encryption).
When a request fails, the error says what to do and links to its entry in Errors. For problems by symptom, see Troubleshooting.