OpenAI API speech to text endpoints {#ovmsdocsrestapis2t}

May 27, 2026 · View on GitHub

API Reference

OpenVINO Model Server includes now the audio/transcriptions and audio/translations endpoints using OpenAI API. It is used to execute speech to text task with OpenVINO GenAI pipeline. Please see the OpenAI API Transcription Reference and OpenAI API Translation Reference for more information on the API.

The are two endpoints exposed:

http://server_name:port/v3/audio/transcriptions http://server_name:port/v3/audio/translations

Request body must be in multipart/form-data format.

Example request

Transcription

curl -X POST http://localhost:8000/v3/audio/transcriptions \
  -F "model=OpenVINO/whisper-large-v3-fp16-ov" \
  -F "file=@speech_english.wav"

Translations

curl -X POST http://localhost:8000/v3/audio/translations \
  -F "model=OpenVINO/whisper-large-v3-fp16-ov" \
  -F "file=@speech_spanish.wav"

Example response

{"text":"..."}

Request

Transcription

ParamOpenVINO Model ServerOpenAI /audio/transcriptions APITypeDescription
modelstring (required)Name of the model to use. Note: This can also be omitted to fall back to URI based routing. Read more on routing topic TODO
file⚠️file (required)The audio file object to transcribe, in one of these formats: flac, mp3, mp4, mpeg, mpga, m4a, ogg, wav, or webm. (⚠️Note: For now supported formats are mp3 and wav)
languagestringThe language of the input audio in ISO-639-1. Providing language for multilanguage model may improve accuracy and performance.
chunking_strategy"auto" or objectControls how the audio is cut into chunks.
includearrayAdditional information to include in the transcription response.
known_speaker_namesarrayList of speaker names corresponding to the audio samples
known_speaker_referencesarrayOptional list of audio samples with known speaker references matching known_speaker_names
promptstringAn optional text to guide the model's style or continue a previous audio segment.
response_formatstringThe format of the output.
streambooleanGenerate the response in streaming mode. Note: Streaming is not supported for translations endpoint.
temperaturefloat (default: 1.0)The sampling temperature, cannot be negative.
timestamp_granularities⚠️arrayThe timestamp granularities to populate for this transcription. Supported values: "word" and "segment" (⚠️Note: To enable word timestamps enable_word_timestamps: true need to be set in graph.pbtxt)

Translation

ParamOpenVINO Model ServerOpenAI /audio/transcriptions APITypeDescription
modelstring (required)Name of the model to use. Note: This can also be omitted to fall back to URI based routing. Read more on routing topic TODO
file⚠️file (required)The audio file object to transcribe, in one of these formats: flac, mp3, mp4, mpeg, mpga, m4a, ogg, wav, or webm. (⚠️Note: For now supported formats are mp3 and wav)
promptstringAn optional text to guide the model's style or continue a previous audio segment.
response_formatstringThe format of the output.
temperaturefloat (default: 1.0)The sampling temperature, cannot be negative.

Response

Transcription

ParamOpenVINO Model ServerOpenAI /audio/transcriptions APITypeDescription
textstringThe transcribed text.
logprobsarrayThe log probabilities of the tokens in the transcription.
usageobjectToken usage statistics for the request.

Translation

ParamOpenVINO Model ServerOpenAI /audio/transcriptions APITypeDescription
textstringThe translated text.

Error handling

Endpoint can raise an error related to incorrect request in the following conditions:

  • Incorrect format of any of the fields based on the schema

References

End to end demo with transcription endpoint End to end demo with translation endpoint

Code snippets

Speech Recognition calculator configuration and limitations