Usage
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
file | File | One of | Document file (multipart upload) |
document_url | string | One of | URL to fetch document from |
document_base64 | string | One of | Base64-encoded document content |
from | string | Yes | Source format: docx, md, html |
to | string | No | Target format: pdf, docx. Default: pdf |
Supported conversions
| From | To | Notes |
|---|---|---|
docx | pdf | Full fidelity conversion |
md | docx | Converts Markdown to Word |
md | pdf | Markdown to PDF (via DOCX) |
html | docx | HTML content to Word |
Response
Returns the converted document as binary data with appropriate content type:application/pdffor PDF outputapplication/vnd.openxmlformats-officedocument.wordprocessingml.documentfor DOCX output
Examples
Convert uploaded file
Generate Word doc from Markdown
Limits
| Limit | Value |
|---|---|
| Max file size | 25 MB |
| Concurrent requests | 10 per API key |

