SynthPDF
POST/api/v1/compress

Compress PDF

Reduce PDF file size by up to 80% while maintaining acceptable visual quality.

Parameters

Content-Type: multipart/form-data

NameTypeRequiredDescription
filefilerequiredThe PDF file to compress.
qualityenum (low | medium | high)optionalCompression level. low = max compression, high = best quality.Default: medium

Response

Binary file — compressed.pdf

Content-Type: application/octet-stream

curl
curl -X POST \
  https://synthpdf.com/api/v1/compress \
  -H "X-API-Key: spdf_your_api_key" \
  -F "file=@your-file.pdf" \
  -F "quality=medium" \
  --output "compressed.pdf"

Error codes

401UnauthorizedMissing or invalid X-API-Key header.
403ForbiddenYour plan does not include API access, or email is unverified.
413File too largeUploaded file exceeds your plan's file size limit.
429Rate limitedExceeded 20 req/min per endpoint, or your plan's daily call limit.
500Server errorAn internal error occurred while processing the file.
Try itSign in to run