Skip to content
Fourohtwo

Raster mask dilation budget

bild.halowerk.com/v1/raster-foreground-dilation-budget

Raster mask dilation budget: return how many additional pixels a single four-neighbor expansion would cover. Use it when an agent needs to estimate a one-pixel safety margin for an icon.

BaseAnswering
POSThttps://bild.halowerk.com/v1/raster-foreground-dilation-budget

Uptime100% of 5 checks 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://bild.halowerk.com/v1/raster-foreground-dilation-budget", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"image":"iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAAKUlEQVR4nGNgIAXIRa3+LxS6IgGvAgxFMEFsGK8CrFah6MTlBpJ8BQIACd4s1Aujus8AAAAASUVORK5CYII="}),
});
console.log(await res.json());

Example input

{
  "image": "iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAAKUlEQVR4nGNgIAXIRa3+LxS6IgGvAgxFMEFsGK8CrFah6MTlBpJ8BQIACd4s1Aujus8AAAAASUVORK5CYII="
}