Create job
Queue 1 to 50 files for background transcription, with an optional completion webhook.
Upload the files as multipart/form-data, repeating the files field once per file, with the same options as POST /v1/stt. Every file is checked and measured up front, the total cost of every file is held from your credits once, and the job is accepted with 202. Each file is then charged on its own when it succeeds ($0.006 / min on v3, minimum 2¢ per file). An account can have 1 job queued or running at a time by default. Requires an API key with all permission. See the Batch transcription guide.
from wistfareai import WistfareAI
client = WistfareAI() # reads WISTFARE_API_KEY
job = client.speech_to_text.jobs.create(
files=["calls/0915.mp3", "calls/0932.mp3", "calls/1004.mp3"],
model="wistfare-stt-v3-beta",
language="auto",
key_terms=["MTN MoMo", "Irembo"],
webhook_url="https://example.com/hooks/wistfare",
)
print(job.id, job.status, job.webhook_secret)Request
| Field | Type | Default | Description |
|---|---|---|---|
files | file, repeated | required | 1 to 50 audio or video files, up to 1 GB in total. Each obeys the POST /v1/stt limits: 128 MB and 30 minutes. |
model | string | wistfare-stt-v3-beta | As for POST /v1/stt. |
language | string | auto | As for POST /v1/stt. |
timestamps | boolean | true | As for POST /v1/stt. |
diarize | boolean | false | Speaker labels on v3, up to 4 speakers. |
boost v3 | string | — | Key terms, one per line or comma-separated (≤ 200 × 100 characters). |
enhanced v3 | boolean | true | Language-model accuracy mode. |
punctuation v3 | boolean | true | Punctuation and capitals. |
webhook_url | string | — | A public https:// URL that receives one stt.job.completed POST when the job finishes. |
The options apply to every file in the job. Send an Idempotency-Key header so a retried upload can't create the job twice; see Idempotency.
Response
202 Accepted with the job object, plus webhook_secret when you passed a webhook_url:
{
"id": "sttjob_k3n8q2x7d1v9m4b6c0zt",
"status": "queued",
"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": null,
"items": [
{ "id": "sttitem_p4w9c2m7x1k8d3q6v0bn", "name": "0915.mp3", "status": "queued", "audio_seconds": 312.48, "transcription_id": null, "cost_cents": null, "error": null },
{ "id": "sttitem_b7t2r9k4m1x6c8d3w5qz", "name": "0932.mp3", "status": "queued", "audio_seconds": 845.2, "transcription_id": null, "cost_cents": null, "error": null },
{ "id": "sttitem_z5n1q8c3v7m2k9x4d6pt", "name": "1004.mp3", "status": "queued", "audio_seconds": 1210.7, "transcription_id": null, "cost_cents": null, "error": null }
],
"totals": { "items": 3, "queued": 3, "running": 0, "succeeded": 0, "failed": 0, "canceled": 0, "audio_seconds": 0.0, "cost_cents": 0 },
"webhook_secret": "whsec_I2yJucZjZmd_QZ1fWCJR8DX9z3CBL_agig8sszOkKnk"
}Store webhook_secret now
webhook_secret is returned only in this response and signs every webhook delivery for this job. Save it alongside the job id.
Errors
| Status | Code | Meaning |
|---|---|---|
400 | no_files / too_many_files | The job needs 1 to 50 files. |
400 | invalid_webhook_url | webhook_url isn't a public https:// URL. |
400 | unknown_model, unsupported_language, too_many_boost_terms, boost_term_too_long | An option isn't valid, as for POST /v1/stt. |
400 | empty_file, unsupported_audio, audio_too_short, audio_too_long | A file isn't usable. The message starts with the file's name. |
401 | unauthorized | Missing, invalid or revoked API key. |
402 | insufficient_credits / budget_exceeded | The job's total doesn't fit your available balance or budget. Nothing was queued. |
403 | read_only_key / account_suspended | The key is read-only, or spending is suspended on the account. |
409 | idempotency_in_progress | A request with the same Idempotency-Key is still running. |
413 | file_too_large / job_too_large | A file is over 128 MB, or all files together are over 1 GB. |
422 | validation_error / idempotency_mismatch | The files field is missing, or the Idempotency-Key was used with a different request. |
429 | concurrency_limit / rate_limited | The account already has its maximum of active jobs (1 by default), or hit its request rate. Retry after Retry-After seconds. |