Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Create transcription

Transcribe an audio file into text, following the OpenAI Audio API wire format. The audio is uploaded as multipart/form-data.

response_format selects how the transcript comes back: json wraps it in an object, text returns it as a plain text/plain body, and verbose_json adds the duration and per-segment timings. Whether verbose_json is available at all is model-specific, and it is rejected with a 400 for models that cannot produce timings.

post
Authorizations
AuthorizationstringRequired

Please provide header value as 'Bearer ' and don't forget to add 'Bearer' HTTP Authorization Scheme before the token.

Body

Request payload for transcribing audio. Sent as multipart/form-data, with the audio itself as the binary file part file.

modelstring · min: 1 · max: 128Required

Model identifier to use for transcription.

Example: openai/whisper-large-v3Pattern: ^[a-zA-Z0-9._/-]+$
filestring · binaryRequired

The audio to transcribe, uploaded as a file part, of at most 15 MiB. A larger file is rejected with a 413. FLAC, MP3, MP4, MPEG, M4A, Ogg, WAV and WebM are accepted.

languagestringOptional

Language of the input audio as an ISO-639-1 code, such as en or de. Supplying it improves accuracy and latency. Omit it to have the language detected.

Example: en
promptstringOptional

Text to guide the transcript's style, or to supply vocabulary the audio is likely to contain. How much it changes the result is model-specific.

response_formatstring · enumOptional

Format of the transcript. json wraps the text in an object, text returns it as a plain body, and verbose_json adds the duration and per-segment timings. verbose_json is model-specific and is rejected with a 400 for models that cannot produce timings.

Default: jsonPossible values:
temperaturenumber · double · max: 1Optional

Sampling temperature. Higher values make the transcript more varied, lower values more deterministic.

Default: 0
seedintegerOptional

Seed for deterministic sampling. Repeated requests with the same seed and parameters return the same transcript on a best-effort basis. It only has an effect when temperature is above 0: at the default of 0 decoding is greedy and already deterministic.

This is an extension, not part of the OpenAI Audio API. OpenAI SDK clients send it through extra_body (for example extra_body={"seed": 42} in Python), which for this multipart endpoint arrives as the form field seed.

streambooleanOptional

If true, stream the transcript as Server-Sent Events. Not supported: a request with stream set to true is rejected with a 400. Omit the field or set it to false.

Default: false
Responses
200

Successful operation. The body is JSON unless response_format is text, in which case it is the transcript on its own as text/plain.

post/v1/audio/transcriptions
POST /v1/audio/transcriptions HTTP/1.1
Host: openai.inference.de-txl.ionos.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: multipart/form-data
Accept: */*
Content-Length: 148

{
  "model": "openai/whisper-large-v3",
  "file": "binary",
  "language": "en",
  "prompt": "text",
  "response_format": "json",
  "temperature": 0,
  "seed": 1,
  "stream": false
}
{
  "text": "The quick brown fox jumps over the lazy dog.",
  "usage": {
    "type": "duration",
    "seconds": 8
  }
}

Last updated

Was this helpful?