{"uid":"cap_lZj7U-y7HC3vTmSMdJo2M","slug":"delx-commerce-unit-economics-calculator-6b9fad30","name":"Delx Commerce Unit Economics 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/unit-economics?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"cost":{"type":"number","description":"Input field: cost."},"price":{"type":"number","description":"Input field: price."}}},"responseSchema":{"type":"json","example":{"cost":0.002,"price":0.01,"schema":"delx/util-unit-economics/v1","profitable":true,"gross_profit":0.008,"gross_margin_percent":80}},"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_22DAL4LPsKBMAHwLCrEJ7","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":"Computes unit economics (gross profit, gross margin) given a cost and price, returning a profitability verdict","exampleAgentPrompt":"Can you calculate the unit economics for my product — my cost is $0.002 and I'm selling it for $0.01? I want to know the gross profit, gross margin percentage, and whether it's actually profitable.","exampleUseCases":[{"title":"SaaS pricing profitability check","prompt":"My SaaS API call costs me $0.005 to serve and I'm charging customers $0.02 per call — can you run the unit economics and tell me the gross margin and whether I'm profitable?"},{"title":"E-commerce product margin analysis","prompt":"I'm selling a product that costs me $12 to make and I'm listing it at $30 — what's the gross profit per unit and gross margin percentage, and am I in good shape?"},{"title":"Agent cost validation before launch","prompt":"Before I launch this agent service, can you check the unit economics? My cost per result is $0.003 and I'm charging $0.008 — is that profitable and what's the margin?"}],"resultDescription":"Returns a JSON object with the original cost and price, a boolean 'profitable' flag, computed gross_profit (price minus cost), gross_margin_percent as a percentage, and a schema identifier string (delx/util-unit-economics/v1).","failureModes":["Missing cost or price fields returns a validation error","Non-numeric values for cost or price cause a parse error","Price of zero may cause division-by-zero in margin calculation","Network or payment failure (x402 USDC payment not verified) blocks the response"],"whenToPreferThis":"Use this endpoint when you need a quick, verifiable, pay-per-call computation of unit economics (gross profit and margin) without setting up any account or subscription. Ideal for AI agents that need to programmatically evaluate pricing decisions on-the-fly using USDC micropayments via the x402 protocol.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T00:53:49.523Z","isFirstParty":false,"canonicalSlug":"delx-commerce-unit-economics-calculator-6b9fad30"}