{"uid":"cap_hFZFiBXWFylkzq6fFrqMW","slug":"delx-price-floor-5ebe8a0b","name":"Delx Price Floor","description":"Calculate the minimum price required for a target gross margin. Use it as a bounded preflight or analysis step inside an enterprise agent workflow before data, policy, integration, security, or commercial decisions reach production. Returns deterministic machine-readable JSON for $0.003 USDC via x402 on Base. Execution is first-party, local-only, stateless, memory-only, and has no paid upstream or input retention. Results are advisory; the caller remains responsible for authorization and produc…","url":"https://api.delx.ai/api/v1/x402/price-floor","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"cost":{"type":"number","description":"Input field: cost."},"target_margin_percent":{"type":"number","description":"Input field: target_margin_percent."}}},"responseSchema":{"type":"json","example":{"cost":0.002,"schema":"delx/util-price-floor/v1","formula":"cost / (1 - target_margin)","minimum_price":0.003333,"target_margin_percent":40}},"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_hHIBLmEjCZ2NZ1t6rCGU6","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":"Calculate the minimum selling price required to achieve a specified gross margin percentage given an input cost.","exampleAgentPrompt":"What's the minimum price I need to charge if my cost is $45 and I want at least a 35% gross margin?","exampleUseCases":[{"title":"SaaS product pricing preflight","prompt":"Before we publish the new plan, check: if our cost per user is $12, what's the minimum price we need to charge to hit a 60% gross margin?"},{"title":"E-commerce margin floor validation","prompt":"Our supplier cost for this item is $27.50 — what's the price floor if we need to maintain a 45% gross margin?"},{"title":"Agency proposal pricing check","prompt":"We're putting together a proposal and our delivery cost is $800. What's the minimum we should quote the client to achieve a 25% gross margin?"}],"resultDescription":"Returns a deterministic JSON object containing the calculated minimum price (price floor) required to achieve the specified gross margin percentage given the input cost, along with supporting margin metadata. Results are advisory and machine-readable.","failureModes":["Missing required fields (cost or target_margin_percent) returns validation error","Non-numeric or negative cost values may return error or undefined behavior","target_margin_percent of 100% or above is mathematically undefined (division by zero or negative divisor)","Payment failure via x402 returns 402 with payment details","Invalid JSON body returns 400 bad request"],"whenToPreferThis":"Use this endpoint when you need a fast, stateless, deterministic calculation of the minimum price required for a target gross margin — ideal as a preflight step in enterprise agent workflows before pricing decisions reach production. Prefer it over custom code when you want a zero-retention, auditable computation with no side effects and a consistent JSON response format.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T19:01:45.189Z","isFirstParty":false}