
Serve Markdown to AI Agents with Accept Headers
Serve Markdown to AI agents and LLMs via the Accept: text/markdown header. Browsers get HTML, agents get clean Markdown.
Developers building AI applications
Cloudflare Workers AI offers a toMarkdown utility that converts files in formats such as PDF, images, HTML, XML, Office, CSV, and Apple documents into structured Markdown.
The conversion tool can be accessed via code binding or REST API, and supports features like object detection and summarization for images. Converted outputs include the document’s name, detected mimetype, token count, and Markdown-formatted content.