{"uid":"cap_oJ2gxOBzVHGbgvtMLwrqm","slug":"fractal-scaling-api-be997fd8","name":"Fractal Scaling API","description":"Fractal scale operation - 0.02 USDC per successful request","url":"https://fractal-scaling-api.onrender.com/scale?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"properties":{}},"type":{"type":"string","const":"http"},"method":{"enum":["POST","PUT","PATCH"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"stats":{"type":"object"},"selected_indices":{"type":"array","items":{"type":"integer"}}}}}}}},"responseSchema":{"type":"json","example":{"stats":{"scale":0.5,"total":4,"selected":2,"reuse_from_previous":1,"max_coverage_distance":0.578,"mean_coverage_distance":0.289,"weighted_mean_coverage_distance":0.289},"selected_indices":[3,0]}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","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.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_DH2xYxNE9Zc7zvgo7l2XC","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns deterministic progressive selection indices for a 2D point set at a given scale value between 0 and 1, enabling reversible multi-resolution subsampling.","exampleAgentPrompt":"I have a set of 2D points and I want to progressively scale them down to about 30% — give me the deterministic indices of the best-coverage representative subset at scale 0.3.","exampleUseCases":[{"title":"Multi-resolution map marker thinning","prompt":"I have 500 GPS coordinates on a map and I want to show only the most spread-out 20% of them at this zoom level — give me the indices of the representative points at scale 0.2."},{"title":"LOD point cloud downsampling","prompt":"I'm rendering a 3D scatter plot and need a level-of-detail version — progressively select the most coverage-optimal half of my 2D projected points at scale 0.5 and tell me which indices to keep."},{"title":"Adaptive survey site selection","prompt":"I have 80 candidate survey locations as 2D coordinates and I want to pick the most spatially representative 40% of them — use the fractal scaler at scale 0.4 to give me the best selection indices."}],"resultDescription":"A JSON object containing: an array of selected_indices (integers identifying which points from the input set were chosen), and a stats object with the scale value used, total point count, number selected, how many were reused from a previous scale level, and coverage quality metrics (max, mean, and weighted mean coverage distance).","failureModes":["Invalid scale value outside [0,1] range — likely returns a 400 error","Malformed or non-2D point data in the request body — parsing error","Empty point set provided — undefined behavior or error","Payment failure via x402 — request rejected without processing","Server cold-start latency on Render free tier causing timeout"],"whenToPreferThis":"Choose this endpoint when you need deterministic, reversible, coverage-optimal subsampling of a finite 2D point set at a specific fractional scale. It is especially useful when you need consistent indices across multiple scale levels (progressive refinement), spatial representativeness (maximum spread), and reproducibility. Prefer it over random sampling when determinism matters, and over grid-based thinning when your points are irregularly distributed.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-12-03T12:38:57.157Z","isFirstParty":false,"canonicalSlug":"fractal-scaling-api-be997fd8"}