> ## Documentation Index
> Fetch the complete documentation index at: https://game-narrative.docs.kitefrost.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Game Narrative API

> Author your game's cast, quests, and lore - then run a pre-ship continuity audit and export it into your build.

Catch the contradictions before your players do. Ship a coherent 40-hour campaign where your NPCs, quests, and lore stay consistent - every contradiction caught and cited before a player ever sees it.

The **KiteFrost Game Narrative API** is a **dev-time authoring tool** for narrative-heavy games. You author your cast, quests, factions, and lore as structured, version-controlled content, run an on-demand **continuity audit** that flags cross-arc contradictions before your players hit them, then **export the finished content into your build** - Ink, Yarn Spinner, or universal JSON, with no per-utterance cloud call at runtime.

The differentiator is the **continuity check**: it reads everything you authored and tells you exactly which entity or arc each contradiction breaks ("Captain Mira died in arc 2 but speaks in arc 4"). It is advisory and read-only - it never edits or blocks your build.

## Who is it for?

* **Narrative-heavy game studios** shipping content-controlled stories who need their authored canon to stay consistent across a long game
* **Interactive fiction authors** maintaining branching stories with many interdependent threads
* **Writers' rooms and narrative leads** who want a pre-ship QA pass over quests, dialogue, and lore
* **Game jam teams** who need a structured narrative backend in hours, not months

## Core capabilities

<CardGroup cols={2}>
  <Card title="Authoring" icon="user">
    Create and version your cast, quests, locations, factions, and items as structured content - personality, backstory, faction alignment, quest state.
  </Card>

  <Card title="Continuity Check" icon="circle-check">
    Run an on-demand, project-scoped audit over your authored content. Every finding cites the exact entity or arc it conflicts with. Advisory, read-only, free - never blocks your build.
  </Card>

  <Card title="Export into Build" icon="file-down">
    Export your finished narrative into your game - Ink, Yarn Spinner, or universal JSON. No per-utterance cloud call at runtime.
  </Card>

  <Card title="Lore Bible" icon="book">
    Generate a consolidated lore bible from your authored entities - a single readable reference for your writers' room.
  </Card>
</CardGroup>

<Note>
  **AI drafting is optional.** Want a head start? AI can draft dialogue, quests, or lore for you at dev time - and every draft is checked against the canon you already authored. You stay in control of what ships.
</Note>

## Advanced: runtime dialogue

A **runtime** path for generating in-character dialogue on demand is also available as a secondary, advanced capability - see the [runtime dialogue](quickstart#advanced-runtime-dialogue) step in the Quickstart. Most studios author and export at dev time; the runtime path is there if you need live generation and can accept an asynchronous (`202` + poll) call.

## Plans and pricing

The continuity check is **free** (0 Story Units) and never gates on budget. Generation artifacts - drafted dialogue, quest trees, lore bibles - carry Story Units. See [Billing](_shared/core-concepts/billing) for the current tiers and quotas.
