API Online — v1.0

Every AI Agent
Output. Validated.

Validation infrastructure for production AI agents

Catch hallucinations. Kill bad chains. Compress context. Cut your LLM bill.

POST /v1/validate

Try it live

Paste any AI response below and validate it against the real CR Gateway API. No signup required.

Using live API

        
Get your API key in 30 seconds →

Three steps. Zero complexity.

Keep your LLM provider, your keys, your stack. CR Gateway sits between your agent and its next action.

1
Your Agent Calls Its LLM
Your agent makes LLM calls as usual. Your provider, your API key, your cost. Nothing changes.
2
POST to CR Gateway
Send the LLM response to CR Gateway for validation: safety checks, confidence scoring, hallucination detection.
3
Get Validation Results
Receive valid/invalid verdict, scores, and recommendations. Bad chains killed before they waste more LLM calls.

Six ways to cut AI costs and catch bad outputs

One API. No SDKs required — just HTTP. For teams running LLM-powered agents in production.

Ship AI products your users trust

Catches hallucinations, fabricated URLs, overconfident claims, and danger terms before they reach your users. Every LLM response validated in sub-millisecond time — pure CPU, no LLM calls.

Sub-millisecond validation

Cut your LLM bill by 30%

Swarm fail-fast kills weak agent chains early using chain-rule probability. One low-confidence link flags the whole chain before downstream agents burn more tokens on bad data.

30% fewer wasted calls

Let agents talk to each other securely

Validated agent-to-agent messaging. Every relay message is checked for safety and hallucinations before delivery. JSON in, JSON out — no new protocol to learn.

Validated delivery

Run multi-step AI workflows that don't break NEW

Define DAG workflows and execute multi-agent pipelines. Gateway handles validation, chain confidence, and fail-fast automatically — so your 10-agent pipeline doesn't silently degrade.

DAG orchestration

Fit more context, spend fewer tokens

Compresses 10 messages into 1 briefing with 44%+ token savings. Pure CPU — no LLM call needed. Your agent gets the same information in fewer tokens, every time.

44%+ token reduction

Your AI gets smarter over time

Report real-world outcomes back to the gateway. The confidence oracle learns what "0.85 confidence" actually means for your domain, so thresholds auto-calibrate to your data.

Self-calibrating

One request. Instant validation.

No SDK needed. Standard HTTP from any language.

curl -X POST https://cr-gateway-worker.jnowlan21.workers.dev/v1/validate \
  -H "Content-Type: application/json" \
  -H "X-API-Key: YOUR_KEY" \
  -d '{
    "message": {
      "type": "analysis",
      "content": "Based on market data...",
      "confidence": 0.85
    }
  }'
const resp = await fetch('https://cr-gateway-worker.jnowlan21.workers.dev/v1/validate', {
  method: 'POST',
  headers: {
    'Content-Type': 'application/json',
    'X-API-Key': 'YOUR_KEY'
  },
  body: JSON.stringify({
    message: {
      type: 'analysis',
      content: 'Based on market data...',
      confidence: 0.85
    }
  })
});

const result = await resp.json();
// result.valid === true
import requests

resp = requests.post(
    'https://cr-gateway-worker.jnowlan21.workers.dev/v1/validate',
    headers={
        'Content-Type': 'application/json',
        'X-API-Key': 'YOUR_KEY'
    },
    json={
        'message': {
            'type': 'analysis',
            'content': 'Based on market data...',
            'confidence': 0.85
        }
    }
)

result = resp.json()
# result['valid'] == True

Endpoints

All endpoints accept and return JSON. Authentication via X-API-Key header.

Method Path Description
POST /v1/validate Validate a message (safety, confidence, hallucination)
POST /v1/swarm/check Fail-fast chain check for agent swarms
POST /v1/relay Validated agent-to-agent relay
POST /v1/compress Compress conversation context (CPU-only, no LLM)
POST /v1/context/check Context window management
POST /v1/orchestrator/workflows Create multi-agent DAG workflows
POST /v1/orchestrator/workflows/:id/run Start a workflow run
POST /v1/feedback Report outcomes for confidence calibration
POST /v1/onboard Self-service API key provisioning
GET /v1/usage 30-day usage history
GET /health Health check

Not a prototype. Not a promise. Tested.

Real numbers from our overnight test suite — not projections.

29ms
Median validation latency
p95: 78ms · p99: 134ms
947
Tests passing
0 failures · 12 categories
0
Crashes in 700-message fuzz test
Random payloads · 0 500s
9/9
Security attacks blocked
SQLi, XSS, SSRF, homoglyphs
<1ms
Validation time (pure CPU)
No LLM calls · no latency tax

Start free. Scale when ready.

No credit card required. Upgrade anytime.

Free
$0
Free forever
  • 1,000 requests / day
  • All validation checks
  • Context compression
  • Community support
Scale
$199/mo
For high-volume teams
  • 5,000,000 requests / month
  • Unlimited workflows
  • Feedback & calibration oracle
  • Swarm fail-fast
  • Priority support

How much will you save?

Adjust the sliders to estimate your net monthly savings with CR Gateway.

10
500
$0.010
Before CR Gateway
$0
After CR Gateway
$0
$0
estimated net monthly savings (after plan cost)
Savings assumptions (based on internal benchmarks):
30% swarm fail-fast — bad chains killed before downstream calls
20% fewer retries — validated outputs reduce hallucination-driven retries
40% context compression — CPU-only token reduction, no LLM call needed
Combined: 0.7 × 0.8 × 0.6 = 33.6% of original cost (66.4% reduction)

Get your API key in 10 seconds