Compile
Compilation is the process that transforms uploaded source texts — documents, transcripts, conversation threads — into the psychological primitives that define a face’s persona. The compiled output is stored in the graph and retrieved at inference time.Document types
Documents
A document is any source text that describes or characterizes the face from the outside: an interview, biography, essay, article, journal entry, or PDF. Documents are compiled into structured components that express the persona in a minimal formal language.Threads
A thread is a conversation transcript — a direct record of how the face expresses itself. Threads are compiled differently, capturing speech patterns, response style, and interaction habits.Prepare → Sync workflow
Uploading a file does not immediately compile it. Files are staged as documents or threads in a pending state. Trigger compilation explicitly with the sync endpoint:sync_status field will be "syncing" while compilation is in progress and "synced" when complete.
Listing documents
Deleting a document
Compile quota
Each plan includes a monthly compile quota measured in tokens:| Plan | Quota | Reset |
|---|---|---|
| Free | 5,000 tokens | Never |
| Standard | 50,000 tokens | Every 30 days |
| Pro | 1,000,000 tokens | Every 30 days |
Overflow billing
When you exceed your plan quota, compilation continues but additional tokens are billed to your credit balance at the standard rate for the underlying model. This prevents compile jobs from silently failing when you hit your quota ceiling. If your credit balance is also exhausted, compilation stops and returns402.