Edge-proxy: one hop, full control
Every request streams through Kyma’s edge:your client ↔ Kyma edge ↔ source. Opening a direct connection instead would mean handing a long-lived credential to your client — unsafe. The edge adds one network hop, and in exchange you keep:
- Accurate billing — metered per character / token / minute as it streams, not estimated after the fact.
- Automatic failover — if a route fails before it sends the first byte, Kyma tries the next route and your client sees one normal response. Once a response has started streaming, it is not switched to another route.
- Usage visibility — the request lands in your logs and usage with real numbers.
A second, direct mode (Kyma mints a one-time token and your client streams straight to the source) was used only by realtime voice. Realtime audio is paused, so today every request takes the edge path.
Why the hop is the right trade
For almost every product, one hop is imperceptible next to the value of correct billing and reliability — which is why production voice platforms proxy too.Progressive delivery
You never configure the connection. You can still opt into progressive delivery where it helps:- Chat streaming — pass
"stream": trueon/v1/chat/completionsto receive tokens as they are generated. See Streaming. - TTS streaming — pass
"stream": trueonPOST /v1/audio/speechto receive audio as it’s synthesized. The first audio arrives while the rest is still being synthesized, instead of after the whole clip. Same completeaudio/mpegresult, just delivered progressively.
What this means for you
- Billing and reliability are never traded away for speed.
- You don’t manage connections, tokens, or failover — Kyma owns the connection model so your client stays simple.
See also
- Streaming — token-by-token streaming for chat / completions
- Audio Speech (TTS) — the
streamflag