{"uid":"cap_RVjk7nrGQjA8AQtbbZbKj","slug":"agent402-pdf-summarize-d3471385","name":"Agent402 PDF Summarize","description":"Fetch a PDF from a URL, extract its text, and return a concise AI-generated summary - factual, no information added beyond what's in the document. Body: {\"url\":\"https://…/file.pdf\",\"maxWords\":200?}. Uses the same OpenAI-compatible gateway as /v1/chat/completions internally; the model that actually served is disclosed in the response.","url":"https://agent402.tools/api/pdf-summarize","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"url":{"type":"string","description":"Public http(s) URL of a PDF"},"maxWords":{"type":"number","description":"Target summary length in words, 50-500 (default 200)"}}},"responseSchema":{"type":"json","example":{"url":"https://bitcoin.org/bitcoin.pdf","model":"openai/gpt-4o-mini","pages":9,"summary":"The paper proposes a peer-to-peer electronic cash system that lets online payments move directly between parties without a financial institution, using a proof-of-work chain as a timestamp server to prevent double-spending…","wordCount":3604,"truncatedInput":false,"summaryWordCount":148}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.03","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.03/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.03","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.03","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_jnHZQ4QOafLcMdhQ88jVs","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.03","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Downloads a PDF from a public URL and returns an AI-generated text summary of configurable length","exampleAgentPrompt":"Can you summarize the Bitcoin whitepaper at https://bitcoin.org/bitcoin.pdf for me in about 150 words?","exampleUseCases":[{"title":"Research paper digest for literature review","prompt":"Summarize this academic paper for me in 300 words so I can decide if it's worth reading in full: https://arxiv.org/pdf/2303.08774.pdf"},{"title":"Legal document quick overview","prompt":"Give me a 100-word summary of this PDF contract so I can get the gist before the meeting: https://example.com/contract-draft.pdf"},{"title":"Whitepaper briefing for investor","prompt":"I need a 200-word summary of this blockchain whitepaper at https://example.com/project-whitepaper.pdf — just the key points about what they're building and the tokenomics."}],"resultDescription":"A JSON object containing the source URL, the AI model used (openai/gpt-4o-mini), the number of pages in the PDF, a prose summary string, the total word count of the original document, a flag indicating whether the input was truncated, and the word count of the generated summary.","failureModes":["PDF URL is not publicly accessible or returns 4xx/5xx — endpoint cannot fetch the document","URL points to a non-PDF file — parsing will fail or produce garbage output","PDF is encrypted or password-protected — text extraction will fail","maxWords outside the 50-500 range may produce unexpected summary length","Very large PDFs may be truncated (truncatedInput: true), resulting in an incomplete summary","Network timeout if the remote PDF server is slow to respond"],"whenToPreferThis":"Use this endpoint when you need a fast, pay-per-call AI summary of any publicly accessible PDF without managing API keys, model credentials, or document parsing infrastructure. It is ideal for agents that encounter PDF URLs at runtime and need to extract meaning on the fly. Prefer it over general-purpose LLM calls when you want document fetching, text extraction, and summarization bundled into a single atomic operation paid for in USDC per call.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T19:14:06.933Z","isFirstParty":false}