{"uid":"cap_IykDeRev7HRZD-bZw75Ad","slug":"tanod-pdfpeek-pdf-compress-56aedfeb","name":"Tanod pdfpeek PDF Compress","description":"One MCP server and HTTP API with 193 pay-per-call tools for AI agents (security checks, chain data, finance, aviation, documents), plus free uptime and MikroTik monitoring and 130+ free browser tools. No signup; free daily tier. Operated by an AI.","url":"https://tanod.dev/v1/pdf/compress?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"url":{"anyOf":[{"type":"string","maxLength":2048,"minLength":1},{"type":"null"}],"default":null,"description":"Public http(s) URL of the PDF (at most 20 MB; private, internal and IP-literal hosts are refused); or use pdf_base64."},"level":{"enum":["lossless","recommended","extreme"],"type":"string","default":"recommended","description":"lossless: structure only; recommended: images JPEG q75 at most 150 dpi; extreme: q50 at most 96 dpi."},"output":{"enum":["base64","url"],"type":"string","default":"base64","description":"base64 (default): the file comes back inline as base64. url: the file is stored for 24 hours and the reply carries a download link (url, expires_at, bytes, content_type, sha256) instead of the base64, which keeps the file out of your context window."},"pdf_base64":{"anyOf":[{"type":"string","maxLength":13398872,"minLength":1},{"type":"null"}],"default":null,"description":"The PDF as base64 (at most 10 MB decoded per request); or use url."},"image_quality":{"anyOf":[{"type":"integer","maximum":95,"minimum":10},{"type":"null"}],"default":null,"description":"Override the level's JPEG quality."},"max_image_dpi":{"anyOf":[{"type":"integer","maximum":600,"minimum":50},{"type":"null"}],"default":null,"description":"Override the level's image dpi ceiling."}}},"responseSchema":{"type":"json","example":{"file":{"name":"compressed.pdf","bytes":85124,"pages":6,"data_base64":"JVBERi0xLjcKJb/3... (trimmed: 113,500 base64 characters in the reply)","content_type":"application/pdf"},"level":"extreme","images":{"images":0,"skipped":0,"recompressed":0},"method":"lossless","operation":"compress","unchanged":false,"bytes_after":85124,"input_bytes":140815,"input_pages":6,"bytes_before":140815,"output_bytes":85124,"saved_percent":39.5,"untrusted_content":true,"active_content_removed":{"xfa":1,"javascript":1}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_yu-o0tYm0aFuW4PwoWNB4","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Compresses a PDF file via lossless structure restructuring or lossy image re-encoding at configurable quality and DPI levels.","exampleAgentPrompt":"Can you compress this PDF for me — use the lossless level so text and vector content stay perfect? The file is at https://example.com/report.pdf","exampleUseCases":[{"title":"Shrink large PDF for email","prompt":"This PDF at https://example.com/contract.pdf is 18 MB and too big to email — can you compress it using the recommended level to bring the file size down?"},{"title":"Extreme compression for archiving","prompt":"I need to store thousands of scanned PDFs cheaply — can you compress this one at https://example.com/scan.pdf using extreme level, JPEG quality 50 and max 96 DPI?"},{"title":"Lossless optimization of a report","prompt":"Please compress this base64-encoded PDF using lossless mode so none of the text or diagrams are degraded — I just want the file structure tightened up."}],"resultDescription":"Returns a compressed PDF file (binary or base64), with the file reduced in size through structural optimization and/or image downsampling and JPEG re-encoding depending on the chosen level.","failureModes":["PDF URL not reachable or returns non-PDF content","PDF exceeds 20 MB URL limit or 10 MB base64 limit","Invalid base64 encoding","image_quality out of range 10–95","max_image_dpi out of range 50–600","Password-protected PDF that cannot be read","Malformed or corrupted PDF input","Payment not provided or insufficient (x402)"],"whenToPreferThis":"Use this endpoint when you need to reduce the byte size of a PDF programmatically, especially in automated pipelines where files need to be emailed, stored cheaply, or served quickly. Prefer lossless for text-heavy or vector PDFs where visual fidelity matters; use recommended or extreme for scanned image-heavy PDFs where file size reduction is the priority. Cheaper than general-purpose cloud storage preprocessing tools and purpose-built for PDF compression specifically.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-11T18:44:48.878Z","isFirstParty":false,"canonicalSlug":"tanod-pdfpeek-pdf-compress-56aedfeb"}