Free API
API key protected, free to use
Compress Image
Compress a single image to WebP with a 500px or 1200px target width.
Endpoint
POST /api/free/compress-imageFree tier: 5 RPM. Paid users: 500 RPM. Limits are shared across Free API endpoints.
Usage notes
- Accepts image/* request bodies or multipart form-data with an image/file field.
- Returns a WebP image response.
API example
curl -X POST "https://api.apiany.ai/api/free/compress-image?size=1200" \ -H "Authorization: Bearer $API_KEY" \ -H "Content-Type: image/png" \ --data-binary @input.png \ --output output.webp
Playground
Calls are sent from your browser to this site using your API key.
Image file *
Size *
Add an API key and required inputs to enable the request.POST /api/free/compress-image