Bring-your-own intelligence API
Liforma Relay API
Use Relay when your application owns the intelligence layer. Liforma transcribes the user, sends you text, then renders your chosen reply as speech and animation.
Endpoint
POST /v1/relay/sessionsProcessing Flow
- Speech-to-text
- Your intelligence layer
- Text-to-speech
- Animation
Request
{
"avatar": "milo",
"webhook_url": "https://your.app/liforma/reply",
"events": ["transcript.final", "avatar.finished"]
}Response
{
"session_id": "relay_31af",
"websocket_url": "wss://api.liforma.ai/v1/relay/relay_31af",
"reply_contract": "text_in"
}Billing Notes
Liforma bills by generated speech and animation time, not by wall-clock session time. If the avatar is silent, you are not paying for speech minutes.