1. Get an API key
Sign up at dev.thedrive.ai and create an API key from the dashboard. Free tier includes 100 credits/month.2. Install the SDK
3. Extract data
4. Or use Pydantic / Zod
Instead of writing raw JSON schemas, use the tools you already know.5. Extract from a URL
You can pass a URL instead of uploading a file. Works with any public URL — the API renders JavaScript-heavy pages with a headless browser.What’s in the response
Every extraction returns:| Field | Description |
|---|---|
data | Extracted values, type-enforced to match your schema |
confidence | Per-field confidence scores (0.0 - 1.0) |
citations | Per-field source text snippets from the document |
field_status | Per-field found/not_found status with type info |
credits_used | Credits consumed for this request |
Error handling
| Status | Meaning |
|---|---|
400 | Invalid schema, missing file/URL, or bad request |
401 | Missing or invalid API key |
413 | File too large (max 50 MB) |
503 | AI service temporarily unavailable |
What’s next
Analyze
Compute and reason over documents — sums, comparisons, risk assessments.
Cross-Analyze
Validate an invoice against a contract, reconcile spreadsheets, compare agreements.
Schemas
Full type reference — arrays, nested objects, enums, required fields, Pydantic, Zod.
Async & Webhooks
Process documents asynchronously with webhook notifications.