{"uid":"cap_yFvlfqN4U1i398wOs9UVJ","slug":"x402-gateway-epub-to-markdown-converter-832e703a","name":"x402-gateway: EPUB to Markdown Converter","description":"EPUB to Markdown: Convert an EPUB e-book to clean Markdown. Provide a direct URL or base64-encoded file bytes. Chapters become headings; metadata (title, author) is included. Feed whole books into LLM context or RAG. Pay per call in USDC on Base via x402 — POST https://x402.freeq.one/tools/epub_to_markdown.","url":"https://x402.freeq.one/tools/epub_to_markdown?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"url":{"type":"string","example":"https://x402.freeq.one/samples/book.epub","description":"Direct URL to the EPUB file"},"file_b64":{"type":"string","maxLength":28000000,"description":"Base64-encoded EPUB bytes (alternative to url)"},"max_length":{"type":"integer","example":200000,"description":"Truncate output to N characters"}}},"responseSchema":{"type":"json","example":{"result":{}}},"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_mj5r4wUoF6Apa4Kw6Q2s_","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 an EPUB e-book (via URL or base64-encoded bytes) into clean, structured Markdown with chapters as headings and metadata included","exampleAgentPrompt":"Can you convert this epub book at https://x402.freeq.one/samples/book.epub to Markdown so I can feed it into my RAG pipeline? Limit the output to 200000 characters.","exampleUseCases":[{"title":"Ingest book into RAG pipeline","prompt":"Grab the epub at https://example.com/my-textbook.epub and convert it to Markdown so I can chunk it and load it into my RAG knowledge base — keep it under 150000 characters."},{"title":"Feed entire novel into LLM context","prompt":"I have an epub encoded in base64 — convert it to clean Markdown with chapters as headings so I can paste the whole thing into my LLM's context window."},{"title":"Extract book metadata and content","prompt":"Convert this epub from https://example.org/science-of-everything.epub to Markdown and include the title and author at the top — I want to archive it in a readable format."}],"resultDescription":"A JSON object with a 'result' field containing the full Markdown text of the EPUB, with chapters rendered as headings and book metadata (title, author) included at the top. Output may be truncated to max_length characters if specified.","failureModes":["Invalid or unreachable EPUB URL returns an error","Base64-encoded content too large (>28MB) is rejected","Non-EPUB file format at the URL causes a parse failure","Payment not included or insufficient USDC causes 402 rejection","Malformed base64 string causes decoding error"],"whenToPreferThis":"Choose this endpoint when you need to convert an EPUB e-book into LLM-ready Markdown, especially for RAG ingestion or feeding entire books into LLM context windows. Prefer it over generic document converters when your source is specifically an EPUB file and you want structured chapter headings preserved. The sibling 'Document to Markdown (auto-detect)' endpoint is better if you're unsure of the file format.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-11T12:43:32.903Z","isFirstParty":false,"canonicalSlug":"x402-gateway-epub-to-markdown-converter-832e703a"}