Inferrail turns payload-free, already-incurred economic events — inference/token cost, too
Inferrail turns payload-free, already-incurred economic events — inference/token cost, tool calls, search — into a normalized cost receipt for one unit of agent work: known total cost, a breakdown by resource class and supplier, unknown-cost count, and price provenance, without requiring prompt or response content. Used for AI job cost analysis, LLM spend tracking, and unit economics.
50000 (raw units)
price
1
calls / 30d
1
unique payers
2026-09-07
updated
Provider
work.tryinferrail.com · discovered, not yet claimed by its owner
Payment (x402 accepts[])
[
{
"scheme": "exact",
"network": "eip155:84532",
"payTo": "0x98d21D9B67eF471Fb1Ce3C5dE8523627A40a34CE",
"asset": "0x036CbD53842c5426634e7929541eC2318f3dCF7e",
"amount": "50000",
"maxTimeoutSeconds": 300
}
]Output schema
{
"bazaar": {
"info": {
"input": {
"body": {
"events": [
{
"currency": "USD",
"known_cost_usd": "0.02",
"price_basis": "LIST_PRICE_PUBLISHED",
"resource_class": "inference",
"status": "success",
"supplier": "example-supplier"
}
],
"outcome_status": "success",
"work_id": "example-work-001"
},
"bodyType": "json",
"method": "POST",
"type": "http"
},
"output": {
"example": {
"commercial_receipt": {
"capability": "inferrail-work-economics",
"capability_version": "work-economics-v1",
"currency": "USD",
"invocation_id": "00000000-0000-0000-0000-000000000000",
"network": "eip155:84532",
"network_class": "TESTNET",
"purchase_id": "example-purchase-id",
"quoted_amount_usd": "0.05",
"rail": "X402_BASE_SEPOLIA_TESTNET",
"status": "DELIVERED",
"work_id": "example-work-001"
},
"newly_charged": true,
"newly_executed": true,
"result": {
"breakdown_by_resource_class": {
"inference": "0.02"
},
"breakdown_by_supplier": {
"example-supplier": "0.02"
},
"capability_version": "work-economics-v1",
"event_count": 1,
"exact_total_known": true,
"known_total_cost_usd": "0.02",
"outcome_status": "success",
"price_provenance": {
"LIST_PRICE_PUBLISHED": 1
},
"unknown_event_count": 0,
"work_id": "example-work-001"
}
},
"type": "json"
}
},
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"input": {
"additionalProperties": false,
"properties": {
"body": {
"properties": {
"events": {
"items": {
"properties": {
"currency": {
"const": "USD",
"type": "string"
},
"known_cost_usd": {
"type": [
"string",
"null"
]
},
"price_basis": {
"enum": [
"LIST_PRICE_PUBLISHED",
"PROVIDER_REPORTED_ESTIMATE",
"UNKNOWN"
],
"type": "string"
},
"resource_class": {
"type": "string"
},
"status": {
"enum": [
"error",
"partial",
"success"
],
"type": "string"
},
"supplier": {
"type": "string"
}
},
"required": [
"resource_class",
"supplier",
"price_basis",
"status"
],
"type": "object"
},
"minItems": 1,
"type": "array"
},
"outcome_status": {
"type": [
"string",
"null"
]
},
"work_id": {
"type": "string"
}
},
"required": [
"work_id",
"events"
],
"type": "object"
},
"bodyType": {
"enum": [
"json",
"form-data",
"text"
],
"type": "string"
},
"method": {
"enum": [
"POST",
"PUT",
"PATCH"
],
"type": "string"
},
"type": {
"const": "http",
"type": "string"
}
},
"required": [
"type",
"method",
"bodyType",
"body"
],
"type": "object"
},
"output": {
"properties": {
"example": {
"properties": {
"commercial_receipt": {
"properties": {
"capability": {
"type": "string"
},
"capability_version": {
"type": "string"
},
"currency": {
"type": "string"
},
"invocation_id": {
"type": "string"
},
"network": {
"type": "string"
},
"network_class": {
"type": "string"
},
"purchase_id": {
"type": "string"
},
"quoted_amount_usd": {
"type": "string"
},
"rail": {
"type": "string"
},
"status": {
"type": "string"
},
"work_id": {
"type": "string"
}
},
"required": [
"purchase_id",
"invocation_id",
"capability",
"rail",
"network",
"quoted_amount_usd",
"currency",
"work_id",
"status"
],
"type": "object"
},
"newly_charged": {
"type": "boolean"
},
"newly_executed": {
"type": "boolean"
},
"result": {
"properties": {
"breakdown_by_resource_class": {
"additionalProperties": {
"type": "string"
},
"type": "object"
},
"breakdown_by_supplier": {
"additionalProperties": {
"type": "string"
},
"type": "object"
},
"capability_version": {
"type": "string"
},
"event_count": {
"type": "integer"
},
"exact_total_known": {
"type": "boolean"
},
"known_total_cost_usd": {
"type": [
"string",
"null"
]
},
"outcome_status": {
"type": [
"string",
"null"
]
},
"price_provenance": {
"additionalProperties": {
"type": "integer"
},
"type": "object"
},
"unknown_event_count": {
"type": "integer"
},
"work_id": {
"type": "string"
}
},
"required": [
"work_id",
"known_total_cost_usd",
"exact_total_known",
"event_count",
"unknown_event_count",
"breakdown_by_resource_class",
"breakdown_by_supplier",
"price_provenance",
"outcome_status",
"capability_version"
],
"type": "object"
}
},
"required": [
"result",
"commercial_receipt",
"newly_charged",
"newly_executed"
],
"type": "object"
},
"type": {
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
}
},
"required": [
"input"
],
"type": "object"
}
}
}Use it
curl
curl "https://work.tryinferrail.com/invoke" # -> 402 Payment Required, accepts[] lists how to pay # retry with a PAYMENT-SIGNATURE (or PAYMENT header) once paid
JavaScript
const res = await fetch("https://work.tryinferrail.com/invoke");
if (res.status === 402) {
const { accepts } = await res.json();
// pay one of accepts[] via an x402 client, then retry with the payment header
}Python
import httpx
res = httpx.get("https://work.tryinferrail.com/invoke")
if res.status_code == 402:
accepts = res.json()["accepts"]
# pay one of accepts[] via an x402 client, then retry with the payment headerMachine-readable
Everything on this page is also available as clean JSON at /resources/8245.json, and this resource appears in /discovery/resources and /discovery/search.