{"uid":"cap_KqQewCvRdAq_nNfcBEGpz","slug":"ddg-cost-recompute-artifact-billing-audit-0ff84d08","name":"DDG Cost Recompute – Artifact Billing Audit","description":"Recompute per-step catalog price for an artifact (model, usage dimensions, service tier, cache read/write, context thresholds), compare with recorded cost, flag overbilling variance and unpriced steps, with per-provider totals.","url":"https://agents.daedalusdevelopmentgroup.com/v1/tine/cost-recompute?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input","output"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"type":"object"},"type":{"type":"string","const":"http"},"method":{"enum":["POST","PUT","PATCH"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":true},"output":{"type":"object","required":["type","example"],"properties":{"type":{"type":"string"},"example":{"ok":true}},"additionalProperties":true}}},"responseSchema":{"type":"json","example":{"ok":true}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_4a5SzGPRx1cBenbDE4rSp","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Recomputes per-step catalog pricing for an AI artifact and flags overbilling variances, unpriced steps, and per-provider cost totals.","exampleAgentPrompt":"Can you recompute the expected catalog cost for my last inference run — it used GPT-4o, standard service tier, 12k input tokens, 2k output tokens, with cache reads enabled — and tell me if the recorded charge of $0.18 is an overbill and which steps are unpriced?","exampleUseCases":[{"title":"LLM invoice reconciliation for finance team","prompt":"We got billed $4.32 for last night's batch job across OpenAI and Anthropic — can you recompute the catalog price step by step using standard tier, 50k input tokens, 8k output tokens, and cache writes enabled, and flag any overbilling or unpriced steps?"},{"title":"Detecting cache billing anomalies","prompt":"I noticed our cache read cost looks too high for this artifact run — recompute what it should have been at the pro service tier with 100k context threshold and 5k cache reads, then show me the variance against the $1.20 we were charged."},{"title":"Multi-provider cost audit for agent pipeline","prompt":"Our agent pipeline hit three providers last run — can you recompute the per-step catalog prices for each one, flag any steps that came back unpriced, and give me per-provider totals so I can see where the cost discrepancy is?"}],"resultDescription":"Returns a structured breakdown of recomputed catalog prices per step, comparison against the recorded cost, identified overbilling variances, a list of unpriced steps, and per-provider cost subtotals.","failureModes":["Missing required artifact or usage dimensions returns a validation error","Unrecognized model or service tier causes unpriced step flags rather than hard errors","Malformed body (wrong bodyType or missing fields) returns a 400 or schema validation failure","Payment not included or insufficient USDC causes a 402 Payment Required response","Provider catalog data out of date may produce stale reference prices"],"whenToPreferThis":"Use this endpoint when you need to programmatically audit or reconcile AI inference billing — particularly for multi-step pipelines, multi-provider jobs, or when you suspect overbilling or catalog price drift. Prefer this over manual spreadsheet reconciliation or generic cost-estimation tools when you need machine-readable variance flags and per-provider breakdowns in an agentic workflow.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-20T12:35:31.183Z","isFirstParty":false,"canonicalSlug":"ddg-cost-recompute-artifact-billing-audit-0ff84d08"}