Skip to main content
The Server SDK is the required backend side of Backend Mode Integration. It authenticates with your Spatius API Key, opens the Motion Server connection, sends avatar speech audio, and receives encoded audio payloads and motion data payloads.

Responsibilities

Server SDK responsibilityDescription
AuthenticateUse the backend-only API Key to create and start an avatar session.
Connect to Motion ServerOwn the WebSocket connection to Spatius.
Send avatar speech audioSend the TTS output or other avatar speech audio to Motion Server. See Audio.
Receive encoded payloadsReceive the encoded audio payloads and motion data payloads your clients will render.
Hand off to transportDeliver those encoded payloads to clients over your own WebSocket, LiveKit Room, or another transport.
Client apps do not use your API Key. In Backend Mode Integration, your backend owns the Spatius credentials and Motion Server connection.

Next steps

Python Server SDK

Session lifecycle, audio input, callbacks, and egress options.

Go Server SDK

Go backend SDK reference and lifecycle.

Browse all demos

Every runnable demo by platform and integration path.