- A Datalab account with an API key (new accounts include $5 in free credits)
- Python 3.10+ installed
- The Datalab SDK:
pip install datalab-python-sdk - Your
DATALAB_API_KEYenvironment variable set
Building for production? Use Pipelines to chain processors, version your configuration, and deploy with a single API call.
Quick Start
request_check_url until the status is complete.
See SDK Conversion for complete SDK documentation.
File limits: Maximum file size is 200 MB, with up to 7,000 pages per request. See API Limits for the full list.
Parameters
Core Parameters
Processing Modes
Page Control
Image Handling
Advanced Options
For structured extraction, use the Extract API. For document segmentation, use the Segment API.
The
track_changes extra is supported on this endpoint. You can also use the dedicated Track Changes endpoint.Bounding Box Add-ons
Three add-ons annotate HTML output with spatial coordinates and confidence scores. All are billed at $0.30 per 1K pages each (additive on top of the base conversion rate) and require thehtml output format to expose the attributes.
Additional Config Options
Pass as JSON string inadditional_config:
Example:
Response Fields
Examples
Convert with High Accuracy
HTML with Block IDs for Citations
Process Specific Pages
Process Specific Sheets from a Spreadsheet
For spreadsheet files,page_range filters by sheet index (0-based):
Extract Track Changes from Word Documents
Parse Quality Score
Every conversion response includes aparse_quality_score (0-5) that indicates how well the document was parsed:
Use quality scores to build automated quality gates:
Checkpoints
Save a processing checkpoint to reuse parsed results for extraction or segmentation without re-processing:Next Steps
Structured Extraction
Extract structured data from documents using JSON schemas
Batch Processing
Process multiple documents concurrently
Document Segmentation
Split multi-document PDFs into segments
Webhooks
Get notified when conversions complete