Integration
CornAPI docs
Send a message. We keep the persona, KV-cache, and long-term memory. You never resend chat history.
Authentication
All requests use a bearer token. During beta, keys are issued from the waitlist in batches.
Authorization: Bearer corn_sk_...POST /v1/chat
| Field | Type | Notes |
|---|---|---|
| character_id | string | Stable NPC / bot persona |
| session_id | string | Player, channel, or save slot |
| message | string | Latest user / player line only |
Memory model
Hot context lives in the KV-cache. Older turns are compacted into long-term RAG memory keyed bycharacter_id + session_id. Alignment filters are off. Creative, adult, and roleplay prompts are first-class.