Axiom API

← Back to Engine

Base URL: https://axiom42.com · Version: v1

Authentication

Authenticated endpoints accept either an API key or a JWT token:

Authorization: Bearer ax_live_xxxxxxxx    # API key
Authorization: Bearer eyJhbGci...         # JWT token

Auth

POST/v1/auth/signupPublic
Create a new account. Returns an API key (shown once) and JWT.
{
  "email": "user@example.com",
  "password": "min8chars",
  "name": "Optional Name"
}
POST/v1/auth/loginPublic
Login with email/password. Returns JWT.
{
  "email": "user@example.com",
  "password": "yourpassword"
}

Pipeline

POST/v1/speakAuth Optional
Process input through the 1,700+ domain pipeline + 42-module DPCL. Auto-selects optimal response tier. Returns register, template, domain, response hash, cert hash, response mode, and full trace.
{
  "input": "What are the deterministic inference rules?"
}

Response

{
  "response": "...",
  "responseMode": "DETERMINISTIC",
  "register": "EXPLANATORY",
  "template": "EXPLANATORY.DETERMINISTIC_REASONING.QUERY",
  "domain": "DETERMINISTIC_REASONING",
  "intentType": "QUERY",
  "pipelineStatus": "COMPLETE",
  "responseHash": "sha256:...",
  "certHash": "sha256:...",
  "groundedFacts": [],
  "pipeline_duration": 22.4,
  "dpcl_duration": 1.1,
  "total_duration": 23.5,
  "trace": [...]
}

Response Modes

Axiom dynamically selects the optimal response tier for every query. The responseMode field tells you which tier was used.

ModeEngineDescription
DETERMINISTICPure LumeDirect knowledge-pack hit. No LLM. Zero hallucination. Sub-2ms.
GROUNDEDFact-Constrained LLMRetrieves top relevant facts from the 1.39M+ knowledge base, then composes using only those facts. The groundedFacts array contains source citations.
CONVERSATIONALGoverned LLMFull LLM governed by the trust layer. Used only when no relevant knowledge exists. Always clearly labeled.

Grounded Facts Schema

When responseMode is "GROUNDED", the groundedFacts array contains source facts:

[
  {
    "key": "cinco_de_mayo",
    "domain": "HISTORY",
    "score": 0.85,
    "snippet": "Cinco de Mayo commemorates the Mexican Army's victory..."
  }
]

Auto-Routing

You don't need to specify a mode — Axiom's auto-router selects the best tier:

  1. Tier 1: If the knowledge engine finds an exact match → DETERMINISTIC
  2. Tier 2: If relevant facts exist but no exact match → GROUNDED
  3. Tier 3: If no relevant knowledge exists → CONVERSATIONAL

Conversations

POST/v1/conversationsAuth Required
Create a new conversation thread.
{ "title": "My Conversation" }
GET/v1/conversationsAuth Required
List all conversations, sorted by most recent. Optional ?limit=50.
GET/v1/conversations/:idAuth Required
Get a conversation with all its turns.
POST/v1/conversations/:id/speakAuth Required
Send a message within a conversation thread. Auto-titles from first message.
{ "input": "Explain the safety envelope." }
PATCH/v1/conversations/:idAuth Required
Rename a conversation.
{ "title": "New Title" }
DELETE/v1/conversations/:idAuth Required
Delete a conversation and all its turns.

Capabilities

POST/v1/generate/imageAuth Required
Generate an image via DALL-E 3. Subject to tier quota.
{ "prompt": "A cybernetic owl", "size": "1024x1024" }
POST/v1/code/voice-to-lumePublic
Convert natural language to Lume code.
{ "text": "create a variable called name with value hello" }

Account

GET/v1/meAuth Required
Get current tenant info, tier, limits, and API key prefix.
GET/v1/usageAuth Required
Monthly usage statistics and tier limits.
POST/v1/keys/rotateAuth Required
Rotate your API key. Old key stops working immediately.

Billing

POST/v1/billing/portalAuth Required
Open the Stripe Customer Portal to manage your subscription.
{
  "stripeCustomer": "cus_xxxxxx"
}

Response

{
  "url": "https://billing.stripe.com/session/..."
}

Tiers

TierPriceQueries/moMax InputAuditImages
Free$0100500 chars5/mo
Developer$295,0002,000 chars50/mo
Business$14950,0005,000 chars200/mo
Enterprise$499Unlimited10,000 charsUnlimited