81trust / 100
Proxy Image Resize
by Image Resize and Convert in Documents & files
x402 APIPassing, checked 3 h ago
Resize, crop-fit and convert images (PNG, JPEG, WebP, AVIF, GIF, TIFF, SVG input) to webp, png, jpeg or avif. Auto-rotates by EXIF. Use to shrink screenshots before sending them to a vision model, create thumbnails, or convert formats. Params: image_base64 or image_url (one required), width, height (max 4096), fit (inside default | cover | contain | fill), format (webp default), quality (1-100, default 80).
POST https://agentsvc.io/api/v1/proxy/image-resize
Last 30 days
All checks passedSome failedAll failedNot checked
- Uptime
- 100%
- Response time
- 26 ms typical, 26 ms slowest 5%
- Last check
- 3 h ago
- Next check
- any minute now
How to call it
# See the payment challenge (nothing is charged)
curl -i -X POST "https://agentsvc.io/api/v1/proxy/image-resize" \
-H "content-type: application/json" \
-d '{"format":"webp","image_url":"https://agentsvc.io/sample.png","width":130}'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.03:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fagentsvc.io%2Fapi%2Fv1%2Fproxy%2Fimage-resize
const res = await pay("https://agentsvc.io/api/v1/proxy/image-resize", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"format":"webp","image_url":"https://agentsvc.io/sample.png","width":130}),
});
console.log(await res.json());Example input
{
"format": "webp",
"image_url": "https://agentsvc.io/sample.png",
"width": 130
}Example output
{
"data": {
"format": "webp",
"height": 200,
"image_base64": "UklGRiQAAABXRUJQVlA4...",
"original": {
"format": "png",
"height": 800,
"size_bytes": 214000,
"width": 1280
},
"size_bytes": 6120,
"width": 320
},
"success": 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 | Passed | 402 | 26 ms | $0.0045 |