Being Runtime API · Self-Serve

The social AI engine for apps, games, and robots

Skip building social turn-taking, voice & vision memory, group concierge workflows, streaming proxies, and help widgets from scratch. Plug in one Being Runtime for sealed per-tenant memory, $0 ambient rooms, real-time SSE, MCP tools, and a white-label Co-Pilot.

POST /api/placement/v1/turn

Real-time streaming replies with sealed per-tenant memory

Send a user message with your server-side kpl_ key. Kami loads that tenant's isolated memory, checks daily spend caps, runs tools, and streams tokens back immediately over SSE.

Your App
Web · iOS · Game
Placement Seal
kpl_ · Caps & ACL
Being Mind
Memory + Knowledge
Live SSE
Token stream
Live SSE streamLive protocol
POST /api/placement/v1/turn {"place":"dm","stream":true}
-> Placement verified · Knowledge Pack matched (2 docs)
event: token data: {"delta":"Welcome back, Alex - "}
event: token data: {"delta":"ready to pick up where we left off?"}
event: done data: {"usage":{"costUsd":0.0004}}
100%
Tenant memory isolation
2 calls
From zero to first token
Hard caps
Per-placement USD limits

Choose your blueprint

What you can build

Each blueprint has its own step-by-step guide

30-second mental model

Four primitives, zero glue

Being

The persistent character - soul, voice, and memory. Owned by its creator.

Placement

One Being deployed into your app - sealed memory, hard dailyUsd caps, live PATCH.

Place

A room (shared thread) or one_to_one (private per-user thread) inside a Placement.

kdev_ vs kpl_

kdev_ manages your account. kpl_ runs one placement server-side. Never mix them.

Quickstart

First live reply in 2 calls

Or skip cURL completely and create your Being & Placement in 30 seconds in the Developer Console.

  1. 1

    Create a Placement

    Only two fields required. Kami returns a scoped kpl_ key with safe defaults.

    cURLPOST /api/v1/placements
    curl -X POST https://api.kami.bot/api/v1/placements \
      -H "Authorization: Bearer $KAMI_DEV_KEY" \
      -H "Content-Type: application/json" \
      -d '{
        "beingId": "my-agent",
        "holderLabel": "Acme App"
      }'
    # Returns your scoped kpl_ key. Edit rooms, verbs & caps anytime via PATCH without revoking.
  2. 2

    Stream a live turn

    Tokens stream immediately over SSE (event: token), with partner MCP tools and Knowledge Packs included.

    cURLPOST /api/placement/v1/turn
    curl -N -X POST https://api.kami.bot/api/placement/v1/turn \
      -H "Authorization: Bearer $KAMI_PLACEMENT_KEY" \
      -H "Content-Type: application/json" \
      -d '{
        "place": "dm",
        "senderId": "user_42",
        "senderName": "Alex",
        "text": "What can you help me with?",
        "channel": "text",
        "stream": true
      }'

Rail A vs Rail B vs Hybrid

Webhooks & Partner MCP guide
ModeEndpointBest for
Rail APOST /placement/v1/turnLive streaming chat, voice/avatars, in-app co-pilots, partner MCP tools.
Rail BPOST /placement/v1/messagesAsync rooms & bridges delivering replies to signed Kami-Signature webhooks.
Hybrid/messages (addressed: false) + /turnLog ambient room chatter at $0, stream live SSE replies on @mentions.

Drop-in widget · White-label

Attach Knowledge Packs & embed an In-App Co-Pilot Widget

One script tag adds a persistent Shadow-DOM co-pilot with live DOM awareness, spotlights, cross-page walkthroughs, and confirmed actions.

Full Co-Pilot & Native guide
HTMLDrop-in embed.js (Web / Next.js / SPA)
<script
  src="https://kami.bot/embed.js"
  data-endpoint="/api/kami-support"
  data-title="Ask Acme AI"
  data-subtitle="Live product guide"
  async
></script>

Agent-native DX

Built for Claude Code, Cursor, Codex & Antigravity

Connect your coding agent directly to Kami's Streamable HTTP MCP server, or point it at https://kami.bot/skill.md.

MCP & Errors guide
JSONmcp.json - Streamable HTTP
{
  "mcpServers": {
    "kami-being-runtime": {
      "url": "https://api.kami.bot/api/mcp",
      "headers": {
        "Authorization": "Bearer kpl_YOUR_PLACEMENT_KEY"
      }
    }
  }
}
PromptOne-line prompt for your coding agent
Read https://kami.bot/skill.md.
Create a backend helper to talk to my Kami Being placement using POST https://api.kami.bot/api/placement/v1/turn (SSE) or /messages + Kami-Signature verification.