Your AI agent just got smarter about money.

One API endpoint. Automatic model selection. Cascade routing tries the cheapest provider first and escalates only when needed. Per-request cost tracking. Lightning-settled, OpenAI-compatible.

api.pura.xyz
$ curl -X POST https://api.pura.xyz/v1/chat/completions \
  -H "Authorization: Bearer pura_demo" \
  -H "Content-Type: application/json" \
  -d '{"messages":[{"role":"user","content":"What is backpressure routing?"}]}'
click run to send a request through the pura gateway

── DAILY INCOME STATEMENT

Every morning your agent gets this. Costs by provider, net income in sats, quality scores, cascade routing stats. One endpoint: GET /api/income


── HOW IT WORKS
1connectChange your baseURL to api.pura.xyz. Drop-in OpenAI-compatible.
2routePura picks the best model, escalates with cascade routing if the first answer falls short.
3trackPer-request cost breakdown, daily spend reports, and budget caps. Lightning funding when credits run out.
// swap your base URL — everything else stays the same
const openai = new OpenAI({ baseURL: "https://api.pura.xyz/v1" });

── WHAT PURA REPLACES

x402, AP2, ACP, and TAP are payment authorization rails — they answer whether an agent can pay. Pura sits above them and answers where the payment should go: routing, cost optimization, and capacity-aware flow control on top of any settlement layer.

Tempo MPPload balancerOpenRouterpura
Model routingNoneManualNoneAuto by complexity
Cost optimizationNoneMarkup pricingNoneCascade — cheapest sufficient tier
Flow controlTemp MPPNoneNoneBackpressure + Boltzmann
Capacity signalNoneServer-sideServer-sideOn-chain, EWMA-smoothed
Completion verificationNoneNoneNoneDual-signed receipts
SettlementILPStripeCreditLightning

── GO DEEPER
── GATEWAY DOCS

API reference, response headers, provider costs, Lightning funding.

explore →
── SHADOW MODE

See what Pura would do — without changing anything. Install the sidecar and watch.

explore →
── HOW IT WORKS

Backpressure routing, four architectural planes, five standard objects.

explore →
── PAPER

Formal model, throughput optimality proof, simulation results.

explore →
── GITHUB

Monorepo: gateway, contracts, SDK, NVM, simulation, site.

explore →