Scrub API
POST/v1/tools/convertpriced

Convert a transcript

Writes a transcript as subtitles (SRT or VTT), text, Markdown, HTML or JSON, grouped by caption, sentence, paragraph or word, from a transcription or a transcript or subtitle file; the whole of it, or a stretch timed from its start.

Takes transcript_file (file). Returns file.

Free.

Afterwards, change as or by with adjust; quote_adjustment prices the change.

Fields

FieldTypeDefaultWhat it is
transcript_filestringRequiredA file_id from create_upload, accepting application/vnd.scrub.transcript+json, application/json, application/x-subrip, text/vtt, text/plain, up to 16 MB. Get one with create_upload. Or the job_id of a finished job that made a file of this kind: that file is used. Pass the job_id rather than retyping its result. Without one, transcribe (Transcribe a video) makes one, or transcribe_audio (Transcribe audio) makes one: run it first and pass its job_id here.
asone ofsrtHow it is written. srt and vtt are subtitle files; markdown and html carry a timestamp on each part.
textmarkdownhtmljsonsrtvtt
byone ofautoHow words are grouped. auto is caption for srt and vtt, paragraph for text, markdown and html, and word for json. Captions are at most two lines of 42 characters and seven seconds.
autocaptionsentenceparagraphword
startnumber0Seconds into the transcript where the stretch begins; its words are timed from here.
endnumber0Seconds into the transcript where the stretch ends; at 0 it runs to the end.

Call it

Request

curl -X POST https://app.scrub.app/v1/tools/convert \
  -H "Authorization: Bearer $SCRUB_KEY" \
  -H "Content-Type: application/json" \
  -d '{"transcript_file":"w/…/file_id"}'

Answer

{
  "ok": true,
  "result": {
    "job_id": "job_…",
    "status": "running",
    "price_usd": "$…"
  }
}

It starts at once and answers running. Ask job_status with the job_id for its result. quote gives its price first, free.

Every call can also answer an error: what comes back. Try it with your key from Account.