13trust / 100

Resize Image

by lab.paidapis.net in Productivity & SaaS

x402 APIFailing, checked 2 h ago

Task-runner: resize an image (?url=, ?width=, ?height=, max 2000px each) and return it as a data URL. Priced at $0.02/output-megapixel (min $0.005) — sells compute, metered by resource use, not a flat fee.

GET https://lab.paidapis.net/api/resize-image

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
0.0%
Response time
- typical, - slowest 5%
Last check
2 h ago: Expected HTTP 402, got 500
Next check
any minute now

How to call it

# See the payment challenge (nothing is charged)
curl -i -X GET "https://lab.paidapis.net/api/resize-image?height=0&url=&width=0"
import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client().register(
  "eip155:8453",
  new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Flab.paidapis.net%2Fapi%2Fresize-image
const res = await pay("https://lab.paidapis.net/api/resize-image?height=0&url=&width=0");
console.log(await res.json());

Example input

{
  "height": 0,
  "url": "",
  "width": 0
}

Example output

{
  "format": "",
  "height": 0,
  "imageDataUrl": "",
  "resizedAt": "",
  "sizeBytes": 0,
  "width": 0
}

Security scan

  • No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
2 h agoExpected HTTP 402, got 500500395 ms-
6 h agoExpected HTTP 402, got 500500413 ms-
10 h agoExpected HTTP 402, got 500500425 ms-
14 h agoExpected HTTP 402, got 500500464 ms-
18 h agoExpected HTTP 402, got 500500391 ms-
23 h agoExpected HTTP 402, got 500500420 ms-
26 h agoExpected HTTP 402, got 500500142 ms-
31 h agoExpected HTTP 402, got 500500473 ms-
34 h agoExpected HTTP 402, got 500500479 ms-
39 h agoExpected HTTP 402, got 500500392 ms-