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

> ## Agent Instructions
> The Venice API is OpenAI-compatible: use any OpenAI SDK with the base URL `https://api.venice.ai/api/v1` and a Venice API key, or pay per request from a USDC wallet through x402 with no account.
> Read model IDs from `GET /models` or `GET /models/traits` at runtime instead of hardcoding them from memory or from these pages. Models are added and retired often.
> Every model's price is in https://docs.venice.ai/pricing.md. Quote video and audio jobs with `POST /video/quote` or `POST /audio/quote` before you queue them.
> Search these docs from an MCP client at https://docs.venice.ai/mcp. The full agent guide is https://docs.venice.ai/agents.md.

# Speech-to-Text

> Transcribe audio files to text with Venice speech-to-text models via /audio/transcriptions, choosing response formats and segment timestamps.

Speech-to-text transcribes spoken audio into written text. Send an audio file to `/audio/transcriptions`, choose a transcription model, and select the response format you want back. Always send `model`: a request without it returns `400`.

Working with a recording of a conversation? [Meeting Notes with Speech to Text](https://docs.venice.ai/guides/media/meeting-notes.md) goes from an audio file to decisions and action items that cite the second they were agreed, including which models return segment timings and how to handle a transcript that never says who is speaking.

## Basic Usage

```python Python theme={"system"}
import os

import requests

with open("meeting.mp3", "rb") as audio:
    response = requests.post(
        "https://api.venice.ai/api/v1/audio/transcriptions",
        headers={"Authorization": f"Bearer {os.environ['VENICE_API_KEY']}"},
        files={"file": audio},
        data={
            "model": "nvidia/parakeet-tdt-0.6b-v3",
            "response_format": "json",
        },
    )

response.raise_for_status()
print(response.json()["text"])
```

```javascript Node.js theme={"system"}
import { readFile } from "node:fs/promises";

const form = new FormData();
form.append(
  "file",
  new Blob([await readFile("meeting.mp3")], { type: "audio/mpeg" }),
  "meeting.mp3",
);
form.append("model", "nvidia/parakeet-tdt-0.6b-v3");
form.append("response_format", "json");

const response = await fetch("https://api.venice.ai/api/v1/audio/transcriptions", {
  method: "POST",
  headers: { Authorization: `Bearer ${process.env.VENICE_API_KEY}` },
  body: form,
});

if (!response.ok) {
  throw new Error(await response.text());
}

const transcript = await response.json();
console.log(transcript.text);
```

```bash cURL theme={"system"}
curl https://api.venice.ai/api/v1/audio/transcriptions \
  -H "Authorization: Bearer $VENICE_API_KEY" \
  --form file=@meeting.mp3 \
  --form model=nvidia/parakeet-tdt-0.6b-v3 \
  --form response_format=json
```

## Supported Inputs

Supported audio formats are `wav`, `wave`, `flac`, `m4a`, `aac`, `mp4`, `mp3`, `ogg`, `oga`, and `webm`. A file is accepted when either its MIME type or its extension is on that list, and the uploaded bytes must also pass a magic-byte check — renaming a file to a supported extension will not get it through. See the [Speech-to-Text Models](https://docs.venice.ai/models/speech-to-text.md) page for current model support and pricing.

## Response Formats

| Format | Use when |
| - | - |
| `json` | You want a structured response: `text`, plus `duration` and `timestamps` when available. |
| `text` | You want plain text without JSON parsing. |

> [!NOTE]
>
> These are the only two values `response_format` accepts. There is no `srt`, `vtt`, or `verbose_json` option — requesting one returns a `400`. To build subtitles, use `timestamps: true` with `response_format: json` and render the timing data yourself.

## Timestamps

Pass `timestamps=true` to get timing data back alongside the transcript. Support is model-specific, and the granularity differs:

| Model | Granularity |
| - | - |
| `elevenlabs/scribe-v2` | `word` |
| `stt-xai-v1` | `word` |
| `openai/whisper-large-v3` | `segment` |
| `fal-ai/wizper` | `segment` |
| `nvidia/parakeet-tdt-0.6b-v3` | None |

> [!WARNING]
>
> `nvidia/parakeet-tdt-0.6b-v3` accepts `timestamps=true` and then ignores it — you get a response containing only `text`, with no error and no warning. Pick a model from the table above if you need timings, and check that the `timestamps` key exists before reading it.

```bash theme={"system"}
curl https://api.venice.ai/api/v1/audio/transcriptions \
  -H "Authorization: Bearer $VENICE_API_KEY" \
  --form file=@meeting.mp3 \
  --form model=elevenlabs/scribe-v2 \
  --form timestamps=true \
  --form response_format=json
```

```json theme={"system"}
{
  "text": "The quick brown fox jumps over the lazy dog.",
  "duration": 4.099,
  "timestamps": {
    "word": [
      { "word": "The", "start": 0.0, "end": 0.14 },
      { "word": "quick", "start": 0.14, "end": 0.42 }
    ]
  }
}
```

Segment-level models return a `segment` array instead, where each entry is `{ "text": "...", "start": 0.0, "end": 3.2 }`. All times are in seconds.

> [!NOTE]
>
> No Venice transcription model performs speaker diarization, so there is no `speaker` field on any response. A transcript is a single stream of text — speakers can only be attributed when a name is said out loud.

## Production Tips

* Keep audio clear and avoid overlapping speakers when possible.
* Split very long recordings into smaller chunks if your workflow needs lower latency or easier retries.
* Store the original audio path, model ID, and response format with each transcript for auditability.

## Related Resources

* [Audio Transcriptions API](https://docs.venice.ai/api-reference/endpoint/audio/transcriptions.md)
* [Speech-to-Text Models](https://docs.venice.ai/models/speech-to-text.md)
* [Text-to-Speech Guide](https://docs.venice.ai/guides/media/text-to-speech.md)


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