{"uid":"cap_ZjTINsSQns4p5mdqaNNku","slug":"delx-commerce-safe-division-api-4e136696","name":"Delx Commerce Safe Division API","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/safe-div?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"a":{"type":"integer","description":"Input field: a."},"b":{"type":"integer","description":"Input field: b."}}},"responseSchema":{"type":"json","example":{"ok":true,"value":2.5,"schema":"delx/util-safe-div/v1"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_diDCzt07cTsN5T2lFiPWN","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Performs safe integer division, returning a decimal result without throwing on divide-by-zero, paid per call via USDC on Base/Solana.","exampleAgentPrompt":"Can you safely divide 10 by 4 and give me the result as a decimal?","exampleUseCases":[{"title":"Safe ratio calculation in pipeline","prompt":"I need to divide 150 by 6 without my workflow breaking if the denominator ever becomes zero — can you run a safe division and give me the result?"},{"title":"Prevent divide-by-zero crash","prompt":"Divide 0 by 0 safely for me — I need the API to return a handled result instead of throwing an error so my agent can continue."},{"title":"Compute average or share fraction","prompt":"I have a total of 500 units split among 20 participants — can you divide 500 by 20 and give me each person's share?"}],"resultDescription":"A JSON object with an 'ok' boolean indicating success, a 'value' field containing the floating-point quotient of a divided by b (or a safe fallback on divide-by-zero), and a 'schema' string identifying the response version (e.g. 'delx/util-safe-div/v1').","failureModes":["Missing required field 'a' or 'b' returns a validation error","Non-integer inputs may be rejected per schema","Payment failure via x402 results in 402 response and no computation","Network timeout returns no result"],"whenToPreferThis":"Choose this endpoint when you need arithmetic division in an agent pipeline where divide-by-zero must be handled gracefully rather than raising an exception, and when you want a verifiable, pay-per-use computation with no signup overhead. It is not a general-purpose calculator — use it specifically for safe integer division.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T00:53:58.416Z","isFirstParty":false,"canonicalSlug":"delx-commerce-safe-division-api-4e136696"}