Endpoints
POST /api/whisper/transcribe/async— create a task and returntask_idimmediatelyPOST /api/whisper/transcribe/sync— create a task and wait for the resultGET /api/whisper/transcribe/status?task_id=...— get task status (and result if ready)
Audio input formats
Two request formats are supported:multipart/form-datawith file fieldaudio- Raw audio bytes in the request body (any
Content-Type)
POST /api/whisper/transcribe/async
Response (JSON):
POST /api/whisper/transcribe/sync
Response (JSON):
GET /api/whisper/transcribe/status?task_id=...
Example response (JSON):
Errors
Error format:- 400: missing audio / missing
task_id(status) / multipart error. - 401: missing/invalid API key.
- 403: the task belongs to a different user.
- 404: task not found.
- 405: method is not allowed.
- 504: sync wait timeout.