New Tool Radar

Local Speech & Transcription

How to Transcribe Audio With vLLM’s /v1/audio/transcriptions Endpoint

Serve an automatic speech recognition model with vLLM and send an audio file to its /v1/audio/transcriptions endpoint.

Schematic diagram with four steps: serve an ASR model, install the audio extras, POST the audio file to /v1/audio/transcriptions, then read the transcript text.

vLLM’s server also implements the OpenAI Transcriptions API at /v1/audio/transcriptions, for automatic speech recognition models. That means one vLLM server can serve both your chat model and, with the right model loaded, turn audio into text.

Serve an ASR model and send the audio file

Start vLLM with an automatic speech recognition model — the docs say the transcriptions endpoint only applies to ASR models, so a chat model will not work here. Then POST the audio file to http://localhost:8000/v1/audio/transcriptions as multipart form data with the file and model fields, in the same shape as OpenAI’s audio API. The reply carries the transcript text.

vllm serve <asr-model-name>
curl http://localhost:8000/v1/audio/transcriptions \
  -F [email protected] -F model=<asr-model-name>

You need the audio extra dependencies to use this endpoint: the docs say to install with the audio extras, pip install vllm. The matching Translation API at /v1/audio/translations works the same way for translating audio into English.

Try it: four checks

Check What you should see If you do not see it
ASR model served vllm serve starts with the ASR model A chat model cannot transcribe
Audio extra installed pip install vllm completed The endpoint needs the audio dependencies
POST accepted The transcriptions endpoint returns text Check the file field name and the model name
Transcript readable The reply text matches the recording Try a short clear recording first

Expected result. We checked the vLLM OpenAI-Compatible Server docs, which list the Transcriptions API at /v1/audio/transcriptions as applicable only to ASR models and note the vllm install. We did not run vLLM on this machine.

Limits

This guide covers the transcriptions endpoint only. Which ASR models vLLM supports, and their language coverage, are separate choices. We did not test any call ourselves.

Sources

See all