Image Optimizer, Smart Crop & Quality API
Published by @mdforge
· Verified
99.98% uptime
~45ms avg
AI Score 94/100
Compress images to WebP/AVIF/JPEG/PNG, attention-based smart crop, generate social media size packs, and score blur & exposure.
Try it live
https://api.indieapis.com/v1/image-optimizer-studio/optimize
Compress image (image_base64, image_url, or svg) to WebP/AVIF/JPEG/PNG with byte savings report.
Response
Press Run to call the live API
{
"ok": true
}
Overview
Compress images to WebP/AVIF/JPEG/PNG, attention-based smart crop, generate social media size packs, and score blur & exposure.
Self-hosted production API with hard monthly spend caps ($0 surprise overages) and native Streamable HTTP MCP support.
Gateway Headers & Hard Caps
Every response includes X-Quota-Limit, X-Quota-Used, X-Quota-Remaining, and X-Quota-Reset.
When your monthly quota is reached, the gateway returns 429 QUOTA_EXCEEDED so you are never billed surprise overages.
4 endpoints
| Method | Path | Parameters | Description |
|---|---|---|---|
| POST | /optimize |
svg, format, quality
|
Compress image (image_base64, image_url, or svg) to WebP/AVIF/JPEG/PNG with byte savings report. |
| POST | /smart-crop |
svg, width, height, strategy
|
Intelligently crop an image around focal regions using libvips attention or entropy strategy. |
| POST | /social-pack |
svg, presets
|
Generate ready-to-post OpenGraph, Instagram, X/Twitter, YouTube & avatar sizes in one call. |
| POST | /quality |
svg
|
Compute Laplacian sharpness/blur detection, brightness, exposure assessment, entropy & dominant color. |