{"uid":"cap_bGKXbSLAO3dvPc25iEAzv","slug":"delx-commerce-calibration-bucket-f61e4cc0","name":"Delx Commerce Calibration Bucket","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/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_Ur0m9w2LHudmN2J3VWXLQ","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":"Converts a probability value and bin count into a discrete calibration bucket index for quantile/binning use cases.","exampleAgentPrompt":"I have a probability score of 0.73 — can you split the range into 10 equal bins and tell me which bucket that score falls into?","exampleUseCases":[{"title":"Binning model confidence scores","prompt":"My classifier outputs a confidence of 0.85 — split the probability range into 20 bins and tell me which bucket that falls into."},{"title":"Calibrating prediction quantiles","prompt":"I need to assign a probability of 0.42 to one of 5 calibration buckets — which bucket does it land in?"},{"title":"Histogram bin assignment for analytics","prompt":"For a histogram with 100 bins, which bucket does a probability of 0.07 belong to?"}],"resultDescription":"Returns a JSON object containing the original bin count, the input probability, the computed bucket index (zero- or one-based integer indicating which bin the probability falls into), and a schema identifier string 'delx/util-calibration-bucket/v1'.","failureModes":["Missing required fields (bins or prob) returns an error","Non-integer bins value causes a validation error","Probability value outside 0–1 range may return an error or unexpected bucket","Payment failure via x402 (insufficient USDC balance) blocks the request","Network or service unavailability returns a 5xx error"],"whenToPreferThis":"Use this endpoint when you need a lightweight, pay-per-call, no-signup way to discretize a probability value into a fixed number of bins — ideal for AI agents performing calibration, histogram construction, or quantile assignment at low cost ($0.001 USDC) without managing infrastructure. Prefer it over writing custom binning logic when you need verifiable, deterministic results on-chain via x402.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T04:57:46.307Z","isFirstParty":false,"canonicalSlug":"delx-commerce-calibration-bucket-f61e4cc0"}