Skip to main content
simli exports SimliClient, SimliConfig, CameraSetting, the exceptions (SimliError, SimliAPIError, SimliSessionError, SimliConnectionError) and their codes (SimliExceptions). For a walkthrough, see the guide.

SimliConfig

A dataclass that becomes the body of POST /compose/token. Fields left as None are left out of the request, so Simli’s defaults apply.

CameraSetting

A dataclass of offsets on top of the avatar’s own framing. The defaults are neutral. Values outside the supported range are still applied, with a warning.

SimliClient

Constructor

SimliClient is an async context manager: async with SimliClient(...) as connection calls start() on entry and stop() on exit.

Methods

Properties

Events

SimliEvent, from simli.events:

Exceptions

All of them are exported from simli and subclass SimliError, which subclasses Exception. SimliExceptions codes include INVALID_API_KEY, INVALID_FACE_ID, BILLING_ERROR, MISSING_BILLING_INFO and UNKNOWN_ERROR. The setters also raise ValueError on a bad value, without sending anything.

Renderers

From simli.renderers.renderers. Each takes the SimliClient and has an async render() that runs until the session ends.

Logging

The SDK logs to the standard logging logger named simli_client, including Simli’s notices about camera, background and foreground changes, as warnings.