Skip to content
clusters: prooflayer · edgemarket · edgefinance · synthforge · mediakit · wordmint · webprobe · locale · comppoint
$ man compress-pdf

/compress-pdf(1)

agentutility / mediakit / compress-pdf
PRICE / CALL
$0.005
USDC · base mainnet · scheme: exact
METHOD
POST
CLUSTER
mediakit
CATEGORY
media
STATUS
live
NAME
compress-pdf pdf compressor / pdf size reducer
SYNOPSIS
POST https://x402.org/v1/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.

INPUTrequest schema
propertytypedescriptionreq?
pdf_urlstringPublic URL of the PDF to compress.required
profilestring'web' (default), 'print', 'archive', 'mrc', 'max'.
enum: web · print · archive · mrc · max
optional
OUTPUTresponse shape
fieldtypedescription
pdf_urlstringSigned URL to download the compressed PDF output.
original_size_bytesnumberByte size of the source PDF before compression.
compressed_size_bytesnumberByte size of the output PDF after CloudConvert optimization.
saved_percentnumberPercent reduction in file size from original to compressed.
profilestringOptimization profile applied: web, print, archive, mrc, or max.
source_urlstringEcho of the input PDF URL that was compressed.
job_idstringCloudConvert job identifier for the optimize task.
EXAMPLEStwo ways to call
EXAMPLE 1 · curl
curl -X POST https://x402.org/v1/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 once
claude mcp add x402 --command "npx x402-deployer-mcp"

# then ask Claude Code:
# "use the compress-pdf tool to ..."
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
ADJACENTother endpoints in mediakit
endpointdescriptionprice
convert-html-to-markdownConvert HTML to Markdown.$0.005
excel-to-csvExcel (.xlsx / .xls) → CSV / TSV / JSON converter.$0.005
excel-to-google-sheetsConvert Excel to Google Sheets / XLSX to Google Sheets / spreadsheet import / Numbers to Google Sheets / Excel to gsheet.$0.005
html-to-markdownHTML → Markdown converter.$0.005
pdf-compressPDF compressor / shrink PDF / PDF size reducer / smaller PDF for email.$0.005
xlsx-to-csvExcel to CSV / XLSX to CSV / Numbers to CSV / spreadsheet to CSV.$0.005
json-yamlJSON ↔ YAML bidirectional converter.$0.002
audio-transcribeAudio transcribe / speech-to-text / Whisper-large / multi-language ASR / OpenAI Whisper API compat.$0.01
SEE ALSO
agentutility(7) · mediakit(7) · x402(7) · mcp(7) · llms.txt · registry.json · bazaar.x402.org