Speech to Text
Get job
Retrieve a batch transcription job with the status, transcript id and cost of every file.
GEThttps://api.voice.wistfare.com/v1/stt/jobs/{id}
Returns the current state of a job. Poll it until status is completed, partial, failed or canceled (the SDKs' jobs.wait does this and raises WaitTimeoutError on timeout), or use a webhook instead. Read-only keys can call it.
from wistfareai import WistfareAI
client = WistfareAI() # reads WISTFARE_API_KEY
job = client.speech_to_text.jobs.get("sttjob_k3n8q2x7d1v9m4b6c0zt")
print(job.status, job.totals.succeeded, "of", job.totals.items)
# Or poll until the job finishes (seconds):
job = client.speech_to_text.jobs.wait("sttjob_k3n8q2x7d1v9m4b6c0zt", poll_interval=5, timeout=3600)Path parameters
| Parameter | Type | Description |
|---|---|---|
id | string | The job id, sttjob_…. |
The job object
200 OK. This job finished with two transcripts and one failure:
{
"id": "sttjob_k3n8q2x7d1v9m4b6c0zt",
"status": "partial",
"options": {
"model": "wistfare-stt-v3-beta",
"language": "auto",
"timestamps": true,
"diarize": false,
"boost": ["MTN MoMo", "Irembo"],
"enhanced": true,
"punctuation": true
},
"webhook_url": "https://example.com/hooks/wistfare",
"created_at": "2026-10-11T09:40:00Z",
"completed_at": "2026-10-11T09:46:31Z",
"items": [
{ "id": "sttitem_p4w9c2m7x1k8d3q6v0bn", "name": "0915.mp3", "status": "succeeded", "audio_seconds": 312.48, "transcription_id": "tr_h2k7m4q9x1c6v3b8n5dz", "cost_cents": 4, "error": null },
{ "id": "sttitem_b7t2r9k4m1x6c8d3w5qz", "name": "0932.mp3", "status": "succeeded", "audio_seconds": 845.2, "transcription_id": "tr_r8c3x6m1q9k4v7b2n5wt", "cost_cents": 9, "error": null },
{
"id": "sttitem_z5n1q8c3v7m2k9x4d6pt",
"name": "1004.mp3",
"status": "failed",
"audio_seconds": 1210.7,
"transcription_id": null,
"cost_cents": null,
"error": { "code": "transcription_timeout", "message": "Transcription took too long. No credits were charged. Try a shorter recording." }
}
],
"totals": { "items": 3, "queued": 0, "running": 0, "succeeded": 2, "failed": 1, "canceled": 0, "audio_seconds": 1157.68, "cost_cents": 13 }
}| Field | Type | Description |
|---|---|---|
id | string | Job id, sttjob_…. |
status | string | queued, running, completed (all files succeeded), partial (some failed), failed (none succeeded) or canceled. |
options | object | The options every file is transcribed with: model, language, timestamps, diarize, boost, enhanced, punctuation. |
webhook_url | string | null | Where the completion webhook goes. |
created_at | string | ISO-8601 UTC. |
completed_at | string | null | When the job reached a final status. |
items[] | array | One entry per file, in upload order. |
items[].id | string | Item id, sttitem_…. |
items[].name | string | The uploaded file name. |
items[].status | string | queued, running, succeeded, failed or canceled. |
items[].audio_seconds | number | The file's duration. |
items[].transcription_id | string | null | Set when succeeded. Fetch the transcript with GET /v1/stt/transcriptions/{id}. |
items[].cost_cents | integer | null | What the file cost, when succeeded. |
items[].error | object | null | {code, message} when failed, e.g. transcription_failed, transcription_timeout, transcription_unavailable or insufficient_credits. Failed files are never charged. |
totals | object | items and per-status counts (queued, running, succeeded, failed, canceled), plus audio_seconds and cost_cents of the succeeded files. |
Errors
| Status | Code | Meaning |
|---|---|---|
401 | unauthorized | Missing, invalid or revoked API key. |
404 | not_found | No job with this id in the key's project. |