{"uid":"cap_7XnPp6XtADcBtHArerUHx","slug":"relaystation-pdf-compress-linearize-42971bba","name":"Relaystation PDF Compress & Linearize","description":"$0.001/page. Recompress and linearize a PDF — smaller files, fast web view. 1¢ x402 min; remainder auto-credits — relaystation.ai/penny","url":"https://api.relaystation.ai/v1/pdf/compress","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"type":"object","properties":{"file":{"type":"object","description":"cputools input-source: { inline: <base64 ≤ 4 MiB> } or { inputKey: <scratch key from /v1/cputools/upload-url, ≤ 50 MB> }."},"linearize":{"type":"boolean","description":"Web-optimize (linearize) the output for byte-range \"fast view\" streaming (default false)."}}},"type":{"type":"string","const":"http"},"method":{"enum":["POST","PUT","PATCH"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"registry","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_VQMcV-8dU1jabkkQF3mF-","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Recompresses and linearizes a PDF to reduce file size and enable fast web viewing (progressive rendering)","exampleAgentPrompt":"Can you compress and linearize this PDF so it's smaller and loads progressively in the browser? Here's the file.","exampleUseCases":[{"title":"Shrinking large reports for email","prompt":"This quarterly report PDF is 18MB and too big to email — can you compress and linearize it so it's smaller and still looks great?"},{"title":"Optimizing PDFs for web portal","prompt":"I'm uploading product brochures to our website and they need to load fast in the browser — can you linearize and compress each one before I upload?"},{"title":"Reducing storage costs on document archive","prompt":"We have hundreds of scanned PDFs in our archive that are taking up too much space — can you recompress and linearize them to shrink the file sizes?"}],"resultDescription":"A recompressed and linearized PDF file returned as binary output. The resulting PDF is smaller in size and structured for byte-serving so browsers can render the first page before the full file downloads (fast web view / progressive load).","failureModes":["Invalid or corrupt PDF input returns an error","Non-PDF file type submitted causes rejection","File too large may exceed processing limits","Network timeout on very large documents","Insufficient USDC balance (x402 payment failure) blocks the request"],"whenToPreferThis":"Choose this endpoint when you need to reduce PDF file size and/or enable fast progressive web rendering in a single step. Ideal for automating pre-upload optimization pipelines, reducing email attachment sizes, or preparing PDFs for web portals. Priced per page at $0.001 with a 1¢ minimum, making it cost-effective for both small and large documents.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T00:50:33.803Z","isFirstParty":false}