Skip to content

Wizper (Whisper v3)

POST/v1/run

Wizper by OpenAI - accurate speech-to-text transcription with AI. Convert audio and video to text with high accuracy, multilingual support, and speaker identification.

Request body

Submit an async generation request. The model field selects the model; other fields are model-specific input parameters.

stringmodelrequired

Model identifier. Set to openai/wizper.

Default: openai/wizper

Optional<string>audio

URL of the audio file to transcribe. Supported formats: mp3, mp4, mpeg, mpga, m4a, wav or webm.

Optional<string>task

Task to perform on the audio file. Either transcribe or translate.

Allowed values: transcribe, translate

Default: transcribe

Optional<string>chunk_level

Level of the chunks to return.

Default: segment

Optional<integer>max_segment_len

Maximum speech segment duration in seconds before splitting.

Range: 10 to 29

Default: 29

Optional<string>language

Language of the audio file. If translate is selected as the task, the audio will be translated to English, regardless of the language selected. If `None` is passed, the language will be automatically detected. This will also increase the inference time.

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

Default: en

Optional<string>version

Version of the model to use. All of the models are the Whisper large variant.

Default: 3

Optional<boolean>merge_chunks

Whether to merge consecutive chunks. When enabled, chunks are merged if their combined duration does not exceed max_segment_len.

Default: true

Response Schema

The submit endpoint returns an accepted generation task. Poll the result endpoint with the returned id for terminal outputs or errors.

Optional<string>error

Error message if the task failed. Empty on success.

stringidrequired

Unique identifier for the generation task.

Optional<string>model

Model ID used for the prediction.

Optional<array>outputs

Array of generated content. Empty when status is not completed.

stringstatusrequired

Status of the task: pending, running, completed, failed, or timeout.

Allowed values: pending, running, completed, failed, timeout

Model capabilities

array<string>capability_tagsrequired

Capabilities declared by the model registry.

Default: speech-to-text

stringexecution_moderequired

Execution mode declared by the model registry.

Default: async