Built for production

Image Optimization API

Compress, resize, and convert images with one synchronous API request. Pay only for successful images.

Synchronous and simple

By default, store=none returns image bytes synchronously without persistent storage of source or output images.

store=temp / store=cdn

store=temp stores only the optimized result and returns JSON with a download link valid for 2 hours. Link expiry is separate from physical deletion, which follows storage lifecycle cleanup; no fixed deletion deadline is guaranteed. store=cdn returns JSON with a public URL and stores only the optimized result until user deletion, Terms enforcement, or plan/subscription lifecycle cleanup.

Predictable credits

One successful image costs one credit. Validation, decode, and processing failures cost zero.

One endpoint, useful controls

  • JPEG, PNG, WebP, HEIC, and HEIF input.
  • JPEG, PNG, WebP, or AVIF output—never HEIC output.
  • Quality, maximum width, maximum height, and metadata controls.
  • 20 MB, 25 megapixel, one-frame, and 30-second safety limits.
  • Idempotent retries with the optional Idempotency-Key header.
curl -X POST "$API_URL/v1/images/optimize" \
  -H "Authorization: Bearer oyi_live_..." \
  -H "Idempotency-Key: upload-123" \
  -F "[email protected]" \
  -F "output_format=webp" \
  -F "quality=80" \
  --output photo.webp

Measured in production

90.25% average reduction across 60 CLIC test images

See compression, perceptual quality, request duration, and every raw result.

View benchmark →

500 free credits every month

Accounts without a subscription get 500 free credits each month, plus a one-time 100-credit welcome bonus. No card is required. One successful image costs one credit; failed requests cost nothing.

Create free API account