N

Netzhandwerker Agent Tools · Image Preflight

by Netzhandwerker Agent Tools

POSTBase

$0.002

per call · USD Coin on Base

Liest Format, Masse, Farbraum, Bittiefe, Alphakanal, Bewegtbild, ICC-Profil und Metadaten direkt aus dem Dateikopf von PNG, JPEG, GIF, WebP und SVG. Prueft gegen selbst gesetzte Anforderungen an Groesse, Seitenverhaeltnis, Format und Metadatenfreiheit und meldet Fallstricke wie CMYK, EXIF mit Ortsangabe oder sehr grosse Pixelmengen.

Endpoint

POST https://tools.halowerk.com/v1/image/preflight

1

Calls / 30d

1

Unique payers / 30d

Aug 16

Last called

exact

Payment scheme

Call this service

TypeScript · @x402/fetch
import { wrapFetchWithPayment } from "@x402/fetch";
import { privateKeyToAccount } from "viem/accounts";

const account = privateKeyToAccount(process.env.PRIVATE_KEY);
const fetchWithPay = wrapFetchWithPayment(fetch, account);

const res = await fetchWithPay("https://tools.halowerk.com/v1/image/preflight", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    "base64": "iVBORw0KGgoAAAANSUhEUgAAB4AAAAQ4CAYAAAD...",
    "requirements": {
      "aspect_ratio": "16:9",
      "max_bytes": 2000000,
      "min_width": 1200
    }
  }),
});
const data = await res.json();
cURL
curl -X POST \
  "https://tools.halowerk.com/v1/image/preflight" \
  -H "Content-Type: application/json" \
  -d '{"base64":"iVBORw0KGgoAAAANSUhEUgAAB4AAAAQ4CAYAAAD...","requirements":{"aspect_ratio":"16:9","max_bytes":2000000,"min_width":1200}}' \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "animated": false,
  "aspect_ratio": 1.7778,
  "bit_depth": 8,
  "bytes": 1482113,
  "chunks": [
    "IHDR",
    "iCCP",
    "eXIf",
    "IDAT",
    "IEND"
  ],
  "color_space": "rgba",
  "color_type": 6,
  "format": "png",
  "has_alpha": true,
  "has_exif": true,
  "has_icc": true,
  "has_text_metadata": false,
  "height": 1080,
  "hints": [
    "EXIF kann Ort und Geraet enthalten. Vor Veroeffentlichung entfernen."
  ],
  "interlaced": false,
  "issues": [],
  "megapixels": 2.07,
  "orientation": "quer",
  "passes": true,
  "width": 1920
}

Payment details

Pay to0x2880edfff13100677bf97a3cbdf3bc34771c4e5e
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase
Schemesexact

Is this your API?

Pin it to the top of Media & Generation and the homepage with a featured placement.

Get featured →

More from Netzhandwerker Agent Tools & similar services