Documentation menu

Get started

Smol API documentation

One HTTPS API that makes files smaller: images, PDFs, video and audio, plus conversion between formats and metadata removal.

What it does

OperationWorks onWhat you get
CompressImages, PDFs, video, audioThe same content in a smaller file, in the same or a different format
ConvertImages, PDFs, video, audio, office documents, tables, fontsThe file in the format you ask for
Strip metadataImages, PDFsThe same file without camera, location, author and software details

The compression follows the same standard as the Smol Mac app: the same encoders, the same quality scale, the same defaults. A file compressed through the API matches what the app produces.

Two ways to call it

Direct requests are for files up to 25 MB that finish in seconds. You send the file and get the result in the same response. Nothing is stored.

bash
curl -X POST "https://api.smolmac.com/v1/compress" \
  -H "Authorization: Bearer $SMOL_API_KEY" \
  --data-binary @photo.jpg -o photo.min.jpg

Jobs are for anything larger, and for all video and office documents. You upload the file, start a job, and are told when it is done. The result is kept for an hour by default, then deleted. Video and HEIC output are in limited preview and have to be enabled for an account.

Where to go next