Skip to main content

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.
Both approaches support nested objects, arrays, enums, and optional fields. See Schemas for the full reference.

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:

Error handling

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.