Create session
Creates a new LemonSlice session that takes in avatar audio and publishes synchronized video/audio to the specified transport.
Body
The properties used to create a session. Use application/json to reference an agent_id or agent_image_url, or multipart/form-data to upload an image file directly.
- LiveKit SDK
- Pipecat SDK
- WebSocket + LiveKit
- WebSocket + Daily
A high-level system prompt that subtly influences the avatar's movements, expressions, and emotional demeanor. This prompt is best used to suggest general affect or demeanor (for example, 'feel excited' or 'look sad') rather than precise or deterministic actions.
Time in seconds to wait without receiving new audio bytes before marking the response as complete. Some TTS models do not send an end response event, or do not send it in a timely manner. This parameter enables detection of response completion when such events are missing or delayed. This parameter can also be used to ensure proper conversation flow with multi-message LLMs (e.g. gpt-realtime-2).
Boolean. If True, the source image is reframed before the session starts. Defaults to True for accounts created after September 22, 2026. See Avatar image tips.
Response
Session created successfully.
- LiveKit SDK
- Pipecat SDK
- WebSocket
Response fields vary by transport.

