{"uid":"cap_PiOKILxYWFil0YxZaHDjJ","slug":"delx-calibration-bucket-97fecf21","name":"Delx Calibration Bucket","description":"Bucket a probability into a calibration bin for reliability charts. Call when building simple calibration histograms from many forecasts. Returns bucket index and bounds 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/calibration-bucket?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"bins":{"type":"integer","description":"Input field: bins."},"prob":{"type":"number","description":"Input field: prob."}}},"responseSchema":{"type":"json","example":{"bins":10,"prob":0.73,"bucket":7,"schema":"delx/util-calibration-bucket/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_28ichd96BmUpmaAGoUxw_","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":"Maps a probability value to a discrete bucket index given a specified number of bins, useful for histogram-style binning in agent pipelines.","exampleAgentPrompt":"I have a probability score of 0.73 and I want to bin it into 10 equal-width buckets — which bucket does it land in?","exampleUseCases":[{"title":"Routing agent decisions by confidence tier","prompt":"My model returned a confidence score of 0.85 and I want to route it into one of 5 decision tiers — which bucket does 0.85 fall into across 5 bins?"},{"title":"Histogram slot assignment for analytics","prompt":"I'm building a histogram of model output probabilities using 20 bins — can you tell me which bin a probability of 0.42 belongs to?"},{"title":"Threshold-based workflow branching","prompt":"I need to classify a probability of 0.61 into one of 8 calibration buckets so my agent can branch to the right handler — what bucket index does that give me?"}],"resultDescription":"Returns a JSON object containing the echoed bins and prob inputs alongside a zero-based integer bucket index indicating which bin the probability falls into, plus a schema identifier string (e.g. delx/util-calibration-bucket/v1).","failureModes":["Missing required field bins or prob returns a 4xx validation error","prob values outside [0, 1] may yield out-of-range bucket indices or an error","Non-integer bins value causes schema validation failure","bins value of 0 or negative likely causes a division error","Network or payment failure returns a 402 or 5xx status"],"whenToPreferThis":"Use this endpoint when an agent needs to discretize a continuous probability or confidence score into a fixed number of integer bins — for example, to route downstream logic, build histogram tallies, or tier model outputs into categories. Prefer this over implementing custom bucketing logic inline when operating in a Delx-native agent pipeline where deterministic, schema-versioned utility calls are preferred for auditability.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-19T12:40:10.566Z","isFirstParty":false,"canonicalSlug":"delx-calibration-bucket-97fecf21"}