AI Inference · x402

Inferrail turns payload-free, already-incurred economic events — inference/token cost,…

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…

by work.tryinferrail.com · discovered, not yet claimed by its owner · updated 2026-09-07

Mirrored from Coinbase's public x402 Bazaar. The description is the provider's own text and has not been reviewed here; the payment requirements are copied as published.

What it does

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.

Tags: bazaar

Use with an agent

  1. Discover. Agents find this listing with GET https://bazaar.saylorinnovations.com/discovery/search?query=…, the MCP tool search_resources, or /discovery/resources.
  2. Inspect. Fetch /resources/8245.json for the price and payment options.
  3. Pay. Call GET https://work.tryinferrail.com/invoke. The provider answers 402 with its payment requirements. An x402 client signs one of the options below and retries with PAYMENT-SIGNATURE.
  4. Execute. The provider returns 200 with the data. Agent Bazaar is not in the request path and never sees your payment.

For humans

You don't need an account or an API key; you need a wallet holding a small amount of USDC on Base Sepolia, and an x402-capable client (see the examples below). Call the endpoint unpaid first to see exactly what it asks for.

Pricing & payment

Price
see accepts
Protocol
x402 v2
Auth
No account or API key. Pay per request.
Networks
Base Sepolia
Uptime
1 of the last 1 checks answered
Calls (30d)
1 · 1 unique payers (third-party data from the public x402 Bazaar)

x402 payment requirements

SchemeNetworkAssetAmountPay toTimeout
exactBase Sepolia
eip155:84532
USDC500000x98d21D9B67eF471Fb1Ce3C5dE8523627A40a34CE300s
accepts[] (raw JSON)
[
  {
    "scheme": "exact",
    "network": "eip155:84532",
    "payTo": "0x98d21D9B67eF471Fb1Ce3C5dE8523627A40a34CE",
    "asset": "0x036CbD53842c5426634e7929541eC2318f3dCF7e",
    "amount": "50000",
    "maxTimeoutSeconds": 300
  }
]

Schemas

Output schema (JSON 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"
    }
  }
}
Example shape — generated from the schema, not a captured live response
null

Examples

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 header

Details

Provider
work.tryinferrail.com
Endpoint
https://work.tryinferrail.com/invoke
Machine-readable
/resources/8245.json