Skip to main content

Media

Image, speech, video generation, and speech-to-text transcription and translation. A vendor adapter of proxium builds the provider request from the fields that each route names.

📄️Open a realtime voice session

Upgrades to a WebSocket and relays the OpenAI realtime protocol to the vendor of the model, with no change to the events. proxium checks the key, the budget and the limit of open sessions before the upgrade, and opens the vendor socket before it answers, so a refusal is an HTTP error. Every response that the vendor starts takes one call of the budget. When the budget refuses a response, proxium cancels it, sends an `error` event with the refusal code and closes the session. Each `response.done` writes one usage row. The text events of the client go through the data protection of the project. A server sends the key in `Authorization`. A browser sends it in the subprotocol `openai-insecure-api-key.<key>`, next to `realtime`.