Execution · Policy · Verification

Open Edge Network

An open, low-latency edge network that any program, platform or agent can call. Every request is quoted before it runs, nothing is charged when it fails, and every policy verdict carries a SHA-256 receipt anyone can check.

10–15 msmedian per route in the daily public benchmark, measured inside the hosting network
1 · 5 EGUEdge Gas Units per atomic and composite route, quoted before execution
$0.00charged on failed or partial calls: units burn only on a settled HTTP 200
400 dayspublic, no-key verification of every receipt at /verify/<sha256>

Architecture

Four layers, one interface.

01

Zero-key discovery

Every suite host publishes /llms.txt, /.well-known/x402.json, OpenAPI, MCP and Agent2Agent. An agent can find a route, read its terms and call it without signing up.

02

Deterministic execution

Fixed rules over live web, compliance, commerce, document and locale inputs, answered at the edge. Upstream failures return a marked partial answer, never a server error.

03

HTTP 402 and Edge Gas Units

Pay per call over HTTP 402, or meter a key in Edge Gas Units: a non-cashable infrastructure compute metering unit, like compute-time or bandwidth. Units are held before the call and burn only on a settled HTTP 200.

04

Verification

Policy verdicts carry a SHA-256 receipt; burns carry their own. Receipts hold digests, never request text. The network takes custody of nothing.

Protocol

Watch the countdown move.

The simulator runs in your browser with an example key and an example price. The live check sends one real, unpaid request to a production route and shows the quote it returns.

Route
Upstream answer

Example key: 100 prepaid EGU at an example price of $0.005 per EGU.

Remaining100
Burned0
Builder credits0
Send a call to see the response headers.

Live check

GET https://api.caelaralabs.com/v1/url-to-markdown?url=https://example.com
No key, no payment: the route answers 402 with its live quote. Nothing is charged.

Quickstart

Five minutes from discovery to a verified receipt.

Zero-key per call

HTTP 402

Route production or staging calls immediately, with no account. A metered route answers 402 with its terms; pay that one call with X-PAYMENT and retry.

Metered infrastructure key

Edge Gas Units

A key provisioned by the network operator, sent as X-Caelara-Key: non-cashable starter trial units for staging validation, or prepaid execution units for high-throughput workloads. Read X-Edge-Gas-Countdown and X-Edge-Gas-Receipt on every settled HTTP 200.

curl
# 1. Discover: terms, quote headers and countdown schema, no key
curl -s https://api.caelaralabs.com/.well-known/x402.json

# 2. Call a route; read the quote and the countdown
curl -si "https://api.caelaralabs.com/v1/url-to-markdown?url=https://example.com" \
  -H "X-Caelara-Key: $EDGE_KEY" \
  -H "X-Builder-Key: $BUILDER_KEY" | grep -i '^x-edge-gas'

# 3. Verify a receipt, no key
curl -s https://caelaralabs.com/verify/$RECEIPT_SHA256 -H "Accept: application/json"
JavaScript
const host = 'https://api.caelaralabs.com'
const terms = await (await fetch(`${host}/.well-known/x402.json`)).json()

const res = await fetch(`${host}/v1/url-to-markdown?url=https://example.com`, {
  headers: { 'X-Caelara-Key': EDGE_KEY, 'X-Builder-Key': BUILDER_KEY },
})
const h = (n) => res.headers.get(n)
console.log('quoted', h('X-Edge-Gas-Quote'), terms.unit.symbol, 'at', h('X-Edge-Gas-Unit-Price-Usd'))
console.log('countdown', h('X-Edge-Gas-Countdown'))   // "95/100 (burned=5)"

const [remaining] = (h('X-Edge-Gas-Countdown') ?? '0/0').split('/').map(Number)
if (remaining < 10) console.warn('top up before the next batch')

const verified = await fetch(`https://caelaralabs.com/verify/${RECEIPT}`, {
  headers: { Accept: 'application/json' },
})
console.log('receipt', verified.status === 200 ? 'confirmed' : 'not found')