{"slug":"denk-halowerk-com-v1-trace-cost-breakdown-694642","title":"Break an agent run down into cost and latency per step, model and tool from toke","host":"denk.halowerk.com","method":"POST","resource":"https://denk.halowerk.com/v1/trace-cost-breakdown","category":"market","description":"Break an agent run down into cost and latency per step, model and tool from token counts and the prices you supply. Takes the steps of one agent run (model, input, cached and output tokens, latency, tool) and the price list in USD per million tokens supplied by the caller (no stale built-in prices) ","price_listed":0.002,"price_asked":0.002,"state":"answering","state_label":"Answering","checks_7d":3,"answered_7d":3,"latency_ms_median":905,"reported_calls_30d":1,"reported_payers_30d":1,"networks":["eip155:8453"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"body":{"prices":{"model-a":{"cached_input":0.3,"input":3,"output":15}},"steps":[{"input_tokens":12000,"latency_ms":2100,"model":"model-a","name":"plan","output_tokens":800},{"cached_input_tokens":10000,"extra_cost_usd":0.003,"input_tokens":30000,"latency_ms":4300,"model":"model-a","name":"search","output_tokens":500,"tool":"web_search"}]},"bodyType":"json","method":"POST","type":"http"},"output_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"additionalProperties":false,"properties":{"body":{"additionalProperties":false,"properties":{"prices":{"additionalProperties":{"additionalProperties":false,"properties":{"cached_input":{"minimum":0,"type":"number"},"input":{"minimum":0,"type":"number"},"output":{"minimum":0,"type":"number"}},"required":["input","output"],"type":"object"},"type":"object"},"steps":{"items":{"additionalProperties":false,"properties":{"cached_input_tokens":{"default":0,"minimum":0,"type":"integer"},"extra_cost_usd":{"default":0,"minimum":0,"type":"number"},"input_tokens":{"default":0,"minimum":0,"type":"integer"},"latency_ms":{"default":0,"minimum":0,"type":"number"},"model":{"maxLength":100,"type":"string"},"name":{"maxLength":200,"type":"string"},"output_tokens":{"default":0,"minimum":0,"type":"integer"},"tool":{"maxLength":100,"type":"string"}},"required":["model"],"type":"object"},"maxItems":5000,"minItems":1,"type":"array"}},"required":["steps","prices"],"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":{"type":"object"},"type":{"type":"string"}},"required":["type"],"type":"object"}},"required":["input"],"type":"object"},"history":[{"day":"2026-11-26","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.002,"price_match":true,"latency_ms":985,"error":null},{"day":"2026-11-25","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.002,"price_match":true,"latency_ms":905,"error":null},{"day":"2026-11-24","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.002,"price_match":true,"latency_ms":904,"error":null}],"description_full":"Break an agent run down into cost and latency per step, model and tool from token counts and the prices you supply. Takes the steps of one agent run (model, input, cached and output tokens, latency, tool) and the price list in USD per million tokens supplied by the caller (no stale built-in prices) and returns cost per step, totals, cost and time share per model and tool, the five most expensive and slowest steps, and steps whose model has no price.","last_updated":"2026-11-24T10:21:29.706Z","schemes":["exact"]}