> ## Documentation Index
> Fetch the complete documentation index at: https://docs.deepinfra.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Whisper Speech Recognition

> Transcribe audio to text with OpenAI Whisper on DeepInfra.

[Whisper](https://github.com/openai/whisper) is OpenAI's speech recognition model. Given an audio file, it produces transcribed text with per-sentence timestamps. DeepInfra hosts both Whisper and several other speech recognition models, all reachable through the same API.

Browse [all speech recognition models](https://deepinfra.com/models/automatic-speech-recognition).

## Models

| Model | Notes |
| - | - |
| `openai/whisper-large-v3` | Best accuracy |
| `openai/whisper-large-v3-turbo` | Faster, near-large-v3 quality |
| `Qwen/Qwen3-ASR-1.7B` | Small and fast |
| `Qwen/Qwen3-ASR-0.6B` | Smallest |
| `nvidia/Nemotron-3.5-ASR-Streaming-Multilingual-0.6b` | Streaming, multilingual |
| `mistralai/Voxtral-Small-24B-2507` | Audio-understanding alternative |
| `mistralai/Voxtral-Mini-3B-2507` | Smaller audio-understanding alternative |

Whisper produces per-sentence timestamp segmentation.

## Example

```javascript JavaScript theme={null}
import { AutomaticSpeechRecognition } from "deepinfra";
import path from "path";
import { fileURLToPath } from "url";

const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);

const client = new AutomaticSpeechRecognition(
  "openai/whisper-large-v3",
  process.env.DEEPINFRA_API_KEY
);

const response = await client.generate({
  audio: path.join(__dirname, "audio.mp3"),
});

console.log(response.text);
```

```bash cURL theme={null}
curl -X POST \
    -H "Authorization: Bearer $DEEPINFRA_API_KEY" \
    -F audio=@audio.mp3 \
    'https://api.deepinfra.com/v1/inference/openai/whisper-large-v3'
```

## Supported formats

* `mp3`
* `wav`

## Additional parameters

Each model supports parameters like `language`, `task` (transcribe vs. translate), and more. Check the model's documentation page for the full list:

* [openai/whisper-large-v3](https://deepinfra.com/openai/whisper-large-v3)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.