Developers can now programmatically retrieve a list of all file formats supported by the Markdown Conversion utility in Workers AI.
You can use the env.AI binding:
await env.AI.toMarkdown().supported()Or call the REST API:
curl https://api.cloudflare.com/client/v4/accounts/{ACCOUNT_ID}/ai/tomarkdown/supported \ -H 'Authorization: Bearer {API_TOKEN}'Both return a list of file formats that users can convert into Markdown:
[ { "extension": ".pdf", "mimeType": "application/pdf", }, { "extension": ".jpeg", "mimeType": "image/jpeg", }, ...]Learn more about our Markdown Conversion utility.
Source: Cloudflare



![Microsoft 365 Copilot: Researcher agent output formats [MC1224569] 4 pexels pixabay 39828](https://mwpro.co.uk/wp-content/uploads/2024/08/pexels-pixabay-39828-150x150.webp)
![Trust DigiCert Global Root G2 certificate authority to avoid Exchange Online email disruption [MC1224565] 5 pexels frank cone 140140 3573555](https://mwpro.co.uk/wp-content/uploads/2024/08/pexels-frank-cone-140140-3573555-150x150.webp)
