New users get free credits - no credit card required Get started
Free API
API key protected, free to use

Flexible Image Compression

Resize and recompress a single image with custom output format, size, and quality.

Endpoint
POST /api/free/compress-image-stream
Free tier: 5 RPM. Paid users: 500 RPM. Limits are shared across Free API endpoints.

Usage notes

  • Use size=custom with width between 1 and 8192.
  • Uses local Sharp processing; no third-party compression key is required.

API example

curl -X POST "https://api.apiany.ai/api/free/compress-image-stream" \
  -H "Authorization: Bearer $API_KEY" \
  -F "image=@input.png" \
  -F "format=webp" \
  -F "size=custom" \
  -F "width=1024" \
  -F "quality=82" \
  --output output.webp

Playground

Calls are sent from your browser to this site using your API key.

Image file *
Output format
Size
Custom width
Quality
Add an API key and required inputs to enable the request.POST /api/free/compress-image-stream