Generate subtitles (.srt and .vtt) from audio files using OpenAI's Whisper models.

  • Public
  • 4.4K runs

Run whisper-subtitles with an API

Use one of our client libraries to get started quickly. Clicking on a library will take you to the Playground tab where you can tweak different inputs, see the results, and copy the corresponding code to use in your own project.

Input schema

The fields you can use to run this model with an API. If you don't give a value for a field its default value will be used.

Field Type Default value Description
Audio file to generate subtitles for.
string (enum)


tiny.en, tiny, base.en, base, small.en, small, medium.en, medium, large-v1, large-v2

Name of the Whisper model to use.
string (enum)


en, zh, de, es, ru, ko, fr, ja, pt, tr, pl, ca, nl, ar, sv, it, id, hi, fi, vi, he, uk, el, ms, cs, ro, da, hu, ta, no, th, ur, hr, bg, lt, la, mi, ml, cy, sk, te, fa, lv, bn, sr, az, sl, kn, et, mk, br, eu, is, hy, ne, mn, bs, kk, sq, sw, gl, mr, pa, si, km, sn, yo, so, af, oc, ka, be, tg, sd, gu, am, yi, lo, uz, fo, ht, ps, tk, nn, mt, sa, lb, my, bo, tl, mg, as, tt, haw, ln, ha, ba, jw, su

Language of the audio.
Enable the voice activity detection (VAD) to filter out parts of the audio without speech.

Output schema

The shape of the response you’ll get when you run this model with an API.

{'properties': {'preview': {'title': 'Preview', 'type': 'string'},
                'srt_file': {'format': 'uri',
                             'title': 'Srt File',
                             'type': 'string'},
                'vtt_file': {'format': 'uri',
                             'title': 'Vtt File',
                             'type': 'string'}},
 'required': ['preview', 'srt_file', 'vtt_file'],
 'title': 'ModelOutput',
 'type': 'object'}