# Compress PDF API

Source: https://pdfluent.com/pdf-api/compress/

Same PDF. Smaller file.

One request. The answer is the compressed PDF.

[Try the API for $1](https://console.pdfluent.com/signup)[Compress reference](https://pdfluent.com/docs/api/reference/pdf-compress/)

USD 0.01

per file

Up to 50 pages

1 request

per file

The answer is the PDF

50 pages

one price

Then the same again per block

Price

82% cheaper*

vs pdfRest · 96% cheaper vs PDF.co

1,000 compress jobs a month (10 pages)

- PDFluent USD 10
- pdfRest Cloud USD 55.99
- PDF.co USD 270

[All PDF API prices](https://pdfluent.com/pdf-api/pricing/)[Compare with pdfRest and PDF.co](https://pdfluent.com/pdf-api/compare/)

Code

## One request.

```
curl -sS -f -X POST "$PDFLUENT_API_URL/v1/pdf/compress" \  -H "x-api-key: $PDFLUENT_API_KEY" \  -F file=@big.pdf \  -o small.pdf
```

Questions

## Questions

### How do I compress a PDF with the API? +

Send the file in one POST request to the compress endpoint. The response is the compressed PDF.

### Is the compressed file still a normal PDF? +

Yes. You get a PDF back, not an archive or a proprietary format.

### Does compression change the text? +

Compression targets file size. Check the result against your own documents before you rely on it in a pipeline.

* How we counted

- List prices from each vendor’s site, read 27 November 2026.
- The cheapest plan that covers 1,000 jobs a month.
- One job: compress, 10 pages.

## Try it for USD 1.

[Try the API for $1](https://console.pdfluent.com/signup)[Quickstart](https://pdfluent.com/docs/api/quickstart/)

- [Available on Microsoft Marketplace](https://marketplace.microsoft.com/en-us/product/pdfluent.pdfluent-pdf-api)

More jobs: [Convert PDF](https://pdfluent.com/pdf-api/convert/)[Fill forms](https://pdfluent.com/pdf-api/forms/)[Merge PDF](https://pdfluent.com/pdf-api/merge/)[Split PDF](https://pdfluent.com/pdf-api/split/)[Watermark](https://pdfluent.com/pdf-api/watermark/)[Encrypt](https://pdfluent.com/pdf-api/protect/)[Redact](https://pdfluent.com/pdf-api/redact/)[Sign](https://pdfluent.com/pdf-api/sign/)[PDF/A and e-invoice](https://pdfluent.com/pdf-api/pdfa-einvoice/)[OCR](https://pdfluent.com/pdf-api/ocr/)

[All PDF API use cases](https://pdfluent.com/pdf-api/) · [Pricing](https://pdfluent.com/pdf-api/pricing/) · [Compared](https://pdfluent.com/pdf-api/compare/) · [Free editor](https://pdfluent.com/guides/compress-a-pdf/)
