Transcribe audio
https://my.neuronai.uz/api/v1/stt/transcribeTranscribes an audio file into text, with timestamped segments.
Set language to auto to have it detected. Billed per second of audio, for its actual length.
Needs an API key with stt:write.
Pricing
per second of audio- Standard
- 1 credit
Headers
Idempotency-KeystringOptionalMakes a retry safe: the same key again returns the original transcription instead of transcribing and charging again. At most 191 characters, scoped to your organization and kept indefinitely, so reuse a key only for the same file.
Request body
multipart/form-dataA multipart form.
filestringRequiredThe audio: MP3, WAV, OGG, FLAC, M4A or WebM, at most 25 MB.
languagestringRequiredThe spoken language, or
autoto have it detected.Allowed values:
autouzkaaruenkktktg
Response
200application/jsonThe transcription under data.
dataobjectRequiredrequest_idstringRequiredFormat: uuid
Headers
Idempotency-ReplayedstringOptional1when the answer is a replay of an earlier request with the sameIdempotency-Key.X-Request-IdstringOptionalIdentifies this request. A JSON body carries it as
request_idtoo; quote it to support.Format: uuid
X-RateLimit-LimitintegerOptionalThe requests a minute the rate limit on this endpoint allows. Sent once the limit has counted the request, so not when the key itself is refused.
X-RateLimit-RemainingintegerOptionalHow many of them are left this minute.
Errors
- 400
The
Idempotency-Keyis over 191 characters:invalid_request. - 401
The API key is missing or not recognized (
invalid_api_key), revoked (api_key_revoked), disabled (api_key_disabled) or expired (api_key_expired). - 402
Not enough balance (
insufficient_balance), or the charge would pass this key's monthly spend limit (spend_limit_exceeded). - 403
The key lacks the permission this endpoint needs (
insufficient_permissions), or the client IP is not in its allowlist (ip_not_allowed). - 409
The
Idempotency-Keywas already used with a different body:idempotency_conflict. - 422
The request failed validation (
invalid_request).error.fieldsnames each invalid field. - 429
A rate or concurrency limit was reached (
rate_limit_exceeded,concurrency_limit_exceeded). Retry afterRetry-Afterseconds. - 500
Transcription failed:
transcription_failed. Nothing is charged. Anything else that fails unexpectedly:server_error. - default
Any other error, in the same shape, such as
server_error(500) orservice_unavailable(503).