South Star

Image Toolkit Convert Resize Compress Watermark API

Free tier included · Media
Convert, resize, compress, strip EXIF, watermark, overlay, batch images, and extract color palettes.

Image Toolkit API covers format conversion (including HEIC/HEIF input), resizing, compression, EXIF stripping, metadata reading, watermarking, overlaying, batch processing, and color palette extraction. It is built for developers who need reliable, privacy-friendly image processing without running their own ImageMagick or Pillow stack.

Every request is processed in memory and nothing is persisted: uploads are decoded in RAM, and files larger than 1 MB are spooled by Starlette into a temporary OS file that is deleted as soon as the request finishes. There are no databases, no request logs and no cross-request state, so PII-heavy workflows stay private. Processing is fast — HEIC→JPG in ~54 ms, a 2000×1500 JPG→WebP in ~206 ms — and responses are tiny JSON or compact binary blobs.

Who needs it: (1) e-commerce backends generating product thumbnails and converting supplier HEIC photos to web-friendly JPG/PNG/WebP; (2) mobile/web apps letting users crop, compress and watermark uploads before storage; (3) marketing teams compositing logos, watermarks and text overlays onto batches of photos; (4) no-code/low-code platforms adding image features without maintaining libraries.

Honest limits: uploads are capped at 20 MB, total pixels at 30,000,000 (source) and 64,000,000 (resize output), dimensions at 10,000 px per side, and upscaling is limited to 4×. `/batch/convert` accepts 1–100 files per call. `/watermark` and `/overlay` take 1–5 layers. `/palette` extracts 2–10 colours. These are hard server-side guards, not soft quotas.

Endpoints

MethodPathWhat it does
GET/Service info: name, version, and links to the docs and health endpoints.
GET/healthLiveness probe; returns {"status": "ok"} while the worker accepts requests.
POST/convertConvert an uploaded image to jpg, png, webp or heif. Transparent pixels are flattened onto white for jpg. Returns the binary image with a matching Content-Type.
POST/resizeResize an image keeping the aspect ratio. Exactly one of width, height or max_px must be given. max_px fits the image inside a square of that size and never upscales.
POST/compressRe-encode an image in its source format with the given quality. If the re-encoded file is not smaller than the upload, the original file is returned unchanged.
POST/strip-exifRemove EXIF and ICC metadata (privacy) and return the image in its source format. PNG output is lossless; JPEG/WebP/HEIF output is re-encoded with the given quality.
POST/metadataReturn JSON metadata of the uploaded image: format, colour mode, dimensions, megapixels, frame count, animation flag, EXIF presence and tag count, ICC profile flag and file size.
POST/exifDump the flat EXIF tag table of the uploaded image and, when present, the decoded GPS IFD with decimal latitude/longitude. Files without EXIF return has_exif=false.
POST/paletteQuantize the uploaded image and return the dominant colours sorted by share, each with a hex value, an RGB triplet and its percentage of the pixels.
POST/convert/fullRich single-image conversion: outputs jpg, png, webp, tiff, gif, heif or bmp and returns JSON with the encoded image as base64 plus format, mime, width, height and size_bytes. Optional resize with three modes: 'fit', 'crop' and 'stretch'. strip_metadata=true (default) removes EXIF/GPS/ICC for privacy.
POST/batch/convertConvert up to 100 images in one request. Each result carries index, filename, ok and, on success, format, mime, width, height, size_bytes and the encoded image as base64. A file that cannot be decoded does not fail the whole batch.
POST/watermarkStamp a text or image watermark onto a photo and return it as base64 JSON. Send either text or watermark_file, never both.
POST/overlayComposite up to 5 images onto a base image and return the composition as base64 JSON.

Quick start

curl -X POST "https://img.p.rapidapi.com/convert" \
  -H "X-RapidAPI-Key: YOUR_RAPIDAPI_KEY" \
  -H "X-RapidAPI-Host: img.p.rapidapi.com" \
  -F "file=@photo.heic" \
  -F "target=jpg" \
  -F "quality=85"

FAQ

Are my images stored or logged after processing?

No. Every request is processed in memory and nothing is persisted. Files larger than 1 MB are spooled into a temporary OS file that is deleted as soon as the request finishes. There are no databases and no request logs.

What file types and sizes are supported?

Any image Pillow (with pillow-heif) can decode, including HEIC/HEIF input. Uploads are capped at 20 MB, source pixels at 30,000,000, output pixels at 64,000,000, and dimensions at 10,000 px per side. Upscaling is limited to 4×.

How many images can I process in one batch request?

`/batch/convert` accepts 1–100 files per call. `/overlay` and `/watermark` accept 1–5 layers. `/palette` extracts 2–10 colours.

What happens if a batch file fails to decode?

A file that cannot be decoded does not fail the whole batch. It comes back with `ok=false` and an error code, while the remaining files are processed normally.

Try Image Toolkit Convert Resize Compress Watermark free

Free tier on every plan. Get an API key and start calling in under a minute.

Open on RapidAPI

Related APIs