Documentation
API Reference v2.0
Modrik AI Documentation
Everything you need to build integrations with Modrik AI. From quick start to advanced configurations.
🚀 Get Started in 3 Steps
Step 1 — Installation
pip install modrik
Step 2 — Get API Key
Register at Modrik AI and get your API key from the dashboard.
Step 3 — Extract First Document
import modrik
client = modrik.Client(api_key="YOUR_API_KEY")
# Extract data from a document
result = client.extract(
file_path="invoice.pdf",
doc_type="invoice",
language="ar"
)
print(result.fields)
# Output:
# {
# "vendor_name": "شركة الخليج للتأمين",
# "invoice_number": "INV-2024-001",
# "total_amount": 50000,
# "currency": "SAR",
# "confidence": 0.994
# }Main API Endpoints
POST/v1/extractExtract data from a document
POST/v1/classifyClassify document type
GET/v1/jobs/{id}Track processing status
GET/v1/templatesList supported document types