Your agent's
financial analyst.
One API call. Any Indian financial document in, structured JSON out. Bank statements, CAS, salary slips, ITR, CIBIL, GST — validated and agent-ready.
100 free extractions / month · No credit card · Setup in 30 seconds
| 1 | curl -X POST https://lekhadev.com/api/v1/extract \ |
| 2 | -H "x-api-key: lk_live_..." \ |
| 3 | -d '{ "document": "<base64>", "type": "auto" }' |
| 1 | { |
| 2 | "document_type": "bank_statement", |
| 3 | "institution": "HDFC Bank", |
| 4 | "confidence": 0.96, |
| 5 | "data": { |
| 6 | "account": { |
| 7 | "holder_name": "Rajesh Kumar", |
| 8 | "account_number": "XXXX1234", |
| 9 | "ifsc": "HDFC0001234" |
| 10 | }, |
| 11 | "summary": { |
| 12 | "opening_balance": 145000, |
| 13 | "closing_balance": 198500, |
| 14 | "total_credits": 320000 |
| 15 | }, |
| 16 | "transactions": [{ |
| 17 | "date": "2026-03-01", |
| 18 | "description": "NEFT CR ACME CORP", |
| 19 | "credit": 85000, |
| 20 | "balance": 230000, |
| 21 | "category": "salary" |
| 22 | }] |
| 23 | } |
| 24 | } |
Works with 40+ Indian financial institutions
How it works
Send Document
→Base64-encoded PDF, PNG, or JPEG. Any Indian bank format.
AI Extraction
→Claude Vision classifies and extracts every field. 40+ bank layouts handled.
Structured JSON
Typed data with account details, transactions, validation, confidence.
Built for Bharat.
For agent builders who ship.
Purpose-built to extract structured data from Indian financial documents — bank statements, ITR forms, CIBIL reports, and more. Every bank format, every edge case, every lakh and crore.
Every Indian financial document
Bank statements, CAS reports, salary slips, ITR forms, CIBIL reports, GST invoices. HDFC, SBI, ICICI, Axis, CAMS, KFintech — 40+ formats.
Validated, not just extracted
Balance reconciliation, sum checks, sequential consistency. Every response tells you exactly what's wrong.
Drop into any agent
Ships with tool definitions for Claude, LangChain, and Vercel AI SDK. One import and your agent reads financial documents.
Nothing stored. Ever.
Documents processed in memory and discarded. No storage. No logs. No retention. Your users' data never leaves the pipeline.
Trust signals on every field
Confidence scores let your agent decide — act on high-confidence data, flag low-confidence for human review.
Three lines to
structured data.
No SDK required — just HTTP. But the SDK gives you types, auto-retry, and one-line agent integration.
bun add @lekha-dev/sdk
Zero dependencies. Native fetch.
Auto document detection
Pass type: "auto" — we classify it for you.
Full TypeScript types
Every document format, every field, fully typed.
| 1 | import { Lekha } from "@lekha-dev/sdk"; |
| 2 | import fs from "fs"; |
| 3 | |
| 4 | const lekha = new Lekha("lk_live_..."); |
| 5 | |
| 6 | const result = await lekha.extract({ |
| 7 | document: fs.readFileSync("statement.pdf"), |
| 8 | type: "auto", |
| 9 | }); |
| 10 | |
| 11 | // result.data.transactions |
| 12 | // result.data.summary.closing_balance |
| 13 | // result.validation.balance_reconciled |
See it in action
From document to structured JSON in seconds
Install the SDK
Typed, zero-dependency client for Node.js 20+. Works with any agent framework.
From the blog
Simple, transparent pricing
Start free. Scale when you ship.
100/mo credits
For testing and prototyping
- All 6 document types
- All bank formats
- Community support
- 100 credits/month
No credit card required
5,000/mo credits
For shipping to production
- All 6 document types
- All bank formats
- Email support
- 5,000 credits/month
- Webhooks
- Higher rate limits
25,000/mo credits
For high-volume pipelines
- All 6 document types
- All bank formats
- Priority support
- 25,000 credits/month
- Webhooks
- Custom rate limits
- Custom prompts
- SLA
Unlimited credits
For regulated industries
- Unlimited credits
- Dedicated support
- Custom SLA
- On-premise deployment
- SSO & audit logs
- Custom integrations
