x402 Image Tools
Resize an image at a URL to a width, a height or both, keeping the aspect ratio inside the box by default (cover, contain, inside, outside or fill), optionally converting it. Returns a signed URL of the result, valid for an hour.
- Category
- Images, audio & video
- Starting price
- $0.001
- Paid calls · 30 days
- 90
- Unique payers · 30 days
- 31
Paid endpoints
10 endpoints, sorted by usage. Prices are per request.
- POST/v1/resize
Resize an image at a URL to a width, a height or both, keeping the aspect ratio inside the box by default (cover, contain, inside, outside or fill), optionally converting it. Returns a signed URL of the result, valid for an hour.
$0.002Base17calls / 30d - POST/v1/watermark
Draw a line of text over an image at a corner, an edge or the center, with a size relative to the image width, a color and an opacity.
$0.003Base15calls / 30d - GET/v1/metadata
Format, dimensions, megapixels, bytes, channels, transparency, color space, bit depth, DPI, orientation, animation and pages, ICC profile, and EXIF camera details (make, model, date taken, exposure, aperture, ISO, focal length, GPS position) of an image at a URL.
$0.001Base8calls / 30d - POST/v1/thumbnail
A square thumbnail of an image, smart-cropped around its most interesting region, as WebP by default.
$0.002Base8calls / 30d - POST/v1/compress
Make an image smaller in bytes: re-encode it (mozjpeg for JPEG, palette quantization for PNG) with metadata removed, optionally scaled down to a maximum width or converted, and report how much was saved.
$0.002Base7calls / 30d - POST/v1/crop
Cut a region out of an image (left, top, width, height), or, without left and top, crop it to the given size around its most interesting region (libvips attention strategy).
$0.002Base7calls / 30d - POST/v1/edit
Apply up to 10 operations in order: rotate (angle), flip, flop, grayscale, blur (sigma), sharpen, negate, trim (cut uniform borders), tint (color), modulate (brightness, saturation, hue).
$0.002Base7calls / 30d - POST/v1/convert
Convert an image at a URL to another format, with an optional quality or lossless encoding. JPEG output gets a white background where the image was transparent.
$0.002Base7calls / 30d - GET/v1/colors
The dominant colors of an image with their share of it, and its average color, as hex and RGB, for palettes, theming and search.
$0.001Base7calls / 30d - GET/v1/placeholder
What a page shows while an image loads: its BlurHash, a tiny blurred WebP preview as a data URL, its average color and its dimensions.
$0.001Base7calls / 30d