Avoz API
Speech to text for Uzbek (and Russian). Base URL: https://avoz.uz/v1
API key
Send the header Authorization: Bearer av_… with every request. Create your key in your profile (sign in with Telegram) and top up your balance there. For test credits, contact us. Keep the key on your server only, never in a browser or mobile app.
Pricing
| Transcription | 1 second of audio = 1 credit |
|---|---|
With timestamps (verbose_json, srt, vtt) | 1 second = 2 credits |
| Recordings without speech, failed requests | free |
| 36,000 credits (10 hours) | UZS 19,000 |
Transcribe a file
POST /v1/audio/transcriptions, multipart/form-data. It is compatible with OpenAI, so the official OpenAI libraries work.
curl https://avoz.uz/v1/audio/transcriptions \
-H "Authorization: Bearer $AVOZ_API_KEY" \
-F file=@ovoz.ogg
file | Audio or video, up to 500 MB and 3 hours. |
|---|---|
script | Optional: latin (default), new for the new Latin alphabet (Ö, Ğ, Ş, Ç), cyrl for Cyrillic. Affects Uzbek text only. |
language | Optional. uz-Cyrl is the same as script=cyrl. The language is detected automatically either way. |
response_format | json (default), text, verbose_json, srt, vtt. |
timestamp_granularities[] | word adds per-word timings to verbose_json. |
model | Any value; ignored. |
Response: {"id": "…", "text": "…", "duration": 12.4, "credits": 12}. Headers include Avoz-Credits and Avoz-Job-Id.
This call waits for the result. If it isn't ready within 50 seconds, you get 202 and a job, which you fetch as shown below. For recordings longer than a few minutes, create a job right away.
Long recordings: jobs
curl https://avoz.uz/v1/transcriptions \
-H "Authorization: Bearer $AVOZ_API_KEY" \
-F file=@maruza.mp3 -F timestamps=true
You get 202 and a job straight away. Then poll GET /v1/transcriptions/{id} every few seconds. status is queued, processing, done or failed. ?format=text|srt|vtt returns the result as a file. DELETE /v1/transcriptions/{id} deletes it.
Balance
GET /v1/balance → {"credits": 1800}
Errors
Response: an HTTP status and {"error": {"code", "message"}}.
| 400 | file_missing, unreadable_file, too_long, invalid_request |
|---|---|
| 401 | unauthorized — missing or invalid key |
| 402 | insufficient_credits — the message says how many are needed |
| 404 | not_found |
| 413 | file_too_large |
| 429 | too_many_jobs — at most 20 queued jobs per account |