Z
Zirnay Documentation v2.4.1
System One Intelligence β€’ AI Infrastructure for Decisions
Launch Playground β†— Interactive API Explorer Strands Decider β†—
DOCS / GET STARTED / Introduction to Zirnay - AI Infrastructure for Decisions

Introduction to Zirnay - AI Infrastructure for Decisions

Ultra-low latency System 1 Decision Infrastructure for AI agent reflex gates and real-time transaction guards.

⏱ 4 min read β€’ Zirnay v2.4.1 β€’ Updated October 2026

The Headless Reflex Layer for Autonomous AI Agents

As AI applications transition from single-prompt chat interfaces to autonomous multi-agent swarms (such as AWS Bedrock Agent Core, CrewAI, LangGraph, and Cursor agents), agents require split-second deterministic choices: "Is this tool call authorized?", "Is this code candidate relevant?", or "Which sub-agent should handle this ticket?"

⚠️ The Problem: Why Agents Cannot Embed Their Own Reflex Models

Bundling System 1 ML models (such as ModernBERT, BERT, or ONNX runtimes) inside agent containers causes three fatal architectural issues:

  • 1. Container Image Limits: Serverless runtimes like AWS Bedrock Agent Core, Lambda, and Cloudflare Workers enforce strict image limits (<50MB–250MB). PyTorch and weights exceed 1.5 GB.
  • 2. 10s–30s Cold Starts: Ephemeral agents spawn and terminate quickly. Deserializing weights into Python heaps destroys agent turnaround latency.
  • 3. Swarm Decision Drift: When 5 sub-agents run internal model copies, checkpoint updates diverge. Upgrading requires rebuilding and redeploying all agent images.

Zirnay externalizes the decision brain. Agents stay ultra-lean (< 50MB) and query an addressable, warm decision data plane that executes in < 4.5ms container P99 (down to < 2.5ms on route cache hits) with mathematical probability calibration and atomic fleet-wide hot swaps.

πŸ’‘ Key Distinction: System 2 reasoning (Frontier LLMs like GPT-4o, Claude 3.7 / 3.5 Sonnet, Gemini 1.5 Pro) is designed for creative prose, code generation, and multi-turn conversational chat. Zirnay System 1 is purpose-built for instinctual reflexes: instantaneous, high-throughput decisions with deterministic typed outputs.

High-Level System Architecture

Zirnay cleanly separates into three dedicated execution planes:

1. Data Plane (Inferencing)

Sub-2ms in-memory inference runtime. Tensor weights remain warm in volatile RAM, eliminating execution cold-start delays across requests.

2. Control Plane (Governance)

Multi-tenant RBAC, team isolation, model catalog registry, S3/GCS dual-cloud checkpoint lifecycle, and cryptographic versioning.

3. Metering & Billing Plane

Sub-cent Stripe Metered Billing integration. Aggregates completed decision invocation events into Stripe with automated tier threshold guards.

Quick Verification

Execute a live decision query against your team workspace (acme-financial/fraud-ops) using the cURL snippet below:

Terminal β€’ cURL Request
curl -X POST https://api.zirnay.com/v1/teams/fraud-ops/models/laya-card-auth/decide \
  -H "X-API-Key: zrn_live_98124acme" \
  -H "Content-Type: application/json" \
  -d '{
    "raw_text": "Authorization charge $1,250.00 from IP 185.220.101.4 (Tor Exit Node) to overseas gaming portal",
    "query": {
      "type": "choice",
      "target": "action",
      "options": ["APPROVE", "CHALLENGE", "DECLINE"]
    }
  }'
HTTP 200 OK β€’ Sample Decision Response
{
  "request_id": "req_88f0b71e-0129-4df3-a5c2-f198129ad410",
  "decision": "DECLINE",
  "confidence": 0.9842,
  "probabilities": {
    "DECLINE": 0.9842,
    "CHALLENGE": 0.0135,
    "APPROVE": 0.0023
  },
  "checkpoint_id": "chk_89f02c77",
  "model_type": "laya",
  "execution_nanos": 1842000,
  "timestamp": "2026-10-10T22:45:00.000Z",
  "metering": {
    "event_billed": true,
    "unit_charge_cents": 0.015
  }
}
HTTP 429 Too Many Requests β€’ Sample Error Response
{
  "error": "Too Many Requests",
  "message": "API key 'zrn_live_...' exceeded rate limit of 1,000 requests/sec. Retry after 1s.",
  "status": 429,
  "retry_after_seconds": 1
}

Rate Limits: Default rate limit is 1,000 requests/sec per API key on Growth Tier; burstable up to 50,000+ RPS on Enterprise. Healthcheck probes (/healthz) are exempt from rate limiting and metering.

Next, explore the comprehensive 5 Steps to Production Guide or review the architectural trade-offs in Model Selection.