{"uid":"cap_gqFMvC6uSQtfPBFYPltUJ","slug":"delx-commerce-absolute-value-abs-n-c83e97e8","name":"Delx Commerce — Absolute Value (abs-n)","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/abs-n?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"value":{"type":"number","description":"Input field: value."}}},"responseSchema":{"type":"json","example":{"value":5.5,"schema":"delx/util-abs-n/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_79tjTkoYTjsmhjcH5qF_O","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":"Computes the absolute value of a given number, returning a non-negative result, via a pay-per-result micro-API with USDC payment on Base/Solana.","exampleAgentPrompt":"What's the absolute value of -5.5? Use the Delx abs-n utility and charge my USDC wallet $0.001 for the result.","exampleUseCases":[{"title":"Normalize negative sensor readings","prompt":"I'm getting temperature delta readings and some are negative — can you run -12.7 through the Delx abs-n endpoint to get the absolute magnitude?"},{"title":"Financial loss calculation cleanup","prompt":"My profit/loss column has -340.5 and I need the absolute dollar amount, not the sign — run it through the abs-n API and give me the result."},{"title":"Distance calculation in agent pipeline","prompt":"I have a positional offset of -88.2 units and need the unsigned distance — can you call the Delx abs-n micro-API with that value?"}],"resultDescription":"A JSON object containing the absolute (non-negative) value of the input number, along with the schema identifier 'delx/util-abs-n/v1'. For example, input -5.5 returns {value: 5.5, schema: 'delx/util-abs-n/v1'}.","failureModes":["Missing or non-numeric 'value' field in request body results in a validation error","Payment failure (insufficient USDC balance or x402 handshake failure) results in a 402 Payment Required response","Malformed JSON body returns a 400 Bad Request","Network timeout or service unavailability returns a 5xx error"],"whenToPreferThis":"Choose this endpoint when an AI agent pipeline needs a verifiable, pay-per-use absolute value computation with on-chain payment proof via x402, especially in automated workflows on Base or Solana where auditability of each computation matters. It is not suitable for bulk batch operations or when a local math library is available.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T04:40:10.053Z","isFirstParty":false,"canonicalSlug":"delx-commerce-absolute-value-abs-n-c83e97e8"}