{"uid":"cap_GIrU-uOjNNfs1VkRC1PJ3","slug":"delx-probability-clamp-ed0b7968","name":"Delx Probability Clamp","description":"Clamp a probability into (eps, 1−eps) for stable odds/math. Call when preventing 0/1 probs from blowing up logs and odds. Returns clamped probability as deterministic JSON for $0.001 USDC via x402 on Base. First-party local math only—no RPC, live market feed, API keys, storage, or mediagen. Advisory only; the caller owns capital, risk, and production controls.","url":"https://api.delx.ai/api/v1/x402/prob-clamp?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"prob":{"type":"number","description":"Input field: prob."}}},"responseSchema":{"type":"json","example":{"prob":0.999999999,"input":1.2,"schema":"delx/util-prob-clamp/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_3CxF8AicdFKdb_od9j9GF","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":"Clamps a floating-point probability value to the valid [0, 1] range, returning the corrected value.","exampleAgentPrompt":"Clamp this probability value 1.2 to make sure it's within the valid 0 to 1 range.","exampleUseCases":[{"title":"Sanitize model output confidence score","prompt":"My model returned a confidence score of 1.0000000023 — can you clamp it to a valid probability so I can safely pass it downstream?"},{"title":"Fix negative probability from numerical drift","prompt":"My simulation produced a probability of -0.003 due to floating point drift — clamp it to the 0-1 range before I log it."},{"title":"Normalize scraped likelihood values","prompt":"I scraped a predicted win probability of 1.15 from a sports feed — can you clamp it to a proper probability value?"}],"resultDescription":"Returns a JSON object containing the clamped probability (guaranteed to be within [0,1]), the original input value, and a schema identifier string ('delx/util-prob-clamp/v1') for traceability.","failureModes":["Missing or non-numeric 'prob' field returns a validation error","Non-finite values (NaN, Infinity) may cause unexpected behavior","Payment failure (402) if USDC balance is insufficient for the $0.001 call cost"],"whenToPreferThis":"Use this endpoint when you need a simple, fast, reliable micro-service to clamp a probability or confidence score to [0,1] without implementing the logic yourself — especially useful inside agent pipelines where numerical drift, model output overflow, or scraping artifacts can produce out-of-range floats. Prefer this over custom code when you want auditability via the schema tag on the response.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-23T01:11:34.334Z","isFirstParty":false,"canonicalSlug":"delx-probability-clamp-ed0b7968"}