# Simli - [Welcome to Simli](https://docs.simli.com/overview.md): The API devs use to add faces to realtime AI agents - [Create Avatar](https://docs.simli.com/api-reference/create-avatar.md): Create your own Simli avatar - [Trinity-2 Avatars](https://docs.simli.com/api-reference/trinity-2.md): Make Trinity-2 avatars and size the video to fit your layout - [Camera](https://docs.simli.com/api-reference/trinity-2/camera.md): Start a Trinity-2 session with your own camera, then move it while the session runs - [Animations](https://docs.simli.com/api-reference/trinity-2/animations.md): Play an animation on command: coming soon to Simli Compose - [Backgrounds](https://docs.simli.com/api-reference/trinity-2/backgrounds.md): Show your own image behind a Trinity-2 avatar, or lay one over it, and swap it while the session runs - [Default Faces](https://docs.simli.com/api-reference/preset-faces.md): Ready-made faces you can use right away. In our app, [create an avatar from a preset](https://app.simli.com/create/from-existing), or pass the face ID directly to the [Simli SDKs](/simli-sdks) - [LiveKit Agents](https://docs.simli.com/api-reference/livekit.md): Give a LiveKit Agents voice agent a lip-synced Simli avatar - [Pipecat](https://docs.simli.com/api-reference/pipecat.md): Give a Pipecat voice agent a lip-synced Simli avatar - [Trinity-2 in LiveKit Agents and Pipecat (temporary)](https://docs.simli.com/api-reference/trinity-2/integration-workarounds.md): Workarounds for Trinity-2 options on older releases: LiveKit Agents before livekit-plugins-simli 1.8.10, and Pipecat before 1.16 - [Overview](https://docs.simli.com/simli-sdks.md): Create interactive AI avatars with full control over your AI stack - [JavaScript SDK](https://docs.simli.com/api-reference/javascript.md): Show a Simli avatar in the browser with simli-client - [Trinity-2 in the JavaScript SDK](https://docs.simli.com/api-reference/javascript/trinity-2.md): Frame a Trinity-2 avatar, move its camera and swap its background with simli-client - [JavaScript SDK reference](https://docs.simli.com/api-reference/javascript/reference.md): Every function, method, event and type in simli-client - [Python SDK](https://docs.simli.com/api-reference/python.md): Run Simli sessions from Python with simli-ai - [Trinity-2 in the Python SDK](https://docs.simli.com/api-reference/python/trinity-2.md): Frame a Trinity-2 avatar, move its camera and swap its background with simli-ai - [Python SDK reference](https://docs.simli.com/api-reference/python/reference.md): Every class, method, event and exception in simli-ai - [Gemini Live](https://docs.simli.com/api-reference/samples/gemini.md): Gemini Live starter: a Next.js app built with the Simli JavaScript SDK, on a free Google AI Studio key - [ElevenLabs](https://docs.simli.com/api-reference/samples/elevenlabs.md): ElevenLabs Agents starter, built with the Simli JavaScript SDK - [OpenAI Realtime](https://docs.simli.com/api-reference/samples/openai.md): OpenAI Realtime starter: a Next.js app built with the Simli JavaScript SDK - [All Repos](https://docs.simli.com/api-reference/samples/all-samples.md): Explore our open-source projects on GitHub integrating Simli with various AI agents - [Custom JS Simli Client](https://docs.simli.com/api-reference/simli-webrtc.md): Talk to Simli's streaming API from your own JavaScript: the session token, a peer-to-peer or LiveKit connection, audio and live controls - [WebRTC](https://docs.simli.com/api-reference/webrtc-info.md): WebRTC and you, the bare minimum to get going - [Audio formats](https://docs.simli.com/api-reference/audio-info.md): Audio and the forgotten knowledge of the past - [/compose/token](https://docs.simli.com/api-reference/endpoint/webrtc/startAudioToVideoSession.md): Create a session token for a streaming session - [/compose/ice](https://docs.simli.com/api-reference/endpoint/webrtc/getIceServers.md): Get temporary STUN and TURN servers for a peer-to-peer session - [Discord Server](https://docs.simli.com/api-reference/discord.md) - [Get Ice Servers](https://docs.simli.com/api-reference/get-ice-servers.md): Create a new set of temporary ICE Server Credentials for WebRTC P2P session - [Compose Session Token](https://docs.simli.com/api-reference/compose-session-token.md): Create a temporary Simli Compose Session Token - [Sign a Static Video's URLs Again](https://docs.simli.com/api-reference/sign-a-static-videos-urls-again.md): Fresh signed URLs for a video made with POST /static/audio, for when the ones you have expired. Only the account that made the video can have its URLs signed. - [Generate Static Video](https://docs.simli.com/api-reference/generate-static-video.md): Generate and stream a static video file from a given audio sample. The whole request body may be at most 5 MB, and the audio at most 30 minutes long. The video is private: the returned URLs are signed (they carry an access token valid for 6 hours) and its files are served on a signed URL only. POST… - [Get HLS Segment](https://docs.simli.com/api-reference/get-hls-segment.md): Get HLS Stream of Generated Video - [Get MP4 of Generated Video](https://docs.simli.com/api-reference/get-mp4-of-generated-video.md) - [Generate Trinity Face](https://docs.simli.com/api-reference/generate-trinity-face.md) - [Preprocess Trinity Face Image](https://docs.simli.com/api-reference/preprocess-trinity-face-image.md): Reframes a portrait to the framing its generation expects, and returns the reframed PNG. GSA_1.0: the head centred with equal padding above and below, squared to the camera, on a simplified version of the image's own background. GSA_2.0: the person waist-up, with the torso and both hands, on the ima… - [Check Trinity Generation Status](https://docs.simli.com/api-reference/check-trinity-generation-status.md): Status of the caller's Trinity generations. `generations` lists every one still tracked, oldest first; the top-level status, queue_position and face_id describe the most recent of them. Accounts that generate in parallel should read `generations` - the top-level fields only ever describe one of seve… - [Get all faces](https://docs.simli.com/api-reference/get-all-faces.md): Your own faces only. Other accounts' faces are never listed, public or not. - [Check that a face can be used](https://docs.simli.com/api-reference/check-that-a-face-can-be-used.md): A face can be used by the account that created it, and, when it is public, by any account that has its face ID. Public faces are not discoverable: no endpoint lists or searches other accounts' faces, so another account can use a public face only if it has been given the ID. - [Make a face public or private](https://docs.simli.com/api-reference/make-a-face-public-or-private.md): A private face can be used only by the account that created it. A public face can also be used by any other account that has its face ID. Making a face public does not make it discoverable: it is not listed or searchable anywhere, and GET /faces returns only your own faces, so other accounts can use… - [Delete a face](https://docs.simli.com/api-reference/delete-a-face.md): Removes a face. This can not be undone. All agents connected to this face_id will be broken - [List Backgrounds or Foregrounds](https://docs.simli.com/api-reference/list-backgrounds-or-foregrounds.md): Your uploaded backgrounds or foregrounds, newest first, each with a signed URL that reads the image (a PNG) until url_expires_at, an hour on. Anyone holding the URL can read that one image until then, so keep it to your own app. List again for fresh URLs. - [Upload Background or Foreground](https://docs.simli.com/api-reference/upload-background-or-foreground.md): Uploads an image to show behind your avatars (a background) or over them (a foreground). It goes through a content safety check first, which takes a few seconds, and one it flags is refused. Stored as PNG, private to your account: only your own sessions can use it, by its id, as a session token's, a… - [Delete a Background or Foreground](https://docs.simli.com/api-reference/delete-a-background-or-foreground.md): Deletes one of your uploaded backgrounds or foregrounds. This can not be undone. A token or agent that names it starts with the avatar's own instead. - [Start Livekit Agents Session](https://docs.simli.com/api-reference/start-livekit-agents-session.md) - [Retrieve session history](https://docs.simli.com/api-reference/retrieve-session-history.md): Returns a list of session history records for the authenticated user - [Active Session Count](https://docs.simli.com/api-reference/active-session-count.md) - [Create New Agent](https://docs.simli.com/api-reference/create-new-agent.md) - [Get All Agents](https://docs.simli.com/api-reference/get-all-agents.md) - [Get Agent](https://docs.simli.com/api-reference/get-agent.md) - [Update Agent](https://docs.simli.com/api-reference/update-agent.md) - [Delete Agent](https://docs.simli.com/api-reference/delete-agent.md) - [Create Simli Auto Session Token](https://docs.simli.com/api-reference/create-simli-auto-session-token.md): A session token for Simli Auto, minted on your server with your API key so the key never reaches the page. Carrying the session's `request` (the fields of POST /auto/start/configurable's body), it is the websocket start on its own: the page sends `{"sessionToken": ...}` as the /auto/webrtc/{transpor… - [Start Auto Session](https://docs.simli.com/api-reference/start-auto-session.md): Start new Simli Auto Session without preconfigured agent - [Start Auto Session from config](https://docs.simli.com/api-reference/start-auto-session-from-config.md) - [Start Auto Session from config (token in header)](https://docs.simli.com/api-reference/start-auto-session-from-config-token-in-header.md): Same as /auto/start/{agent_id}/{session_token}, with the session token sent in the session-token header instead of the path. - [Get Simli Auto Transcript](https://docs.simli.com/api-reference/get-simli-auto-transcript.md) - [Peer_to_peer](https://docs.simli.com/api-reference/websockets/peer_to_peer.md): Peer to Peer WebRTC - [Livekit](https://docs.simli.com/api-reference/websockets/livekit.md): Livekit Backed WebRTC - [Rest API Spec](https://docs.simli.com/api-reference/openapi_doc.md) - [WebSockets Spec](https://docs.simli.com/api-reference/asyncapi_doc.md) - [Custom LLM guide](https://docs.simli.com/api-reference/endpoint/simli-auto/customLLM.md) ## OpenAPI Specs - [openapi](/api-reference/openapi.yaml) - [openapi](https://api.simli.ai/openapi.yaml) ## AsyncAPI Specs - [asyncapi_proper](/api-reference/asyncapi_proper.yaml) - [asyncapi](/api-reference/asyncapi.yaml) This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.