convert_file
Convert a file. Provide the content as base64 OR a public https URL. from is optional when the filename/URL has an extension. Text outputs (Markdown, CSV, JSON, HTML…) up to 200 KB are returned inline as text; other outputs are returned as base64 plus a downloadUrl that accepts the same bearer token. Max 10 MB per file. Set deepRead: true to read scans, photos and handwriting with AI Deep Read (1 credit per page).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Target format id, e.g. md, docx, xlsx, png | |
| url | No | Public https URL of the file (alternative to base64) | |
| from | No | Source format id; detected from the filename when omitted | |
| base64 | No | File bytes, base64-encoded | |
| options | No | Engine options from check_conversion (delimiter, sheet, quality, …) | |
| deepRead | No | Use AI Deep Read (OCR + layout understanding) for PDFs and images | |
| filename | No | Original filename with extension, e.g. report.pdf |