detect.halowerk.com/v1/cms/cms-squared-euclidean-distance-field
Returns the claimed exact squared Euclidean distance field checked for every raster cell rather than using Manhattan or chamfer distances, for an agent that pads an exported CMS icon mask.
POST
https://detect.halowerk.com/v1/cms/cms-squared-euclidean-distance-fieldUptime100% of 1 check in 30 days
30 days agoToday
Try it
Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.
The response shows up here.
Call it from an agent
// npm install fourohtwo
import { createPayer } from "fourohtwo";
// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://detect.halowerk.com/v1/cms/cms-squared-euclidean-distance-field", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"artifact":{"claimed_squared_distances":[9,5,2,1,2,5,4,4,1,0,1,4,1,1,1,0,1,4,0,0,1,1,1,2,1,0,1,1,0,1,2,1,0,1,0,1],"foreground":[0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,1,0,0,1,1,0,0,0,0,0,1,0,0,1,0,0,0,1,0,1,0],"height":6,"width":6}}),
});
console.log(await res.json());Example input
{
"artifact": {
"claimed_squared_distances": [
9,
5,
2,
1,
2,
5,
4,
4,
1,
0,
1,
4,
1,
1,
1,
0,
1,
4,
0,
0,
1,
1,
1,
2,
1,
0,
1,
1,
0,
1,
2,
1,
0,
1,
0,
1
],
"foreground": [
0,
0,
0,
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
0,
1,
0,
0,
1,
1,
0,
0,
0,
0,
0,
1,
0,
0,
1,
0,
0,
0,
1,
0,
1,
0
],
"height": 6,
"width": 6
}
}