16trust / 100

Image Convert

by Vextorium in Documents & files

x402 APIFailing, checked 3 h ago

Convert and resize an image (URL or base64) to WebP, JPEG or PNG keeping aspect ratio and stripping EXIF/GPS metadata; returns base64 and a data URI with the size saving.

POST https://api.vextorium.com/v1/image-convert

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
0.0%
Response time
- typical, - slowest 5%
Last check
3 h ago: Amount "0.004" is not in atomic token units
Next check
any minute now

How to call it

# See the payment challenge (nothing is charged)
curl -i -X POST "https://api.vextorium.com/v1/image-convert" \
  -H "content-type: application/json" \
  -d '{"format":"webp","url":"https://vextorium.com/og.png","width":300}'
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%2Fapi.vextorium.com%2Fv1%2Fimage-convert
const res = await pay("https://api.vextorium.com/v1/image-convert", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"format":"webp","url":"https://vextorium.com/og.png","width":300}),
});
console.log(await res.json());

Example input

{
  "format": "webp",
  "url": "https://vextorium.com/og.png",
  "width": 300
}

Example output

{
  "base64": "UklGRvAUAABXRUJQVlA4IOQUAADwWACdASosAZ4APmEwlEckIyIhI5YaWIAMCWVu3rlmUJFxcErf0X4AyZuAB4nHSX8wH6yfrH7s39o9UX4ge4B/Wv8V6xH+Z9hv9sfYJ/U70uf3G+Dv+1/7P9wvgJ/ZP/760D1G7U/8D9WPr3+H/Mf138n/6LzeOTf9b+VXuX/Ffr7+U/tX7gflf81f6TwV+Cf956gX4//J/8H+af999NP6T97rlXmBeoPyn/Wf4/93PMx/p/Qv6j/578yPoA/j39E/0v5u/3r4d/yvgYfe…",
  "bytes_original": 166630,
  "bytes_result": 5368,
  "data_uri": "data:image/webp;base64,UklGRvAUAABXRUJQVlA4IOQUAADwWACdASosAZ4APmEwlEckIyIhI5YaWIAMCWVu3rlmUJFxcErf0X4AyZuAB4nHSX8wH6yfrH7s39o9UX4ge4B/Wv8V6xH+Z9hv9sfYJ/U70uf3G+Dv+1/7P9wvgJ/ZP/760D1G7U/8D9WPr3+H/Mf138n/6LzeOTf9b+VXuX/Ffr7+U/tX7gflf81f6TwV+Cf956gX4//J/8H+af999NP6T97rlXmBeoPyn/Wf4/93PMx/p/Qv6j/578yPo…",
  "format": "webp",
  "high": 158,
  "savings_pct": 96.8,
  "width": 300,
  "without_metadata": true
}

Security scan

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

Recent checks

WhenResultHTTPTimePrice
3 h agoAmount "0.004" is not in atomic token units40276 ms$0.004
8 h agoAmount "0.004" is not in atomic token units40296 ms$0.004
12 h agoAmount "0.004" is not in atomic token units402277 ms$0.004
16 h agoAmount "0.004" is not in atomic token units40283 ms$0.004
20 h agoAmount "0.004" is not in atomic token units40287 ms$0.004
24 h agoAmount "0.004" is not in atomic token units40278 ms$0.004
28 h agoAmount "0.004" is not in atomic token units40282 ms$0.004
32 h agoAmount "0.004" is not in atomic token units40289 ms$0.004
36 h agoAmount "0.004" is not in atomic token units40278 ms$0.004
41 h agoAmount "0.004" is not in atomic token units402222 ms$0.004
44 h agoAmount "0.004" is not in atomic token units40284 ms$0.004
2 days agoAmount "0.004" is not in atomic token units40283 ms$0.004
2 days agoAmount "0.004" is not in atomic token units40275 ms$0.004
2 days agoAmount "0.004" is not in atomic token units40285 ms$0.004
3 days agoAmount "0.004" is not in atomic token units402121 ms$0.004