{"uid":"cap_wCpD4hBWHHCLo_NpH5rl9","slug":"delx-commerce-cost-per-success-calculator-c0014740","name":"Delx Commerce — Cost-Per-Success Calculator","description":"Pay-per-result APIs for agents. No signup. Exact price. Verifiable delivery. USDC on Base + Solana via x402.","url":"https://commerce.delx.ai/api/v1/x402/cost-per-success?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"total_cost":{"type":"number","description":"Total cost incurred in the window."},"success_count":{"type":"number","description":"Number of successful deliveries."}}},"responseSchema":{"type":"json","example":{"schema":"delx/util-cost-per-success/v1","total_cost":12.5,"success_count":50,"cost_per_success":0.25}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","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.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_oNwWDdG7dKXFrxQ_oxD7A","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Calculates the cost per successful delivery given a total cost and a count of successful outcomes over a time window.","exampleAgentPrompt":"I ran 50 successful deliveries this window and spent $12.50 total — can you calculate my cost per success?","exampleUseCases":[{"title":"Agent fleet unit economics check","prompt":"My agent fleet completed 200 successful tasks this hour and the total cost was $48.00 — what was my cost per success?"},{"title":"Campaign cost efficiency reporting","prompt":"We ran a pay-per-result campaign: 75 successful deliveries, $18.75 total spend. Can you tell me the cost per successful outcome?"},{"title":"Budget optimization across runs","prompt":"Over the last window I spent $5.00 and got 25 successful results — compute my cost per success so I can benchmark against my $0.18 target."}],"resultDescription":"Returns a JSON object containing the schema identifier ('delx/util-cost-per-success/v1'), the original total_cost, the original success_count, and the computed cost_per_success as a decimal number (e.g. 0.25 for $0.25 per success).","failureModes":["Missing or zero success_count causes division-by-zero or validation error","Non-numeric values for total_cost or success_count cause a 400 bad request","Negative values for either field may produce unexpected or invalid results","Payment not provided or insufficient USDC triggers an x402 payment-required response"],"whenToPreferThis":"Use this endpoint when you need a quick, on-demand computation of cost-per-success unit economics without building your own division logic, especially within a pay-per-result agent workflow on Delx Commerce that already uses USDC micropayments via x402. It is ideal for lightweight, real-time cost reporting inside agentic loops where you want a schema-versioned, verifiable response rather than doing the arithmetic inline.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T00:54:08.721Z","isFirstParty":false,"canonicalSlug":"delx-commerce-cost-per-success-calculator-c0014740"}