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

# Use the API without an SDK

> Call the KugelAudio API without an SDK from any language: API keys and the EU endpoint, sending text safely, and tools for testing WebSocket connections.

Everything our SDKs do goes over the public HTTP and WebSocket API, so you can
call it directly from any language. The base URL, authentication, error shape,
and the list of endpoints are on the [API Reference](/api-reference/introduction)
landing page; this page covers what you need on top of that when you have no SDK.

## Keys and the EU endpoint

Send the key as `Authorization: Bearer YOUR_API_KEY` or `X-API-Key` in
HTTP and WebSocket handshake headers (see [Authentication](/api-reference/authentication)).
The `eu-` key prefix is understood only by the SDKs: for the EU endpoint, call
`https://api.eu.elbic.com` and send the key without the prefix.

## Sending text safely

<Warning>
  Encode JSON as UTF-8. For predictable normalization of short or ambiguous
  text, set `language` explicitly. Unicode NFC normalization can also make
  equivalent composed and decomposed input consistent before it reaches the
  API.
</Warning>

## Tooling for WebSockets

The streaming endpoints are plain JSON-over-WebSocket. For interactive
exploration use [`wscat`](https://github.com/websockets/wscat)
(`npm install -g wscat`) or [`websocat`](https://github.com/vi/websocat):

```bash
wscat -c "wss://api.elbic.com/ws/tts" -H "Authorization: Bearer YOUR_API_KEY"
> {"text": "Hello, this is a test.", "model_id": "kugel-3.5", "voice_id": 1071}
```

A refused connection (bad key, connection limit) is an HTTP status on the
upgrade, not a WebSocket close code; see
[Error Codes](/api-reference/errors#refused-websocket-upgrades).

Every streaming endpoint page includes complete raw-WebSocket examples in
Python and JavaScript alongside the wire-format tables: start with
[Stream Speech](/api-reference/tts/stream) for one request at a time or
[Stream Input](/api-reference/tts/stream-input) for LLM token streams.
