{"uid":"cap_HclKZh0Ijn5pqhDCMuyod","slug":"tanod-docs-any-file-to-markdown-ae34b53f","name":"Tanod Docs – Any File to Markdown","description":"Documents: DOCX template fill, Office to PDF, any file to Markdown, PDF to Word, OCR, PDF pipeline.","url":"https://docs.tanod.dev/v1/docs/to-markdown?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"url":{"anyOf":[{"type":"string","maxLength":2048,"minLength":1},{"type":"null"}],"default":null,"description":"Public http(s) URL of the document (at most 20 MB; private, internal and IP-literal hosts are refused); or use file_base64."},"filename":{"anyOf":[{"type":"string","maxLength":255,"minLength":1},{"type":"null"}],"default":null,"description":"Optional original file name (printable, at most 255 characters). The format is detected from the content; the name only breaks ties between text formats (a .csv name makes two delimited lines a table, a .txt or .md name never does)."},"file_base64":{"anyOf":[{"type":"string","maxLength":13398872,"minLength":1},{"type":"null"}],"default":null,"description":"The document as base64 (at most 10 MB decoded); or use url. DOCX, XLSX, PPTX, PDF, HTML, EPUB, CSV or plain text, detected from the content."}}},"responseSchema":{"type":"json","example":{"pages":1,"format":"pdf","markdown":"Dummy PDF file","operation":"to-markdown","truncated":false,"characters":14,"input_bytes":13264,"untrusted_content":true}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","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.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_0sv2yhBlOZEuZNXgOpqof","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Converts any supported document (PDF, DOCX, XLSX, PPTX, HTML, EPUB, CSV, plain text) to Markdown format via URL or base64 upload.","exampleAgentPrompt":"Can you convert this PDF (https://example.com/report.pdf) to Markdown so I can use the text in my pipeline?","exampleUseCases":[{"title":"Extract report content for RAG pipeline","prompt":"Grab this annual report PDF from https://example.com/annual-report.pdf and convert it to Markdown so I can chunk and index it for our retrieval system."},{"title":"Turn uploaded Word doc into Markdown","prompt":"I've got a DOCX file encoded in base64 — can you convert it to Markdown for me? Here's the base64 data and the filename is proposal.docx."},{"title":"Convert EPUB book chapter to plain Markdown","prompt":"Convert this EPUB file at https://example.com/chapter1.epub to Markdown text so I can copy-edit it more easily."}],"resultDescription":"Returns a JSON object containing the extracted Markdown string, the detected file format, page count, total character count, input byte size, whether the output was truncated, and a flag indicating if the content is untrusted (i.e., came from user-supplied input).","failureModes":["URL is private, internal, or IP-literal — request rejected","File exceeds 20 MB via URL or 10 MB decoded via base64 — rejected","Unsupported or undetectable file format — error returned","URL is unreachable or returns non-200 — fetch failure","Malformed base64 string — decoding error","Output truncated if document is extremely large"],"whenToPreferThis":"Choose this endpoint when you need to programmatically extract readable Markdown from a wide variety of document types (PDF, DOCX, XLSX, PPTX, HTML, EPUB, CSV) via a simple HTTP call with per-use micropayment pricing. Prefer this over generic OCR services when you also need structured Markdown (headers, tables, lists) rather than raw text, and over full document pipeline services when you only need the Markdown conversion step.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-13T12:45:12.735Z","isFirstParty":false,"canonicalSlug":"tanod-docs-any-file-to-markdown-ae34b53f"}