Skip to content
Fourohtwo

A rotated or flipped image for the URL or base64 you send

images-api.gedx402.com/v1/images/rotate

A rotated or flipped image for the URL or base64 you send. POST { url | image_base64, rotate? | flip?, format? } on images-api.gedx402.com. rotate is 90/180/270; flip is h/v/hv (need one). format is webp, jpeg, png, or avif. Returns { image_base64, content_type, byte_length, rotate?, flip? }. Example: { url: "https://gedx402.com/logo.png", rotate: 90 }. x402 settlement USDC per request (see unpaid

BaseUnchecked
POSThttps://images-api.gedx402.com/v1/images/rotate

UptimeNot checked yet

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://images-api.gedx402.com/v1/images/rotate", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"format":"webp","rotate":90,"url":"https://gedx402.com/logo.png"}),
});
console.log(await res.json());

Example input

{
  "format": "webp",
  "rotate": 90,
  "url": "https://gedx402.com/logo.png"
}

More from GEDX402 Images API