# Aayat AI Document-to-Markdown Converter

> Aayat AI Document-to-Markdown Converter is a paid API for AI agents from aayatai.com, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-02).

Converts any public document URL (web page, PDF, Word, Excel, CSV, XML, etc.) into clean Markdown text suitable for LLMs, returning title, Markdown content, links, and character count.

## Facts

- Endpoint: GET https://aayatai.com/markdown?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/aayat-ai-document-to-markdown-converter-fcd55e19
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Mf6zWOuSQ6bmvjXEzBKFD

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability aayat-ai-document-to-markdown-converter-fcd55e19
```

Example prompt: Can you grab the content of this PDF report and convert it to clean markdown so I can feed it into my LLM pipeline? The URL is https://example.com/annual-report-2024.pdf

## When to prefer this

Choose this endpoint when you need to convert any publicly accessible document (PDF, Word, Excel, CSV, web page, etc.) into clean Markdown for downstream LLM processing, and you want a pay-per-use service with no subscription. Prefer /markdown/rendered for JavaScript-rendered pages. Best when you need a quick, reliable document-to-LLM-ready-text pipeline without running your own parsing infrastructure.

## Known failure modes

- Private or local IP addresses are blocked and return an error
- Documents larger than 10 MB are rejected
- Unsupported file formats return a conversion error
- Inaccessible or broken URLs return a fetch error
- JavaScript-heavy pages may return incomplete content unless /markdown/rendered is used
- Malformed or non-URI query parameter returns a validation error
- Failed requests are not charged

## How this service works

Convert any web page, PDF, Word (.docx), Excel (.xlsx/.xls), OpenDocument, CSV or XML URL to clean, LLM-ready Markdown, up to 10 MB: returns title, Markdown, links (web pages) and character count. url is the document address (https://...). For JavaScript-heavy sites use /markdown/rendered. Private addresses are blocked; failures are not charged. ?url=https://example.com/report.pdf

## Output

A JSON object containing: the final URL after redirects, the document title, the full Markdown representation of the document content, an array of hyperlinks (href and text) for web pages, the total character count, the content type, the converter used (html, text, document, or browser), and a boolean indicating whether the Markdown was truncated at 500,000 characters.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "url"
     ],
     "properties": {
      "url": {
       "type": "string",
       "format": "uri",
       "maxLength": 2048,
       "description": "Address of a public web page or document."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "url",
      "contentType",
      "title",
      "markdown",
      "chars",
      "truncated",
      "converter"
     ],
     "properties": {
      "url": {
       "type": "string",
       "description": "Final address after redirects."
      },
      "chars": {
       "type": "integer"
      },
      "links": {
       "type": "array",
       "items": {
        "type": "object",
        "properties": {
         "href": {
          "type": "string"
         },
         "text": {
          "type": "string"
         }
        }
       }
      },
      "title": {
       "type": "string"
      },
      "trust": {
       "type": "object",
       "description": "Third-party text, cleaned: read trust.notice; removed = what we stripped."
      },
      "markdown": {
       "type": "string"
      },
      "converter": {
       "enum": [
        "html",
        "text",
        "document",
        "browser"
       ],
       "type": "string"
      },
      "truncated": {
       "type": "boolean",
       "description": "True if the Markdown was cut at 500,000 characters."
      },
      "contentType": {
       "type": "string"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "url": "https://example.com/report.pdf",
  "chars": 18234,
  "links": [],
  "title": "Annual Report 2025",
  "markdown": "# Annual Report 2025\n\n## Summary\n\nRevenue grew 12%...",
  "converter": "document",
  "truncated": false,
  "contentType": "application/pdf"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/aayat-ai-document-to-markdown-converter-fcd55e19/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from aayatai.com](https://www.zero.xyz/host/aayatai.com/llms.txt)
