convert_document
Convert a document to Markdown with Docling
Convert a document up to 25 MB and 200 pages to Markdown with Docling: OCR, tables, headings and reading order. Pass the file as base64 in `content_base64`, or as a download link in `file`, and its name in `filename`. Returns `task_id` and `task_status`. Call `get_conversion` with the `task_id` until `task_status` is `success` or `failure`; a long PDF can take several minutes. Costs 1 credit per PDF page converted (2 with `force_ocr`) and 10 credits per other file, refunded if the conversion fails. Requires an API key. The file is deleted when the conversion ends; the result is kept for 7 days.
filefilenamerequiredforce_ocrpage_rangecontent_base64