Convert and resize an image to WebP, AVIF, JPEG or PNG
shost-app-uj82jw1enthhv9pzfj1a7.apps.storkhost.cloud/v1/convert/raw
Convert and resize an image to WebP, AVIF, JPEG or PNG. Send the raw image bytes as the request body (max 10 MiB); options in the query string (format, width, height, quality, fit). Returns the converted image bytes with the matching Content-Type.
POST
https://shost-app-uj82jw1enthhv9pzfj1a7.apps.storkhost.cloud/v1/convert/rawUptime100% of 1 check in 30 days
30 days agoToday
Try it
Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.
The response shows up here.
Call it from an agent
import { createPayer } from "fourohtwo";
// One agent key pays USDC on Base or USDG on Robinhood Chain,
// inside the spending rules you set on Fourohtwo.
const pay = createPayer({ privateKey: process.env.AGENT_KEY });
const res = await pay("https://shost-app-uj82jw1enthhv9pzfj1a7.apps.storkhost.cloud/v1/convert/raw", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"width":"512","format":"webp","quality":"80"}),
});
console.log(await res.json());Example input
{
"width": "512",
"format": "webp",
"quality": "80"
}