{"uid":"cap_Rie1lM_rYkl0qwv912L6T","slug":"agentdiet-pdf-extract-4bb226f2","name":"AgentDiet PDF Extract","description":"Deterministic B2A/A2A/MCP/x402/MPP/L402 execution and intelligence node at https://rag-diet.agentdiet.dev settling in USDC on Base.","url":"https://rag-diet.agentdiet.dev/v1/pdf-extract?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET","POST"],"type":"string"},"queryParams":{"type":"object","properties":{"url":{"type":"string"},"mode":{"type":"string"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"data":{},"status":"ok","roi_proof":{"compression_ratio_pct":91.4}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_adMcfkgwAaqq7SZ-9ecim","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Extracts and distills text content from a PDF URL, compressing it by up to 91% to reduce AI agent context window token usage.","exampleAgentPrompt":"Can you extract the text from this PDF — https://example.com/report.pdf — and compress it as much as possible so it fits in my context window without wasting tokens?","exampleUseCases":[{"title":"Summarizing a research paper PDF","prompt":"I have this academic PDF at https://arxiv.org/pdf/2401.00001.pdf — can you extract and compress its text so I can feed it into my analysis pipeline without burning through my context window?"},{"title":"Distilling a legal contract for review","prompt":"Pull the text out of this contract PDF at https://legal-docs.example.com/contract.pdf and compress it down so my agent can review the key clauses without hitting token limits."},{"title":"Processing a financial report PDF","prompt":"Extract the content from this annual report PDF at https://investor.example.com/annual-report-2024.pdf and give me a compressed version — I need the data but want to minimize token usage."}],"resultDescription":"A JSON object with status 'ok', the extracted and compressed data from the PDF, and an roi_proof object containing a compression_ratio_pct field (e.g. 91.4%) showing how much the content was reduced.","failureModes":["Invalid or inaccessible PDF URL returns an error","PDF is password-protected or encrypted and cannot be parsed","URL does not point to a valid PDF document","Payment not settled in USDC on Base causes request rejection","Oversized PDF may time out or exceed processing limits"],"whenToPreferThis":"Choose this endpoint when an AI agent needs to ingest a PDF document but wants to minimize context window token consumption. It is especially valuable when dealing with long PDFs where full extraction would exceed LLM token limits. Prefer over generic PDF parsers when token compression ratio is a priority (up to 91% reduction claimed).","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-22T12:43:39.153Z","isFirstParty":false,"canonicalSlug":"agentdiet-pdf-extract-4bb226f2"}