Overview

Status: Implementation IMPLEMENTED (session registry only), Exposure INTERNAL. Session create/list/get/delete are real. The WebSocket is a placeholder loop: it does not run speech-to-text, a model, or text-to-speech. Session creation returns 501 allternit.not_configured (“no realtime audio provider configured”) unless the gateway is started with ALLTERNIT_GATEWAY_ALLOW_FAKE_PROVIDERS=1. The Realtime Audio API provides session-based voice interaction. A session defines the model, voice, modalities, and turn-detection behavior. Clients connect to a session over WebSocket and stream audio or text in real time.

Base URL

For local development:

Endpoints

Authentication

REST endpoints require a virtual key in the Authorization header. The WebSocket endpoint accepts the same key as a query parameter or header, depending on client support. See Authentication.

Create a session

Request body

Voices

Turn detection

Example request

Example response

List sessions

Retrieve a session

Delete a session

WebSocket events

Connect to the session WebSocket and exchange events:

Example WebSocket connection

Error codes