Create Agora session
Starts a LemonSlice avatar session for Agora Conversational AI Engine. Agora’s generic avatar vendor calls this endpoint when you start an agent with LemonSlice configured as the avatar provider.
Authorizations
Your LemonSlice API token.
Body
Body for starting a LemonSlice Agora session. Exactly one of agent_id, agent_image_url, or agent_image_base64 must be provided.
Video codec used for the avatar stream. H264 provides the widest client compatibility.
H264, VP8, AV1 Agora RTC connection settings for the LemonSlice avatar participant. Populated by Agora when using the generic avatar vendor.
Pass in lemonslice for this field. The avatar's appearance is taken from agent_id, agent_image_url, or agent_image_base64.
"lemonslice"
The ID of a LemonSlice agent. Exactly one of agent_id, agent_image_url, or agent_image_base64 is required.
"agent_abc123"
A publicly accessible URL to the avatar image. Exactly one of agent_id, agent_image_url, or agent_image_base64 is required.
"https://cdn.lemonslice.com/agents/custom_agent.png"
Base64-encoded avatar image bytes. Exactly one of agent_id, agent_image_url, or agent_image_base64 is required.
Seconds of inactivity before the session is automatically terminated. Set to 0 to disable the idle timeout. If no idle timeout is configured, you must terminate the call explicitly.
A high-level system prompt that subtly influences the avatar's movements, expressions, and emotional demeanor while speaking. Best used for general affect (for example, "feel excited" or "look sad") rather than precise actions.
A high-level system prompt that influences the avatar's movements, expressions, and emotional demeanor during the idle state.
Model variant. Leave unset to use the normal flagship model.
lite, flash, pro, null Output aspect ratio for the avatar video.
2x3, 9x16, 1x1 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 promptly. This parameter enables completion detection when such events are missing or delayed.
Response
Session started successfully.

