Start Using WebP Today

Boost your Google PSI scores by serving next-gen image formats.
Convert uploads instantly before saving them to S3.

API Reference

Before

1.2 MB

Standard PNG

After

120 KB

Optimized WebP

How it works

When a user uploads a profile picture or content image, don't just save it raw. Send it to /v1/optimize first. We use the high-performance Sharp engine to resize, compress, and convert the image to WebP format, stripping unnecessary metadata while preserving visual quality.

cURL Example

curl -X POST https://rocketutils.dev/v1/optimize \
  -H "x-api-key: YOUR_KEY" \
  -F "image=@photo.jpg" \
  --output optimized.webp