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

FieldTypeNotes
character_idstringStable NPC / bot persona
session_idstringPlayer, channel, or save slot
messagestringLatest 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.