{"uid":"cap_iI_0_7KRWDSxShhbQhxlQ","slug":"agentsvc-io-document-converter-7b823f57","name":"agentsvc.io Document Converter","description":"86 APIs for AI agents: web scraping and crawling to Markdown, AI summaries, data extraction and cited answers, screenshots and PDF, PDF, OCR and document conversion, news, paper and developer search and more, paid per call with USDC on Base, Solana, Polygon or Arbitrum via x402. No account, no API key, free sample on every service.","url":"https://agentsvc.io/api/v1/proxy/doc-convert?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"to":{"enum":["markdown","html","docx","odt","epub","rst","latex","plain","rtf","pdf"],"type":"string"},"url":{"type":"string","description":"URL of the document (max 10 MB)"},"from":{"type":"string","description":"Input format, e.g. markdown, html, docx, rst, latex; detected if omitted"},"title":{"type":"string"},"content":{"type":"string","description":"Document text (markdown, html, rst, latex, org, csv ...)"},"file_base64":{"type":"string","description":"Binary document (docx, odt, epub, rtf), base64"}}},"responseSchema":{"type":"json","example":{"data":{"to":"html","from":"markdown","source":"content","content":"<!DOCTYPE html>\n<html xmlns=\"http://www.w3.org/1999/xhtml\" lang=\"\" xml:lang=\"\">\n<head>\n  <meta charset=\"utf-8\" />\n  <meta name=\"generator\" content=\"pandoc\" />\n  <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0, user-scalable=yes\" />\n  <title>document</title>\n  <style>\n    html…","mime_type":"text/html","size_bytes":3872},"success":true}},"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_lbxoNRZYl6T7PmlYKzXnX","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 documents between formats (markdown, HTML, DOCX, ODT, EPUB, RST, LaTeX, plain text, RTF, PDF) via URL, raw content, or base64 file upload","exampleAgentPrompt":"Convert this markdown content to a DOCX file: '# Hello World\\nThis is a test document with **bold** and *italic* text.' — output it as a Word document.","exampleUseCases":[{"title":"Markdown docs to HTML for web publishing","prompt":"Take this markdown README from https://raw.githubusercontent.com/example/repo/main/README.md and convert it to HTML so I can embed it on a webpage."},{"title":"Word document to markdown for editing","prompt":"I have a DOCX file encoded in base64 — can you convert it to markdown so I can edit it in my text editor?"},{"title":"LaTeX paper to plain text for indexing","prompt":"Convert this LaTeX content to plain text so I can index it for search: '\\\\documentclass{article}\\\\begin{document}Hello World\\\\end{document}'"}],"resultDescription":"Returns a JSON object with the converted document as a content string, the detected or specified source format, the target format, the MIME type of the output, and the size in bytes. For binary formats the content field contains the file data.","failureModes":["Document URL unreachable or returns non-200 — conversion fails with error","Input document exceeds 10 MB size limit","Unsupported source/target format combination — returns format error","Malformed base64 input — decoding error","Ambiguous source format when auto-detection fails — may produce garbled output"],"whenToPreferThis":"Use this endpoint when you need lightweight, pay-per-call document format conversion without managing a Pandoc installation or a subscription. It is ideal for AI agents that occasionally need to reformat content (e.g. markdown → HTML for rendering, DOCX → markdown for editing) and want to pay micro-amounts in USDC per conversion rather than maintaining API keys or subscriptions. Prefer it over heavyweight document APIs when you just need a format transformation and not OCR, layout analysis, or PDF generation from screenshots.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-10T12:42:21.144Z","isFirstParty":false,"canonicalSlug":"agentsvc-io-document-converter-7b823f57"}