Supported endpoints
The container currently supports:/api/v1/convert(and the legacy alias/api/v1/marker) — document conversion to markdown, HTML, JSON, or chunks. Uses both the Marker and Chandra models./api/v1/ocrdocumented here./api/v1/extract— structured extraction via JSON schema. Supportsfastandturboextraction modes. Requires the Chandra model with the Lift model enabled;balancedandaccurateextraction modes are not available on-prem./api/v1/usagedocumented here — provides usage analytics and performance metrics for your on-prem deployment.
Structured Extraction
/api/v1/extract requires page_schema and defaults to extraction_mode=fast. Fast mode parses the document and returns citations with the extracted data; extraction_mode=turbo reads page images and returns extracted JSON without parsed output, citations, or verification. Neither on-prem mode runs the cloud’s background confidence-scoring service.
Enable models.lift.enabled=true in a Chandra Helm deployment before using extraction. Unsupported extraction mode values are rejected with HTTP 400. A missing model service is reported as a job error while polling.
Chandra-specific parameters
The following parameters are available on/api/v1/convert when running a Chandra-mode container (v1.5.0+):
Example — strip page headers and footers from output:
exclude_block_types is available on Chandra-mode containers (v1.5.0+) only. Marker-mode containers do not support this parameter.Crop Image Format
Setimage_format=png to return extracted crops as PNG instead of the default JPEG. Accepted values are jpeg and png; the format also determines the image filename extensions referenced in the output. Both Marker and Chandra conversion support this setting. Invalid non-empty values return HTTP 400.
request_check_url until completion to retrieve the converted output.
Optional Model Add-ons
Chandra deployments can enable these optional model services in their Helm values. Contact support@datalab.to for the model images and resource requirements.Scanned Redlines
Onsurya2 containers with a compatible redline checkpoint, pass redline=true to /api/v1/convert to preserve visible insertions, deletions, and comments as inline <ins>, <del>, and <comment> tags. Request HTML output to inspect these annotations.
Partial Page Failures
Chandra conversion results includemetadata.failed_pages, a list of original, 0-indexed page numbers that could not be parsed. Retry those pages using page_range. An empty list means no failed pages were reported; an absent field does not establish that all pages succeeded.
metadata.page_stats can also include parse_status and parse_failure_reason. A page marked blank is not a failure. A degraded page has usable content but may need review.
Authentication
API authentication is not supported in the container. We assume customers will be running our image on their own infrastructure in private networks. You may send theX-API-Key header detailed here, but it will be ignored and any value works.
Supported File Types
Datalab’s API supports many file types. Chandra conversion supports PDFs and images, plus Office documents (including DOCX), HTML, and EPUB through local conversion to PDF. The required conversion tools must be included in your image. DOCX uses the local document renderer when available, with LibreOffice as a fallback. Conversion failures are reported in the job result.Feature Parity
On-premises containers do not require API key authentication. Implement access control at the network or reverse proxy level.
Next Steps
Usage Analytics
Monitor request volumes, performance metrics, and system status.
Running the Container
Get the on-prem container up and running in minutes.
Cloud API Reference
Full REST API reference that the on-prem container mirrors.
On-Prem Overview
Compare open-source and paid on-prem options.