{"uid":"cap_4NWHGV_i-dRVoOD5J5aAA","slug":"document-to-markdown-converter-pdf-office-html-3a04a6a8","name":"Document to Markdown Converter (PDF, Office, HTML)","description":"Turns a document into clean Markdown in about a second: pass an https URL or base64 of a PDF, Word, Excel, PowerPoint, HTML, CSV or XML file and get the text back with its headings, tables and page markers, plus the token count. It reads the text layer, so a scanned page with no text layer comes back without text. You are only charged if the Markdown is delivered. No API key, no account.","url":"https://flat-rate-llm.kikoribera03.workers.dev/v1/ai/document?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"],"type":"string"},"queryParams":{"type":"object","required":[],"properties":{"url":{"type":"string","description":"https URL of the document to convert. Use this or document."},"document":{"type":"string","description":"The document, as base64. Use this or url."},"filename":{"type":"string","description":"Name with extension, e.g. invoice.pdf. Helps the converter pick the parser. Default: taken from the URL."}}}},"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":"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_6H2hQ5HzQe729oV7M5lLE","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 document (PDF, Word, Excel, PowerPoint, HTML, CSV, or XML) provided as a URL or base64 string into clean Markdown text with headings, tables, page markers, and token count.","exampleAgentPrompt":"Can you convert the PDF at https://example.com/report.pdf into clean Markdown so I can read its headings, tables, and text?","exampleUseCases":[{"title":"Extract contract text for AI review","prompt":"I have a contract PDF at https://contracts.example.com/agreement.pdf — can you pull out all the text as Markdown so I can feed it into my AI for analysis?"},{"title":"Parse Excel spreadsheet as markdown table","prompt":"Convert this base64-encoded Excel file into Markdown for me so I can see all the tables and data in a readable format — here's the base64: [base64string], filename is report.xlsx."},{"title":"Turn PowerPoint slides into readable notes","prompt":"I've got a PowerPoint presentation at https://files.example.com/slides.pptx — convert it to Markdown so I can read through the slide content as structured text."}],"resultDescription":"Returns clean Markdown with the document's headings, tables, and page markers preserved, along with the token count of the extracted text. Scanned documents without a text layer will return without readable text.","failureModes":["Scanned PDF with no text layer returns empty or minimal text (no OCR is performed)","Invalid or inaccessible URL returns an error","Unsupported file format may fail to parse","Malformed base64 input causes a parse error","Payment not confirmed results in no Markdown delivery (pay-per-success model)"],"whenToPreferThis":"Choose this endpoint when you need to quickly convert a document (PDF, Word, Excel, PowerPoint, HTML, CSV, or XML) into structured Markdown without setting up an account or API key. It is ideal for one-off document conversions billed at a flat per-call rate with no subscription, and is well-suited for AI pipelines that need document text with preserved structure (headings, tables) and a token count for context window planning.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-20T12:35:06.198Z","isFirstParty":false,"canonicalSlug":"document-to-markdown-converter-pdf-office-html-3a04a6a8"}