$ man compress-pdf
/compress-pdf
PRICE / CALL
$0.005
USDC · base mainnet · scheme: exact
METHOD
POST
CLUSTER
mediakitCATEGORY
media
STATUS
● live
NAME
compress-pdf — pdf compressor / pdf size reducer
SYNOPSIS
POST https://x402.agentutility.ai/compress-pdf
Content-Type: application/json
X-PAYMENT: <signed-transferWithAuthorization>
{ ... }↳ first call →
402 Payment Required. Sign USDCtransferWithAuthorization, retry with theX-PAYMENT header.DESCRIPTION
PDF compressor / PDF size reducer. CloudConvert optimize task. Profiles: web (default), print, archive, mrc (scanned), max. Reports % saved.
INPUT — request schema
| property | type | description | req? |
|---|---|---|---|
| pdf_url | string | — | required |
| profile | string | — enum: web · print · archive · mrc · max | optional |
OUTPUT — response shape
| field | type | description |
|---|---|---|
| pdf_url | string | Signed URL to download the compressed PDF output. |
| original_size_bytes | number | Byte size of the source PDF before compression. |
| compressed_size_bytes | number | Byte size of the output PDF after CloudConvert optimization. |
| saved_percent | number | Percent reduction in file size from original to compressed. |
| profile | string | Optimization profile applied: web, print, archive, mrc, or max. |
| source_url | string | Echo of the input PDF URL that was compressed. |
| job_id | string | CloudConvert job identifier for the optimize task. |
EXAMPLES — two ways to call
EXAMPLE 1 · curl
curl -X POST https://x402.agentutility.ai/compress-pdf \
-H 'Content-Type: application/json' \
-d '{ }'first response =
402 Payment Required with payment requirements; sign + retry with X-PAYMENT.EXAMPLE 2 · mcp
# Install the MCP package for this endpoint's cluster npx -y @agentutility/mcp-<cluster> # Required: EVM private key with USDC on Base export X402_PRIVATE_KEY=0x... # Then call the compress-pdf tool from your MCP-aware agent.
MCP server handles payment automatically — your coding agent just calls the tool by name.
METADATA
- tags
- pdfcompressoptimizeshrink
- env
- CLOUD_CONVERT_API_KEY
- methods
- POST
- cluster
- mediakit
- price
- $0.005 USDC per call
ADJACENT — other endpoints in mediakit
| endpoint | description | price |
|---|---|---|
| convert-html-to-markdown | Convert HTML to Markdown. | $0.005 |
| excel-to-csv | Converts Excel workbooks (.xlsx / .xls) to CSV, TSV, or JSON with multi-sheet handling, returning each sheet by name. | $0.005 |
| excel-to-google-sheets | Converts Excel files for import into Google Sheets. | $0.005 |
| html-markdown | Converts raw HTML or a URL into clean Markdown, preserving headings, lists, tables, code blocks, links, and images. | $0.005 |
| html-to-markdown | Convert HTML to Markdown. | $0.005 |
| json-yaml | Converts between JSON and YAML in either direction. | $0.005 |
| pdf-compress | Shrinks PDFs to a smaller size for email or the web, with three quality levels: ebook (lowest, web-quality), printer (medium), prepress (… | $0.005 |
| url-to-markdown | Fetches a public URL, strips boilerplate, and returns clean Markdown plus title and character counts. | $0.005 |
SEE ALSO