Skip to content
Fourohtwo

Image tools

rengi.dev/v1/image-tools/diff

Image tools: Pixel diff of two images for visual regression: share of changed pixels, a same/different verdict, boxes around what changed, a diff overlay and a side-by-side sheet. Tolerant of antialiasing noise. Full schema: https://rengi.dev/v1/image-tools/schema

BaseSolanaUnchecked
POSThttps://rengi.dev/v1/image-tools/diff

UptimeNot checked yet

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

import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain,
// inside the spending rules you set on Fourohtwo.
const pay = createPayer({ privateKey: process.env.AGENT_KEY });
const res = await pay("https://rengi.dev/v1/image-tools/diff", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"aUrl":"https://rengi.dev/samples/photo.jpg","bUrl":"https://rengi.dev/samples/photo-edited.jpg"}),
});
console.log(await res.json());

Example input

{
  "aUrl": "https://rengi.dev/samples/photo.jpg",
  "bUrl": "https://rengi.dev/samples/photo-edited.jpg"
}

More from Rengi Forge