Quickstart
Get your first transcription running in under 5 minutes.
Create an API key
Go to the API Keys page in your dashboard and create a new key. Copy it, because you'll only see it once.
Your key looks like: sk_live_12ab34cd...
Add balance
Transcription costs $0.20/hour of audio, billed per second. Add funds on the Billing page. Minimum deposit is $5.00 (~25 hours of audio).
Transcribe
Send a URL and we'll download, validate, and transcribe it. Supports direct file links, Google Drive, Dropbox, OneDrive and Yandex Disk sharing links, and public YouTube, TikTok, Instagram, Facebook, X, Snapchat and Douyin posts. A post that can't be transcribed (private, deleted, no video) is refused at once with a 400, and nothing is charged.
resp = requests.post(f"{BASE}/transcribe",headers={"Authorization": API_KEY},json={"url": "https://example.com/podcast.mp3","diarize": True})job = resp.json()print(f"Transcription ID: {job['id']}")
You'll get back a transcription ID immediately. The file downloads and processes in the background.
Optionally enable speaker diarization with diarize: true, and wire up automatic webhooks via webhook_url. If you know how many speakers are on the recording, pass speaker_count along with diarize; providing it noticeably improves accuracy versus letting the model auto-detect. Word-level timestamps (align) are on by default; pass align: false to opt out. When diarize: true, alignment is always enabled (it's required for speaker assignment) regardless of what you pass.
Pass language when you know it. If you omit it, the model auto-detects, which usually works but can misclassify short clips, code-switched audio, or files that start with music. Passing the ISO code (e.g. "language": "en") is both faster and more accurate. See the language parameter notes for details.
Get the result
Poll until the status is completed or failed. Typical transcriptions complete in under a minute.
import timewhile True:resp = requests.get(f"{BASE}/transcribe/{job['id']}",headers={"Authorization": API_KEY})result = resp.json()if result["status"] == "completed":print(result["result"]["full_transcript"])breakelif result["status"] == "failed":print("Error:", result["error"])breaktime.sleep(5)
The response includes the full transcript, timestamped utterances, word-level timestamps (alignment is on by default), and speaker labels when diarization is enabled:
{"id": "txn-456","status": "completed","audio_duration_seconds": 120,"cost_cents": 0.666667,"result": {"full_transcript": "Hello, thanks for joining the call today...","language": "en","duration_seconds": 120,"speakers": ["SPEAKER 1", "SPEAKER 2"],"utterances": [{"start": 0.5,"end": 3.2,"text": "Hello, thanks for joining the call today.","speaker": "SPEAKER 1","confidence": 0.95,"words": [{ "word": "Hello,", "start": 0.5, "end": 0.9, "confidence": 0.98, "speaker": "SPEAKER 1" },{ "word": "thanks", "start": 1.0, "end": 1.3, "confidence": 0.97, "speaker": "SPEAKER 1" },{ "word": "for", "start": 1.3, "end": 1.5, "confidence": 0.99, "speaker": "SPEAKER 1" },{ "word": "joining", "start": 1.5, "end": 1.9, "confidence": 0.96, "speaker": "SPEAKER 1" },{ "word": "the", "start": 2.0, "end": 2.1, "confidence": 0.99, "speaker": "SPEAKER 1" },{ "word": "call", "start": 2.1, "end": 2.5, "confidence": 0.95, "speaker": "SPEAKER 1" },{ "word": "today.", "start": 2.6, "end": 3.2, "confidence": 0.94, "speaker": "SPEAKER 1" }]}]}}
Need to upload your own files?
If you don't have a public URL, you can upload files directly using the file upload flow in the API Reference.
When something goes wrong
Failures arrive on two different paths, and a client that only handles one of them will silently lose jobs.
Synchronous errors come back on the call you just made, as JSON with a stable code:
{"error": {"code": "ZERO_BALANCE","message": "No balance found. Please deposit funds first.","deposit_url": "https://platform.scriptivox.com/billing","docs_url": "https://www.scriptivox.com/errors/api-no-balance","help_id": "api-no-balance","request_id": "req_8f3a1c2b9d4e6f70"}}
docs_url opens the page that explains that exact error and what to do; help_id is its id (Help pages).
The ones worth handling by name on submit are INVALID_API_KEY (401: the key is missing, malformed or revoked), INSUFFICIENT_BALANCE and ZERO_BALANCE (402: top up on the Billing page), INVALID_REQUEST (400: the body is wrong; the message says how), and RATE_LIMIT_EXCEEDED (429: wait for the seconds in Retry-After, then retry).
Asynchronous errors do not appear on submit at all. POST /v1/transcribe returns status: "created" before the file has been fetched, so anything about the file itself (an unreachable URL, a permission-gated Drive link, a corrupt container, a codec we cannot decode, a file over 5 GB or longer than 10 hours, or a recording with no audible speech) surfaces later on the poll:
{"id": "txn-456","status": "failed","error": {"code": "URL_NOT_ACCESSIBLE","message": "Google Drive could not find this file, or it is not shared with \"Anyone with the link\". Share it with \"Anyone with the link\" and try again, or upload the file.","docs_url": "https://www.scriptivox.com/errors/drive-not-shared","help_id": "drive-not-shared"}}
The docs_url of a failed job is found from that job's own failure, so it is often finer than the code: here the page for a Google Drive file that is not shared, not the general page of URL_NOT_ACCESSIBLE.
Treat status: "failed" as a first-class outcome next to "completed". Both are terminal; neither will change if you keep polling. Failed and cancelled jobs cost nothing (the reserved balance is released), so a retry after fixing the input is free.
Retrying safely
Pass Idempotency-Key on POST /v1/transcribe and POST /v1/upload. If the same key arrives again within 24 hours you get the original job back instead of a second one, which makes a network timeout safe to retry. Without it, a retried submit is a second billable job.
Polling without hammering
Poll no faster than once every few seconds: GET /v1/transcribe/{id} allows 200 requests per minute per key, and every response tells you where you stand:
RateLimit-Policy: "endpoint";q=200;w=60, "ip";q=300;w=60RateLimit: "endpoint";r=194;t=41
If you would rather not poll at all, register a webhook_url on the submit call and we will POST the finished transcription to you, HMAC-signed. See Webhooks.
Supported input
26 file formats are accepted (MP3, WAV, FLAC, M4A, AAC, OGG, Opus, MP4, MOV, MKV, WebM among them), from 1 second to 10 hours long and at most 5 GB. Public URLs work, including Google Drive, Dropbox and OneDrive share links, as long as the link does not require a sign-in. 119 languages are supported; pass language whenever you know it.