{"manifest_type":"INFERRAIL_CAPABILITY_MANIFEST_V1","capability":"inferrail-work-economics","capability_version":"work-economics-v1","description":"Given payload-free, resource-class-tagged economic events already incurred for one unit of AI/agent work — inference/token cost, tool calls, search — returns a normalized cost receipt: known total cost, a breakdown by resource class and supplier, an unknown-cost event count, and price provenance. Never fabricates a total across unknown-cost events. Useful for AI job cost analysis, LLM spend tracking, and unit economics — without needing the prompt or response itself.","invoke_endpoint":"https://work.tryinferrail.com/invoke","price":{"amount":"0.05","currency":"USD","rail":"X402_BASE_SEPOLIA_TESTNET","network":"eip155:84532","network_class":"TESTNET","pay_to":"0x98d21D9B67eF471Fb1Ce3C5dE8523627A40a34CE"},"payment_protocol":"x402: an unpaid POST /invoke returns HTTP 402 with PaymentRequirements; retry with a signed X-PAYMENT header. Verification and settlement are performed by the CDP-hosted facilitator on Base Sepolia testnet.","input_schema":{"type":"object","properties":{"work_id":{"type":"string"},"events":{"type":"array","minItems":1,"items":{"type":"object","properties":{"resource_class":{"type":"string"},"supplier":{"type":"string"},"known_cost_usd":{"type":["string","null"]},"price_basis":{"type":"string","enum":["LIST_PRICE_PUBLISHED","PROVIDER_REPORTED_ESTIMATE","UNKNOWN"]},"currency":{"type":"string","const":"USD"},"status":{"type":"string","enum":["error","partial","success"]}},"required":["resource_class","supplier","price_basis","status"]}},"outcome_status":{"type":["string","null"]}},"required":["work_id","events"]},"output_schema":{"type":"object","properties":{"result":{"type":"object","properties":{"work_id":{"type":"string"},"known_total_cost_usd":{"type":["string","null"]},"exact_total_known":{"type":"boolean"},"event_count":{"type":"integer"},"unknown_event_count":{"type":"integer"},"breakdown_by_resource_class":{"type":"object","additionalProperties":{"type":"string"}},"breakdown_by_supplier":{"type":"object","additionalProperties":{"type":"string"}},"price_provenance":{"type":"object","additionalProperties":{"type":"integer"}},"outcome_status":{"type":["string","null"]},"capability_version":{"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"]},"commercial_receipt":{"type":"object","properties":{"purchase_id":{"type":"string"},"invocation_id":{"type":"string"},"capability":{"type":"string"},"capability_version":{"type":"string"},"rail":{"type":"string"},"network":{"type":"string"},"network_class":{"type":"string"},"quoted_amount_usd":{"type":"string"},"currency":{"type":"string"},"work_id":{"type":"string"},"status":{"type":"string"}},"required":["purchase_id","invocation_id","capability","rail","network","quoted_amount_usd","currency","work_id","status"]},"newly_charged":{"type":"boolean"},"newly_executed":{"type":"boolean"}},"required":["result","commercial_receipt","newly_charged","newly_executed"]},"docs":"https://github.com/domondi1/inferrail/blob/main/docs/capabilities/work-economics.md"}