Invoice content and provider credentials never reach an Inferrail-operated service — only identifiers, confidence/validation results, and cost figures.
$ pip install inferrail && inferrail ap demofixture-based · zero-key · runs locally · Apache-2.0
For one eligible invoice-extraction exception, Inferrail decides one permitted machine retry vs. your established human-review path, executes it, and records the resulting cost and outcome.
Invoice content and provider credentials never reach an Inferrail-operated service — only identifiers, confidence/validation results, and cost figures.
$ pip install inferrail && inferrail ap demofixture-based · zero-key · runs locally · Apache-2.0
Developer tools
Inferrail's original product: a self-hosted gateway — OpenAI-compatible (/v1/chat/completions) and Anthropic-compatible (/v1/messages, so Claude Code and other Anthropic SDK clients work too) — that turns supported traffic into local, attributable economic receipts — payload-free, without storing prompts or responses. This is the same receipt/cost substrate the AP product above builds on.
Self-serve sandbox
A demo instance runs at inferrail-ap-exceptions.onrender.com — Render's free tier, with no persistent disk: every record on it is synthetic and disposable, gone on the next restart or idle spin-down, never used for real customer data. POST /v1/sandbox issues you your own short-lived, isolated API key — no account, no human in the loop. Run the four commands below, unmodified, from any machine with curl. Every response is tagged "sandbox": true; the key expires, is capped in size, and is rate-limited. Prefer zero network calls? pip install inferrail && inferrail ap demo runs the same decision engine locally instead.
curl -s -X POST https://inferrail-ap-exceptions.onrender.com/v1/sandbox1. get a sandbox key · no account needed · the instance may take a minute to wake if it's been idle
export API_KEY=sbx_paste-your-key-herepaste the "api_key" value from step 1's response above
curl -s -X POST https://inferrail-ap-exceptions.onrender.com/v1/decisions \
-H "Authorization: Bearer $API_KEY" -H "Content-Type: application/json" -d '{
"work_id": "SANDBOX-DEMO-1",
"checkpoint_attempt_id": "SANDBOX-DEMO-1-checkpoint",
"failure_type": "low_confidence",
"confidence": 0.6,
"cost_so_far_usd": "0.10",
"policy_config": {
"eligible_failure_types": ["low_confidence", "validation_check_failed"],
"retry_floor": 0.5,
"human_review_threshold": 0.75,
"max_retry_cost_usd": "1.00",
"decision_deadline_seconds": 86400
}
}'2. create a decision — a real policy evaluation, not canned output
curl -s -X POST https://inferrail-ap-exceptions.onrender.com/v1/decisions/SANDBOX-DEMO-1/retry-attempts \
-H "Authorization: Bearer $API_KEY" -H "Content-Type: application/json" -d '{
"attempt_id": "SANDBOX-DEMO-1-attempt-1",
"status": "success",
"cost_usd": "0.06",
"validation_passed": true,
"validator_version": "ap.validator/v1"
}'3. record a retry attempt, as your own RetryAdapter would
curl -s https://inferrail-ap-exceptions.onrender.com/v1/report \
-H "Authorization: Bearer $API_KEY"4. read your own report back — expect retry_resolved, observed_cost_complete: true
Self-hosted, optional
Run the AP decision/persistence/reporting steps over an authenticated HTTP API instead of a local store — isolated per API key, with rate limits and a documented crash-recovery path. Retry execution always happens in your own process, never on this service.
Deploy your own instanceReporting
AP's own retry and human-review costs can be exported in the same event shape Work Economics already uses for reporting — a same-process data export, not a shared database or a dependency on Work Economics' separate (testnet) payment flow below.
See the Work Economics connectorFor autonomous agents
Submit payload-free economic metadata for one unit of AI work and get back a normalized cost analysis plus a commercial receipt, paid per call over x402 — no subscription, no Inferrail account.
See the Work Economics capabilityAlso experimental, testnet only
Inferrail Economic Authority lets multiple agents coordinate a caller-declared, cooperative spending boundary, paid per session over x402. Inferrail records and coordinates it within its own service only; it does not control external wallets, providers, or network spending, and is not real-world spend enforcement.
See the Economic Authority capability