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

# API Reference

> Text-to-Speech, Speech-to-Text, and the rest of the Deepdub API

Deepdub has APIs in both directions. Text-to-Speech turns text into speech. Speech-to-Text turns live speech into text. Both accept the free trial key `dd-00000000000000000000000065c9cbfe`, and each has a Try it on its page.

## Text-to-Speech

> [card] [REST](https://docs.deepdub.ai/api-reference/tts/generate-and-stream-tts-audio.md)
>
> One HTTP request, audio streamed back in the response.

> [card] [Streaming Out](https://docs.deepdub.ai/api-reference/websocket/overview.md)
>
> Send one complete text over a WebSocket and stream the audio back.

> [card] [Streaming In and Out](https://docs.deepdub.ai/api-reference/websocket/streaming.md)
>
> Stream text in as an LLM produces it and stream the audio back.

## Speech-to-Text

> [card] [Real-time speech-to-text](https://docs.deepdub.ai/api-reference/stt/realtime.md)
>
> Stream Hebrew or English audio over a WebSocket and receive each word as it is recognized. Try it from your microphone.

## Endpoints

| API | Protocol | Endpoint | Auth |
| - | - | - | - |
| Text-to-Speech | HTTPS | `https://restapi.deepdub.ai/api/v1/tts` | `x-api-key` header |
| Text-to-Speech Streaming Out | WSS | `wss://wsapi.deepdub.ai/open` | `x-api-key` header |
| Text-to-Speech Streaming In and Out | WSS | `wss://wss.deepdub.ai/ws` | `x-api-key` header |
| Speech-to-Text | WSS | `wss://wsgw.deepdub.ai/transcribe-websocket` | `Authorization: Bearer` header, or `?x-api-key=` in a browser |

Text-to-Speech also runs in the EU: insert `.eu` before `.deepdub.ai` in the host. See [Authentication](https://docs.deepdub.ai/authentication.md) for keys and regions.

## More APIs

> [card] [Voice](https://docs.deepdub.ai/api-reference/voice/get-voice-prompts.md)
>
> Upload, list, update, and delete voice prompts.

> [card] [Gender Detection](https://docs.deepdub.ai/api-reference/gender-detection/classify-speaker-gender.md)
>
> Classify the speaker gender of an audio clip.

> [card] [Usage](https://docs.deepdub.ai/api-reference/usage/get-daily-concurrent-usage.md)
>
> Daily concurrency and usage by model.

> [card] [Live Streaming (Beta)](https://docs.deepdub.ai/api-reference/live/overview.md)
>
> Live captions and dubbing on broadcast streams.


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