Document Processing API
Tinfoil’s document processing service simplifies parsing diverse document formats — including PDFs, DOCX, PPTX, XLSX, HTML, and images — with sophisticated understanding of document structure, layout, tables, and formulas. Under the hood, Tinfoil uses Docling for powerful and accurate document parsing.API Examples
The document processing endpoint acceptsmultipart/form-data requests at /v1/convert/file. Upload a file along with processing parameters to convert documents into structured formats like Markdown.
Tinfoil’s document processing service is compatible with the Docling API and supports all Docling parameters.See the Docling reference for the full list of options.
Parameters
| Parameter | Description |
|---|---|
files | The document file to process |
model | Model identifier (doc-upload) |
to_formats | Output format: md, json, yaml, html, text, doctags |
from_formats | Input format: pdf, docx, pptx, xlsx, html, image, asciidoc, md, csv |
pipeline | Processing pipeline (standard) |
do_ocr | Enable OCR for scanned documents |
include_images | Include images in output |
image_export_mode | Image handling: placeholder, embedded, referenced |
do_table_structure, do_formula_enrichment, and ocr_engine.

