Available now

Compress PDF API

Reduce PDF storage and transfer overhead when lossless optimization is possible.

Original PDFSmaller fileStructured data

One API key. One prepaid wallet.

Original PDFOptimizeSmaller fileIllustrative API workflow

Try the Compress PDF tool

Use this tool directly. No API key required.

3 credits per successful request.

Sign in or buy credits

What it does

Lossless object streams; may not reduce size. 10 MB / 200 pages.

Endpoint and pricing

POST /v1/documents/pdf/compress

3 credits per successful request at current catalog pricing.

Input schema (MCP)

{
  "type": "object",
  "properties": {
    "base64": {
      "type": "string",
      "contentEncoding": "base64"
    }
  },
  "required": [
    "base64"
  ],
  "additionalProperties": false
}

Output data schema

{
  "type": "object",
  "properties": {
    "base64": {
      "type": "string",
      "contentEncoding": "base64"
    },
    "mime_type": {
      "type": "string"
    },
    "bytes": {
      "type": "integer"
    },
    "pages": {
      "type": "integer"
    },
    "original_bytes": {
      "type": "integer"
    },
    "bytes_saved": {
      "type": "integer"
    },
    "mode": {
      "type": "string"
    }
  }
}

REST request formats and response envelopes: OpenAPI specification. Discover free samples through MCP.