817* **Proxy requests server-side.** Never expose your API key in client-side code. Route TTS requests through your backend.817* **Proxy requests server-side.** Never expose your API key in client-side code. Route TTS requests through your backend.
818* **Cache generated audio.** If the same text is requested repeatedly, cache the audio bytes to save API calls and reduce latency.818* **Cache generated audio.** If the same text is requested repeatedly, cache the audio bytes to save API calls and reduce latency.
819* **Match the format to the use case.** Use `mulaw` or `alaw` at 8 kHz for telephony; `mp3` at 24 kHz for web; `wav` at 44.1+ kHz for post-production.819* **Match the format to the use case.** Use `mulaw` or `alaw` at 8 kHz for telephony; `mp3` at 24 kHz for web; `wav` at 44.1+ kHz for post-production.
820* **Respect concurrent session limits.** The streaming WebSocket endpoint allows up to **50 concurrent sessions per team**. For high-throughput services, pool connections or queue requests to stay within this limit.
821 820
822## Browser Playback821## Browser Playback
823 822