{"uid":"cap_pQFWX0ROrGp3xFE3sXvf6","slug":"one-engine-numeric-absolute-value-c14f2892","name":"ONE Engine Numeric Absolute Value","description":"Low-cost pay-per-call utility APIs for autonomous agents using x402 on Base.","url":"https://one-search.one-engine.workers.dev/v3/numeric/absolute/t4?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","required":["values"],"properties":{"max":{"type":"number"},"min":{"type":"number"},"size":{"type":"integer"},"digits":{"type":"integer"},"factor":{"type":"number"},"offset":{"type":"number"},"values":{"type":"array","description":"Finite numbers, maximum 1000"}}},"responseSchema":{"type":"object","additionalProperties":true},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.0015","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.0015/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0015","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0015","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_DmmYrcfil0-JloVVrYBXi","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0015","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 an array of numbers, with optional scaling, rounding, and range-filtering controls.","exampleAgentPrompt":"Take this list of numbers — [-3.7, 12.4, -0.5, 8.0, -99.1] — and give me the absolute value of each, rounded to 1 decimal place.","exampleUseCases":[{"title":"Magnitude from signed financial deltas","prompt":"I have daily P&L changes like [-150.25, 320.00, -87.50, 0.00, -412.75] — can you compute the absolute value of each so I can see the raw magnitude of movement regardless of direction, rounded to 2 decimal places?"},{"title":"Normalize sensor error readings","prompt":"These sensor error readings include negative values: [-0.023, 0.041, -0.117, 0.005, -0.089]. Get me the absolute value of each so I can work with error magnitudes only."},{"title":"Scale and clamp absolute values","prompt":"Take these numbers [-500, 200, -800, 150, -50, 900], compute their absolute values, scale everything by a factor of 0.01, and only return results between 0 and 5."}],"resultDescription":"A JSON object containing the computed absolute values of the input array, optionally rounded to a specified number of decimal digits, scaled by a factor, shifted by an offset, and filtered to a min/max range or truncated to a specified output size.","failureModes":["Array exceeds 1000 elements — request rejected","Non-finite values (NaN, Infinity) in input array — may error or be skipped","Payment not attached or insufficient — HTTP 402 returned","Invalid type for 'digits' (non-integer) — schema validation failure","Empty values array — may return empty result or error"],"whenToPreferThis":"Use this endpoint when an agent needs to programmatically compute absolute values on a batch of numbers (up to 1000) with optional rounding, scaling, offset, and range filtering — especially in autonomous pipelines where spinning up a code interpreter would be slower or unavailable. At $0.0015 USDC per call it is cost-effective for repeated lightweight math transformations in agentic workflows on Base.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T12:44:36.499Z","isFirstParty":false,"canonicalSlug":"one-engine-numeric-absolute-value-c14f2892"}