Compare two screenshots pixel by pixel
bild.halowerk.com/v1/visual-regression
Compare two screenshots pixel by pixel: count of changed pixels, ratio, pass/fail against your tolerance, bounding boxes of changed regions and a highlighted diff image (PNG). Decodes both images in a resource-limited child process and compares every pixel with the perceptual YIQ colour difference of Kotsarenko and Ramos (2010) against a threshold (0 = exact, default 0.1), blending semi-transparen
POST
https://bild.halowerk.com/v1/visual-regressionUptime100% 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/visual-regression", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"baseline_base64":"iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAG0lEQVR4nGP4T2XAMGrgqIGjBo4aOGrgSDUQAOdROht+5XF2AAAAAElFTkSuQmCC","candidate_base64":"iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAHklEQVR4nGP49evXf2pihlEDRw0cNXDUwFEDR6qBAK7jIqvwSltdAAAAAElFTkSuQmCC","diff_image":false,"threshold":0.01}),
});
console.log(await res.json());Example input
{
"baseline_base64": "iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAG0lEQVR4nGP4T2XAMGrgqIGjBo4aOGrgSDUQAOdROht+5XF2AAAAAElFTkSuQmCC",
"candidate_base64": "iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAHklEQVR4nGP49evXf2pihlEDRw0cNXDUwFEDR6qBAK7jIqvwSltdAAAAAElFTkSuQmCC",
"diff_image": false,
"threshold": 0.01
}