Build Living Narratives

A stateful simulation engine for game narratives, training sims, and interactive stories. Generate consistent characters, branching dialogue, and auditable story events via a simple REST API.

Get Started API Reference

Why AI Story Engine?

🧠

Stateful Generation

Every NPC remembers past interactions. The engine maintains a knowledge graph of entities, relationships, and events so generated dialogue stays consistent across sessions, quests, and playthroughs.

📦

Domain Packs

Swap narrative rules without changing code. Game Narrative, TTRPG, Book Author, Sales Enablement, Education, and Compliance packs each bring domain-specific constraints, evaluation metrics, and output formats.

🔑

BYOK (Bring Your Own Key)

Route generation through your own OpenAI, Anthropic, or other LLM provider account. You control costs, rate limits, and model selection. We never store or proxy your keys beyond the request lifecycle.

How It Works

AI Story Engine runs a 6-operation state machine for every narrative interaction:

  1. Ingest — Accept player actions, world events, or external triggers
  2. Propose — Generate candidate narrative responses using the knowledge graph
  3. Select — Rank candidates against domain pack rules and quality metrics
  4. Apply — Update the knowledge graph with new facts, relationships, and events
  5. Render — Format output for the target platform (JSON dialogue trees, prose, audio directives)
  6. Evaluate — Score output quality and log provenance for auditability

All state changes are event-sourced. You can replay, branch, or audit any narrative thread from any point in time.

Pricing

Free

$0
forever
  • 10 NPCs per project
  • Basic dialogue generation
  • Knowledge graph (1,000 entities)
  • Community support (Discord)
  • Hosted LLM (rate-limited)
Start Free

Enterprise

Custom
contact us
  • Everything in Pro
  • SSO / SAML integration
  • 99.9% uptime SLA
  • Dedicated support engineer
  • Custom domain pack development
  • On-prem deployment option
Contact Sales