Skip to Content
Konduit docs

Transcriptions

Speech to text, which models serve it, and what a second of audio costs.

POST /v1/audio/transcriptions is OpenAI's transcription API. Upload a recording, get back its text, from a European provider konduit's routing chose for it.

No transcription model is listed yet

The endpoint is live, but konduit's catalog lists no transcription model yet, so until it does, a request here is refused before any provider is asked. Once one is listed, GET /v1/models shows it with modality transcription; the examples below take the model from there.

TRANSCRIPTION_MODEL=$(curl -s https://api.konduit.eu/v1/models \
  -H "Authorization: Bearer $KONDUIT_API_KEY" |
  jq -r 'first(.data[] | select(.modality == "transcription") | .id)')

curl https://api.konduit.eu/v1/audio/transcriptions \
  -H "Authorization: Bearer $KONDUIT_API_KEY" \
  -F file=@meeting.wav \
  -F model="$TRANSCRIPTION_MODEL" \
  -F 'provider={"countries":["FR"]}'

The response is the provider's own, relayed unchanged: the text, and a usage object stating the seconds of audio it was billed for. The Konduit-Provider and Konduit-Deployment headers say who served it.

Which models

Every entry in GET /v1/models whose modality is transcription — none yet, as the note at the top says. model resolves exactly as it does on a chat completion — a model, a model at a provider, or one deployment id — and so does the provider sovereignty policy; see Routing and sovereignty.

A transcription model sent to chat completions or embeddings, or a chat model sent here, is refused with 400 and model_does_not_support_endpoint, whose message names the endpoint to use. Nothing is reserved and no provider is asked.

What konduit forwards

The request is multipart/form-data, as OpenAI's is. konduit reads four of its fields — model, provider, stream and response_format — and forwards every other one (file, language, prompt, temperature, timestamp_granularities[], whatever a provider adds) in its original order, its bytes unchanged. model becomes the provider's own name for the deployment and the provider policy is removed, as on the JSON endpoints.

konduit rebuilds the form's framing rather than patching it: a new boundary, and each field's header written from the name, file name and content type it read. That is how konduit and the provider are guaranteed to read the same fields, and it is also why konduit refuses, with 400, a form it could read in more than one way: a field without a form-data name, a Content-Transfer-Encoding, a filename* in a character set other than UTF-8, or model, provider, stream or response_format sent twice, in another letter case, or as a file.

The policy is one field holding the JSON object. A policy spread over provider[...] fields, the way an SDK flattens a dictionary into a form, is refused with invalid_policy rather than half read.

Formats and streaming

konduit relays response_format json (the default) and verbose_json, which adds language and segments. text, srt, vtt and every other format are refused with 400 before anything is reserved, and so is stream set to anything but false: every answer konduit relays is one JSON document it can bill from. A client that wants subtitles builds them from verbose_json's segments.

Size and time

A request, the audio file and every other field together, may be 20 MiB, the limit on every request body; keep the file a little under that. A transcription may take ten minutes, every fallback to another provider included, unless the installation configures another bound.

A client that hangs up does not cancel the provider, which transcribes, and bills, the recording anyway. konduit keeps reading its answer for up to a minute after you have gone and bills it from the provider's usage like any other request. A transcription that takes longer than that after the hang-up is recorded as abandoned and not charged.

What it costs

A transcription is billed per second of audio, from the provider's own usage.seconds; a fraction counts as a whole second. The price is the deployment's pricing.input in GET /v1/models, whose pricing.unit is micro_eur_per_audio_hour — integer micro-EUR per hour of audio — and whose pricing.output is null. The charge is the seconds times that price, divided by 3600 and rounded up to a whole micro-EUR: at 180000 micro-EUR an hour, a 4-second clip costs 200 micro-EUR.

Before the request runs, konduit reserves the per-request ceiling, the most any one request may reserve: an upload's size does not say how long its audio runs, so nothing smaller is safe. The reservation is settled down to the charge when the answer arrives. A 402 on this endpoint means your available credit did not cover that ceiling, however short the clip.

A response without a usage konduit can bill from is recorded for reconciliation rather than estimated; see Errors. A transcription counts against a key's requests per minute and not against its tokens per minute, because it consumes no tokens.

Scope

A key limited with scopes needs audio:write for this endpoint; chat:write and embeddings:write do not include it. A key with no scopes can call everything; see Authentication.

On this page