Financial document intelligence

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.

Read docs →

100 free extractions / month · No credit card · Setup in 30 seconds

terminal
1curl -X POST https://lekhadev.com/api/v1/extract \
2 -H "x-api-key: lk_live_..." \
3 -d '{ "document": "<base64>", "type": "auto" }'
response.json
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

HDFC Bank
SBI
ICICI Bank
Axis Bank
CAMS
KFintech
HDFC Bank
SBI
ICICI Bank
Axis Bank
CAMS
KFintech

How it works

1

Send Document

Base64-encoded PDF, PNG, or JPEG. Any Indian bank format.

2

AI Extraction

Claude Vision classifies and extracts every field. 40+ bank layouts handled.

3

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.

HDFC
+85,000
SBI
+1,20,000
CAS
12 folios

Every Indian financial document

Bank statements, CAS reports, salary slips, ITR forms, CIBIL reports, GST invoices. HDFC, SBI, ICICI, Axis, CAMS, KFintech — 40+ formats.

Balance reconciliationPASS
Transaction sum checkPASS
Sequential consistencyPASS
Date range validationWARN

Validated, not just extracted

Balance reconciliation, sum checks, sequential consistency. Every response tells you exactly what's wrong.

// one import
import { Lekha } from "lekha"
// your agent reads docs
const result = await
lekha.extract(pdf)

Drop into any agent

Ships with tool definitions for Claude, LangChain, and Vercel AI SDK. One import and your agent reads financial documents.

0 KB

Nothing stored. Ever.

Documents processed in memory and discarded. No storage. No logs. No retention. Your users' data never leaves the pipeline.

holder_nameRajesh Kumar0.98
account_noXXXX12340.96
closing_bal1,98,5000.94
ifscHDFC00012340.72

Trust signals on every field

Confidence scores let your agent decide — act on high-confidence data, flag low-confidence for human review.

9document types
40+bank formats
<3savg extraction
99.2%field-level accuracy

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.

integration
1import { Lekha } from "@lekha-dev/sdk";
2import fs from "fs";
3
4const lekha = new Lekha("lk_live_...");
5
6const 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

Demo coming soon

Install the SDK

Typed, zero-dependency client for Node.js 20+. Works with any agent framework.

$bun add @lekha-dev/sdk

From the blog

Simple, transparent pricing

Start free. Scale when you ship.

MonthlyYearly
Free
₹0/mo

100/mo credits

For testing and prototyping

  • All 6 document types
  • All bank formats
  • Community support
  • 100 credits/month

No credit card required

Most Popular
Pro
₹2,499/mo

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
Scale
₹7,999/mo

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
Enterprise
Custom

Unlimited credits

For regulated industries

  • Unlimited credits
  • Dedicated support
  • Custom SLA
  • On-premise deployment
  • SSO & audit logs
  • Custom integrations
Contact us →