📦
Image Compression API
Compress images intelligently to reduce file size while maintaining visual quality. Perfect for web performance optimization.
API Endpoint
POST /v1/compressParameters
| Name | Type | Required | Description |
|---|---|---|---|
| url | string | Yes | URL of the image to compress |
| quality | integer | No | Output quality 1-100 (default: 80) |
| format | string | No | Output format: png, jpeg, webp |
Quick Example
curl -X POST "https://api.toolcenter.dev/v1/compress" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"url": "https://example.com/large-image.png", "quality": 75}' \
--output compressed.png
Features
- Smart lossy and lossless compression
- Supports PNG, JPEG, and WebP formats
- Adjustable quality settings
- Up to 80% size reduction
- Preserves image metadata optionally
Use Cases
Optimize images for faster page load
Reduce bandwidth costs for image-heavy sites
Batch compress user-uploaded images
Prepare images for mobile-first experiences
Start Using Image Compression API for Free
500 free API calls per month. No credit card required.
Get Started Free