{
  "x402Version": 2,
  "id": 4757,
  "slug": "4757",
  "resource": "https://tools.miniframe.com.br/compress-pdf",
  "description": "Use when a PDF is too large to email, upload or attach — Ghostscript compression an agent sandbox cannot run on its own. Send it either as JSON {pdf_base64} or as the raw PDF body (Content-Type: application/pdf), up to 30 MB. Optional query param mode=light|balanced|max (default balanced). Returns JSON with original_size, compressed_size, reduction_percent, warnings and pdf_base64 (the compressed file).",
  "type": "http",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0x879933456986877f5d87e6ee24d1e0ebd264f527",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "20000",
      "maxTimeoutSeconds": 300
    }
  ],
  "outputSchema": {
    "bazaar": {
      "info": {
        "input": {
          "body": {
            "mode": "balanced",
            "pdf_base64": "JVBERi0xLjQK..."
          },
          "bodyType": "json",
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "compressed_size": 210000,
            "mode": "balanced",
            "original_size": 500000,
            "pdf_base64": "JVBERi0xLjUK...",
            "reduction_percent": 58,
            "warnings": []
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "properties": {
                  "mode": {
                    "description": "Compression mode (query param, optional, default balanced).",
                    "enum": [
                      "light",
                      "balanced",
                      "max"
                    ],
                    "type": "string"
                  },
                  "pdf_base64": {
                    "description": "The PDF file encoded in base64 (JSON body). Max 30 MB decoded.",
                    "type": "string"
                  }
                },
                "required": [
                  "pdf_base64"
                ]
              },
              "bodyType": {
                "enum": [
                  "json",
                  "form-data",
                  "text"
                ],
                "type": "string"
              },
              "method": {
                "enum": [
                  "POST"
                ],
                "type": "string"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "required": [
              "type",
              "method",
              "bodyType",
              "body"
            ],
            "type": "object"
          },
          "output": {
            "properties": {
              "example": {
                "type": "object"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    }
  },
  "tags": [
    "bazaar"
  ],
  "sourceHost": "tools.miniframe.com.br",
  "lastUpdated": "2026-08-31T11:39:45.998Z",
  "quality": {
    "calls30d": 1,
    "uniquePayers30d": 1,
    "lastCalledAt": "2026-08-31T11:39:44.631Z"
  },
  "liveness": {},
  "verified": false,
  "featured": false,
  "provider": {
    "host": "tools.miniframe.com.br",
    "manifest_name": "tools.miniframe.com.br",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-09-18T22:00:31.484Z"
  }
}