API

Selvia AI API

Everything you can do in the console, your code can do with an API key, and so can your AI agent. Create realistic 3D avatar agents, teach them your business, put them in front of visitors, and direct them live.

What you can build

  • •Live conversations. Start a session and show the player to your visitor. The avatar listens, answers from what it knows about your business, and remembers returning visitors.
  • •Render mode: bring your own agent. Your speech recognition, language model and voice do the talking; you stream the speech to us and the avatar speaks it with matching lips and expressions.
  • •Full setup, without the console. Agents, faces, voices, languages, studio backdrops and cameras, knowledge, data handoffs, conversations, usage and billing.
  • •Live direction. Cut the camera or change the backdrop during any session.

Base URL

https://talk.selviaai.com/v1

Every request and response is JSON. Authenticate with your secret key in the Authorization header, from a server, never from a web page. See Authentication & keys.

Two ways to run a session

ConversationRender mode
Who talksYour Selvia AI agent: its prompt, knowledge and voiceYour own agent (any speech, language-model and voice stack)
What you sendNothing: the visitor talks to the avatarSpeech audio, or text we voice, over a WebSocket
Visitor's microphoneYes, in the playerNo: your agent hears the visitor its own way
Price$0.03 per minute$0.025 per minute
Start it with"mode": "conversation""mode": "render"

Start here

Machine-readable docs

The same documentation in the forms tools read:

  • •Interactive reference: every route, with request and response shapes.
  • •OpenAPI: for code generators and API clients.
  • •llms.txt: the whole API in one text file for AI assistants and coding agents.
These are generated from the API itself, so they always match it. A feature that ships in the console appears in the API at the same time.