Skip to content
Fourohtwo

agents.writerslogic.com/api/v1/print-estimate

Given an image's pixel size and a print size (inches, millimetres or centimetres) plus optional bleed, margin and target ppi, returns the effective ppi over trim plus bleed, whether it meets the target, the pixel count a target ppi needs, the largest print size a target ppi allows, the safe area, and the exact uncompressed bitmap size. Built for print-on-demand, layout and image-prep agents; the t

BaseAnswering
POSThttps://agents.writerslogic.com/api/v1/print-estimate

Uptime100% of 3 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://agents.writerslogic.com/api/v1/print-estimate", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"unit":"in","bleed":0.125,"widthPx":3000,"heightPx":2000,"targetPpi":300,"printWidth":10,"printHeight":6.667}),
});
console.log(await res.json());

Example input

{
  "unit": "in",
  "bleed": 0.125,
  "widthPx": 3000,
  "heightPx": 2000,
  "targetPpi": 300,
  "printWidth": 10,
  "printHeight": 6.667
}