Skip to content

Transcribe audio

POSThttps://my.neuronai.uz/api/v1/stt/transcribe

Transcribes 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-KeystringOptional

    Makes 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-data

A multipart form.

  • filestringRequired

    The audio: MP3, WAV, OGG, FLAC, M4A or WebM, at most 25 MB.

  • languagestringRequired

    The spoken language, or auto to have it detected.

    Allowed values:autouzkaaruenkktktg

Response

200application/json

The transcription under data.

  • dataobjectRequired
  • request_idstringRequired

    Format: uuid

Headers

  • Idempotency-ReplayedstringOptional

    1 when the answer is a replay of an earlier request with the same Idempotency-Key.

  • X-Request-IdstringOptional

    Identifies this request. A JSON body carries it as request_id too; quote it to support.

    Format: uuid

  • X-RateLimit-LimitintegerOptional

    The 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-RemainingintegerOptional

    How many of them are left this minute.

Errors

  • 400

    The Idempotency-Key is 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-Key was already used with a different body: idempotency_conflict.

  • 422

    The request failed validation (invalid_request). error.fields names each invalid field.

  • 429

    A rate or concurrency limit was reached (rate_limit_exceeded, concurrency_limit_exceeded). Retry after Retry-After seconds.

  • 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) or service_unavailable (503).