Generate the project's lore-bible (priced)
curl --request POST \
--url https://api.kitefrost.ai/v1/projects/{project_id}/game-narrative/lore-bible/generateimport requests
url = "https://api.kitefrost.ai/v1/projects/{project_id}/game-narrative/lore-bible/generate"
response = requests.post(url)
print(response.text)const options = {method: 'POST'};
fetch('https://api.kitefrost.ai/v1/projects/{project_id}/game-narrative/lore-bible/generate', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.kitefrost.ai/v1/projects/{project_id}/game-narrative/lore-bible/generate",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.kitefrost.ai/v1/projects/{project_id}/game-narrative/lore-bible/generate"
req, _ := http.NewRequest("POST", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.kitefrost.ai/v1/projects/{project_id}/game-narrative/lore-bible/generate")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.kitefrost.ai/v1/projects/{project_id}/game-narrative/lore-bible/generate")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
response = http.request(request)
puts response.read_body{
"project_ref": "<string>",
"generated_at": "<string>",
"overview": "<string>",
"bible_version": "1",
"sections": [
{
"entity_type": "<string>",
"entries": [
{
"ref": "<string>",
"name": "<string>",
"summary": "<string>",
"key_facts": [
"<string>"
],
"cross_refs": [
"<string>"
]
}
]
}
],
"consistency_summary": "<string>"
}{
"error": "Unauthorized",
"code": "unauthorized",
"request_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"message": "No valid API key was supplied.",
"doc_url": "https://docs.kitefrost.ai/errors/unauthorized"
}{
"error": "Forbidden",
"code": "forbidden",
"request_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"message": "Your API key does not have the required scope.",
"doc_url": "https://docs.kitefrost.ai/errors/forbidden"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}{
"error": "Rate limit exceeded",
"code": "rate_limited",
"request_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"message": "You have exceeded the rate limit for your plan.",
"doc_url": "https://docs.kitefrost.ai/errors/rate_limited"
}{
"error": "Internal server error",
"code": "internal_error",
"request_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"message": "An unexpected error occurred.",
"doc_url": "https://docs.kitefrost.ai/errors/internal_error"
}lore-bible
Generate the project's lore-bible (priced)
On-demand, project-scoped synthesis of the project's current authored quests and NPCs into a single, exportable LoreBible (a derived, regenerable projection - never the source of truth). Read-only: no Notes/entity writes occur during generation. Paid generation: charges `lore_bible_generate` (2.0 SU) via the SSOT when LLM synthesis runs; a budget-exhausted tenant receives HTTP 402. When no LLM synthesis seam is configured the result is a deterministic projection and no SU is charged. Pass `verify=true` to embed the latest consistency summary ('verified consistent as of <date>') - off by default.
POST
/
v1
/
projects
/
{project_id}
/
game-narrative
/
lore-bible
/
generate
Generate the project's lore-bible (priced)
curl --request POST \
--url https://api.kitefrost.ai/v1/projects/{project_id}/game-narrative/lore-bible/generateimport requests
url = "https://api.kitefrost.ai/v1/projects/{project_id}/game-narrative/lore-bible/generate"
response = requests.post(url)
print(response.text)const options = {method: 'POST'};
fetch('https://api.kitefrost.ai/v1/projects/{project_id}/game-narrative/lore-bible/generate', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.kitefrost.ai/v1/projects/{project_id}/game-narrative/lore-bible/generate",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.kitefrost.ai/v1/projects/{project_id}/game-narrative/lore-bible/generate"
req, _ := http.NewRequest("POST", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.kitefrost.ai/v1/projects/{project_id}/game-narrative/lore-bible/generate")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.kitefrost.ai/v1/projects/{project_id}/game-narrative/lore-bible/generate")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
response = http.request(request)
puts response.read_body{
"project_ref": "<string>",
"generated_at": "<string>",
"overview": "<string>",
"bible_version": "1",
"sections": [
{
"entity_type": "<string>",
"entries": [
{
"ref": "<string>",
"name": "<string>",
"summary": "<string>",
"key_facts": [
"<string>"
],
"cross_refs": [
"<string>"
]
}
]
}
],
"consistency_summary": "<string>"
}{
"error": "Unauthorized",
"code": "unauthorized",
"request_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"message": "No valid API key was supplied.",
"doc_url": "https://docs.kitefrost.ai/errors/unauthorized"
}{
"error": "Forbidden",
"code": "forbidden",
"request_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"message": "Your API key does not have the required scope.",
"doc_url": "https://docs.kitefrost.ai/errors/forbidden"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}{
"error": "Rate limit exceeded",
"code": "rate_limited",
"request_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"message": "You have exceeded the rate limit for your plan.",
"doc_url": "https://docs.kitefrost.ai/errors/rate_limited"
}{
"error": "Internal server error",
"code": "internal_error",
"request_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"message": "An unexpected error occurred.",
"doc_url": "https://docs.kitefrost.ai/errors/internal_error"
}Query Parameters
Embed the latest consistency summary as a 'verified consistent as of ' block. Off by default (keeps artifacts decoupled).
Response
Generated lore-bible
The stable, derived lore-bible artifact (INV-GNBIBLE1/4).
A regenerable projection of the current authored entities - never the
source of truth. overview is the LLM-synthesized stitch;
consistency_summary is the optional embedded "verified consistent as
of " block (off by default - keeps the two artifacts decoupled).