Image Compression API

Compress & Optimize
Images at Scale

Reduce image file sizes by up to 80% without quality loss. Convert formats, resize, and optimize with Sharp.js-powered API.

Quick Start

cURL
# Compress JPEG to WebP at 80% quality
curl -X POST \
  "https://api.cullx.com/v1/compress?quality=80&format=webp" \
  -H "x-api-key: YOUR_API_KEY" \
  -F "image=@photo.jpg"

# Resize and compress
curl -X POST \
  "https://api.cullx.com/v1/compress?quality=85&width=1200" \
  -H "x-api-key: YOUR_API_KEY" \
  -F "image=@large-photo.png"
JavaScript
const formData = new FormData();
formData.append('image', file);

const response = await fetch(
  'https://api.cullx.com/v1/compress?' +
  new URLSearchParams({
    quality: '80',
    format: 'webp',
    width: '1200'
  }),
  {
    method: 'POST',
    headers: { 'x-api-key': API_KEY },
    body: formData
  }
);

const { data } = await response.json();
console.log(`Saved ${data.compressionRatio}%`);

Powerful Features

Quality Control

Adjust compression quality from 1-100. Balance file size vs visual quality perfectly.

Format Conversion

Convert between JPEG, PNG, and WebP. Modern formats for better compression ratios.

Smart Resize

Resize to exact dimensions (1-4000px). Maintains aspect ratio with "fit inside" mode.

Sharp.js Powered

Industry-leading image processing library. Fast, reliable, production-tested.

Compression Stats

Get original size, compressed size, and savings percentage in every response.

Up to 10MB Files

Handle large images with ease. Perfect for user uploads and high-res photos.

Real-World Use Cases

🛒 E-Commerce Platforms

Optimize product images for faster page loads. Convert to WebP for 30% smaller files. Better SEO, happier customers.

Impact: 2x faster page loads, 40% lower bandwidth costs

📱 User Upload Systems

Process user-uploaded images on the fly. Resize profile photos, compress attachments, generate thumbnails.

Impact: Reduce storage costs by 70%, faster uploads

📰 Content Management

Batch-compress article images for blogs and news sites. Maintain quality while cutting file sizes in half.

Impact: Lower CDN costs, improved Core Web Vitals

🎨 Design Tools

Export optimized images from design workflows. Automatically compress exports for web delivery.

Impact: Production-ready output, no manual optimization

Why Cullx Compress API?

âš¡

3x Faster than Cloudinary

Optimized Sharp.js processing. Average compression time: 300ms vs 1.2s elsewhere.

💰

90% Cheaper than Imgix

$29/mo for 5,000 images vs $299/mo for similar volume. No bandwidth fees, no surprise bills.

🎯

Simple Pricing, No Hidden Costs

Pay per API call, not per transformation. No CDN fees, no egress charges, no complex tiers.

Start Compressing Images

Free tier: 100 compressions/month