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
| When | Result | HTTP | Time | Price |
|---|---|---|---|---|
| 3 h ago | Amount "0.004" is not in atomic token units | 402 | 76 ms | $0.004 |
| 8 h ago | Amount "0.004" is not in atomic token units | 402 | 96 ms | $0.004 |
| 12 h ago | Amount "0.004" is not in atomic token units | 402 | 277 ms | $0.004 |
| 16 h ago | Amount "0.004" is not in atomic token units | 402 | 83 ms | $0.004 |
| 20 h ago | Amount "0.004" is not in atomic token units | 402 | 87 ms | $0.004 |
| 24 h ago | Amount "0.004" is not in atomic token units | 402 | 78 ms | $0.004 |
| 28 h ago | Amount "0.004" is not in atomic token units | 402 | 82 ms | $0.004 |
| 32 h ago | Amount "0.004" is not in atomic token units | 402 | 89 ms | $0.004 |
| 36 h ago | Amount "0.004" is not in atomic token units | 402 | 78 ms | $0.004 |
| 41 h ago | Amount "0.004" is not in atomic token units | 402 | 222 ms | $0.004 |
| 44 h ago | Amount "0.004" is not in atomic token units | 402 | 84 ms | $0.004 |
| 2 days ago | Amount "0.004" is not in atomic token units | 402 | 83 ms | $0.004 |
| 2 days ago | Amount "0.004" is not in atomic token units | 402 | 75 ms | $0.004 |
| 2 days ago | Amount "0.004" is not in atomic token units | 402 | 85 ms | $0.004 |
| 3 days ago | Amount "0.004" is not in atomic token units | 402 | 121 ms | $0.004 |