{"uid":"cap_bf6E5JOUIBe_u4DjiXUZM","slug":"one-engine-linear-scale-t10-1bbf1c5e","name":"ONE Engine Linear Scale (t10)","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/linear-scale/t10?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.03","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.03/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.03","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.03","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_N99v-aV1NKfERY6RQbcod","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.03","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Applies a linear scale transformation to an array of numeric values, rescaling them to a target range with optional rounding and offset controls.","exampleAgentPrompt":"Scale these numbers [12, 45, 7, 99, 33] to a range of 0 to 100 with 2 decimal places of precision.","exampleUseCases":[{"title":"Normalize ML feature values","prompt":"I have a list of raw feature values [0.5, 3.2, 7.8, 1.1, 5.5] that I need normalized between 0 and 1 with 4 decimal digits before feeding them into my model — can you rescale them?"},{"title":"Scale survey scores to percentage","prompt":"Take these survey response scores [1, 3, 2, 5, 4, 3, 2] and rescale them to a 0–100 percentage range, rounded to whole numbers."},{"title":"Map sensor readings to display range","prompt":"I have raw temperature sensor readings [210, 450, 380, 175, 520] and I need them mapped to a 0–255 display range with no decimal places — can you apply a linear scale?"}],"resultDescription":"A JSON object containing the linearly scaled version of the input array, with values mapped to the specified min/max range and rounded to the requested number of digits, optionally adjusted by a scale factor and offset.","failureModes":["Input array contains non-finite numbers (Infinity, NaN) — rejected as values must be finite","Array exceeds 1000 elements — request will fail due to size limit","Missing required 'values' field — returns validation error","min greater than max — may produce inverted or unexpected results","Payment not included or insufficient — HTTP 402 returned before processing"],"whenToPreferThis":"Use this endpoint when you need a fast, cheap, stateless linear normalization of a numeric array with fine-grained control over the output range, rounding, and offset — especially within an autonomous agent pipeline that already uses x402/Base micropayments. Prefer it over general-purpose math libraries when you need a hosted, pay-per-call solution requiring no infrastructure setup.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T12:44:36.759Z","isFirstParty":false,"canonicalSlug":"one-engine-linear-scale-t10-1bbf1c5e"}