Optimize or convert an image (WebP, AVIF, JPEG)

Send multipart file, JSON { image_url }, or raw bytes. Optional format, quality (1-100), width (16-4096). Returns the image bytes; add ?json=1 for JSON with base64.

post/v1/optimize

Request

  • Base URL: https://mcp.cleanor.app
  • URL: https://mcp.cleanor.app/v1/optimize
  • Auth: none declared

Request body

image_urlstring uri required
format'webp' | 'avif' | 'jpeg'
qualityinteger
widthinteger

Response

The optimized image.

Changes

No recorded changes to this operation across all 1 revision of this API.