Convert a document to Markdown in one call
convert_documentConvert a document up to 8 MB to Markdown and return it directly.
Pass the file as base64 in content_base64, or as a download link in
file, and its name in filename. The extension decides the type: .pdf,
.docx, .pptx, .xlsx, .html, .htm or .txt. Returns markdown and meta
(filename, length in characters). PDFs come back as plain text
without headings and without OCR. For scans, tables and page numbers,
use submit_conversion_job. Works without an API key at the anonymous
rate limit.
Credits: 1 per call.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | No | The file as a download link, instead of `content_base64`. In ChatGPT, pass the user's uploaded file here. Other clients can set `download_url` to a public https URL. | |
| filename | Yes | The file name with its extension (.pdf, .docx, .pptx, .xlsx, .html, .htm or .txt). The extension decides how the file is read. | |
| content_base64 | No | The file content, base64-encoded. Up to 8 MB before encoding. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||