Get Your API Key
Sign up at datalab.to/auth/sign_up — new accounts include $5 in free credits, enough to process hundreds of pages. Then grab your API key from the API Keys dashboard.Installation
Install the Datalab SDK:Convert a Document
The SDK provides a simple interface to convert documents to Markdown, HTML, JSON, or chunks.Conversion Options
Control the conversion with options:Processing Modes
| Mode | Description |
|---|---|
fast | Lowest latency, good for simple documents (SDK default) |
balanced | Balance of speed and accuracy |
accurate | Highest accuracy, best for complex layouts |
Fill PDF Forms
Fill forms in PDFs or images with structured data:Upload and Manage Files
Upload files to Datalab for use in workflows:CLI
The SDK includes a command-line interface:Async Support
For high-throughput applications, use the async client:Next Steps
SDK Reference
Full Python SDK documentation with typed clients and async support.
API Reference
REST API reference for document conversion, form filling, and file management.
Document Conversion
Detailed guide to converting PDFs and documents to Markdown, HTML, or JSON.
Structured Extraction
Extract structured data from documents using JSON schemas.