{"uid":"cap__RgG5D53RuKjmcXBYmTDM","slug":"pdf-to-markdown-converter-x402-gateway-d061849d","name":"PDF to Markdown Converter (x402-gateway)","description":"PDF to Markdown: Convert a PDF document to clean, LLM-ready Markdown. Provide a direct URL to the PDF or base64-encoded file bytes. Auto-extracts headings, paragraphs, lists and tables. Ideal for feeding reports, papers and contracts into RAG pipelines. Pay per call in USDC on Base via x402 — POST https://x402.freeq.one/tools/pdf_to_markdown.","url":"https://x402.freeq.one/tools/pdf_to_markdown?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"url":{"type":"string","example":"https://x402.freeq.one/samples/report.pdf","description":"Direct URL to the PDF document"},"file_b64":{"type":"string","maxLength":28000000,"description":"Base64-encoded PDF bytes (alternative to url)"},"max_length":{"type":"integer","example":100000,"description":"Truncate output to N characters"}}},"responseSchema":{"type":"json","example":{"result":{}}},"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_MrHPFXmURs7mpUyalByp3","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":"Converts a PDF document (via URL or base64 bytes) to clean, LLM-ready Markdown, auto-extracting headings, paragraphs, lists, and tables.","exampleAgentPrompt":"Convert this PDF to clean markdown so I can feed it into my RAG pipeline — here's the URL: https://x402.freeq.one/samples/report.pdf — and cap the output at 50000 characters.","exampleUseCases":[{"title":"Research paper ingestion for RAG","prompt":"Take this PDF of a research paper at https://arxiv.org/pdf/2401.00001.pdf and convert it to markdown so I can chunk and embed it into my vector store. Limit the output to 80000 characters."},{"title":"Contract text extraction for AI review","prompt":"I have a legal contract PDF at https://example.com/contracts/agreement.pdf — convert it to markdown so my AI can analyze the clauses. Keep the full text, no truncation."},{"title":"Financial report parsing for LLM summarization","prompt":"Convert this annual report PDF to markdown — the file is base64-encoded and I'll pass the bytes directly — so I can feed it into a summarization pipeline. Cap it at 100000 characters."}],"resultDescription":"Returns a JSON object with a 'result' field containing the extracted Markdown text of the PDF, including headings, paragraphs, bullet lists, and tables, optionally truncated to the specified max_length.","failureModes":["Invalid or unreachable PDF URL returns an error response","Base64 payload exceeding 28MB limit is rejected","Corrupted or password-protected PDFs may fail to parse","max_length too small may truncate essential content","Payment failure or insufficient USDC balance blocks the call"],"whenToPreferThis":"Choose this endpoint when you need to convert a PDF (by URL or raw bytes) into clean, structured Markdown suitable for LLM ingestion, RAG pipelines, or document analysis — especially when you need auto-extracted headings, lists, and tables rather than raw text dumps. Prefer it over generic web scrapers when the source is definitely a PDF file.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-11T12:42:00.092Z","isFirstParty":false,"canonicalSlug":"pdf-to-markdown-converter-x402-gateway-d061849d"}