Serve Markdown to AI Agents: Why Accept Headers Are the Next Enterprise AI Battleground
Description and use
Adding the Accept: text/markdown header lets AI agents receive clean Markdown instead of HTML, cutting token costs and speeding up processing.
Problem
Enterprise AI agents consume large HTML payloads, inflating token costs and processing time.
Outcome
Implementing Accept Markdown cuts agent token costs by ~60% and speeds up processing.
Workflow
- 1. Add Accept: text/markdown header to agent requests.
- 2. On server, intercept request and if header present, serve raw .md file or markdown source instead of HTML.
- 3. Cache markdown and HTML separately at the edge.
- 4. Log Accept: text/markdown requests to track usage.
Evidence
A small, growing group of infrastructure teams have decided that's a waste of everyone's compute. They're flipping a single HTTP header and watching their token bills drop by 60%.
Accept Markdown — promoted by acceptmarkdown.com and picked up by several large content networks in Q3 2025 — gives agents a way out.
- Record date: 2026-09-10T00:31:00.775Z