Transcription
POST /v1/audio/transcriptions transcribes Luganda audio.
curl https://api.openkob.com/v1/audio/transcriptions \ -H "Authorization: Bearer $OPENKOB_API_KEY" \ -F file=@recording.mp3Request
Section titled “Request”Send multipart/form-data with one field:
| Field | Description |
|---|---|
file |
The audio: wav, mp3, m4a, ogg, webm or flac. At most 25 MB and 10 minutes. |
Response
Section titled “Response”{ "text": "...", "duration": 12.4 }duration is the audio length in seconds. Usage is counted in audio seconds, rounded up.
Errors
Section titled “Errors”| HTTP | Code | When |
|---|---|---|
| 400 | invalid_audio |
The file couldn’t be decoded |
| 413 | file_too_large |
The upload is over 25 MB |
| 422 | unsupported_media_type |
The request isn’t multipart, or the file isn’t a supported format |
| 422 | audio_too_long |
The audio is longer than 10 minutes |
| 503 | inference_unavailable, server_busy |
The server is waking up or busy. Retry after Retry-After seconds. |

