I

Imagcon · Routes Resize Image

by Imagcon

POSTBase

$0.02

per call · USD Coin on Base

Resize any image to exact dimensions or social-media presets — Open Graph (1200x630), Twitter card, YouTube thumbnail, Instagram, LinkedIn. Smart fit modes avoid distortion: cover (focal-point crop), contain (padded), blur-fill letterbox, stretch. Deterministic and instant — no AI, no account required. Returns the resized PNG/JPEG/WebP directly. Images from generate-image resize free at /routes/x402/resize-generated (pass your image_key).

Endpoint

POST https://imagcon.app/routes/x402/resize-image

4

Calls / 30d

1

Unique payers / 30d

Aug 29

Last called

exact

Payment scheme

Call this service

TypeScript · @x402/fetch
import { wrapFetchWithPayment } from "@x402/fetch";
import { privateKeyToAccount } from "viem/accounts";

const account = privateKeyToAccount(process.env.PRIVATE_KEY);
const fetchWithPay = wrapFetchWithPayment(fetch, account);

const res = await fetchWithPay("https://imagcon.app/routes/x402/resize-image", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    "image": "<binary PNG/JPEG/WebP file>",
    "mode": "blur",
    "preset": "og"
  }),
});
const data = await res.json();
cURL
curl -X POST \
  "https://imagcon.app/routes/x402/resize-image" \
  -H "Content-Type: application/json" \
  -d '{"image":"<binary PNG/JPEG/WebP file>","mode":"blur","preset":"og"}' \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "note": "image/png resized image bytes"
}

Payment details

Pay to0x1f2a484ef654d49c58c625b09e78b538501d652d
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase
Schemesexact

Is this your API?

Pin it to the top of Media & Generation and the homepage with a featured placement.

Get featured →

More from Imagcon & similar services