# Migrating to ВТекст 38

ВТекст 38 (`vtext38.ru`) is a **Deepgram-compatible** Russian speech-to-text API for
customers who need the same integration shape, but lawful under **152-FZ**, billed in **roubles**,
with servers on **Russian soil**, and quality tuned for Russian.

It is also compatible with the OpenAI Audio transcriptions surface for clients already on that SDK.

## Deepgram (one-line change)

1. Set the SDK base URL to `https://vtext38.ru/api`.
2. Put your ВТекст 38 API key where the Deepgram key was.
3. Keep `Authorization: Token …` (do not switch to Bearer).

```python
from deepgram import DeepgramClient, DeepgramClientOptions

client = DeepgramClient(
    "YOUR_KEY",
    DeepgramClientOptions(url="https://vtext38.ru/api"),
)
```

## OpenAI Audio

1. Set `base_url` / `baseURL` to `https://vtext38.ru/api/v1` (include `/v1`).
2. Use your ВТекст 38 key as `api_key`.
3. Prefer `Authorization: Bearer`.

## Read before shipping

- No `speaker_confidence` in Deepgram-shaped responses.
- Numbers stay spelled out even with `smart_format`.
- Synchronous requests hold the connection for at most ten minutes of processing.
- Russian only.
- Docs-only MCP (how-to only, no transcription tools): `https://vtext38.ru/mcp`
- How an agent should call the API with curl: `https://vtext38.ru/llms/call-api.md`

## Further reading

- https://vtext38.ru/llms.txt
- https://vtext38.ru/llms/call-api.md
- https://vtext38.ru/llms/deepgram.md
- https://vtext38.ru/llms/openai.md
- https://vtext38.ru/openapi.json
- https://vtext38.ru/api
