Document Intelligence (x402)
Analyze document images — invoices, contracts, forms, reports — with local AI vision. Extracts text, classifies document type, pulls tables, or summarizes. No cloud upload, no API key. Pay $0.05 USDC per call via x402 micropayment (Base mainnet).
How to Call
POST https://x402.ntriq.co.kr/document-intel
Content-Type: application/json
X-PAYMENT: <x402-payment-header>
{
"image_url": "https://example.com/document.png",
"analysis_type": "extract"
}
The server responds with 402 Payment Required first. Sign the EIP-3009 payment payload and retry with X-PAYMENT header.
Parameters
| Parameter | Type | Required | Description |
|---|
image_url | string | ✅ (or base64) | Publicly accessible URL of document image |
image_base64 | string | ✅ (or url) | Base64-encoded document image |
analysis_type | string | ❌ | extract (default), summarize, classify, table |
language | string | ❌ | Output language ISO code (default: en) |
analysis_type Options
| Value | What it does |
|---|
extract | Full text extraction preserving structure |
summarize | Key points, dates, amounts, parties |
classify | Document type + key metadata |
table | All tables as JSON array |
Example Response
{
"status": "ok",
"analysis_type": "classify",
"analysis": "invoice",
"confidence": 0.97,
"metadata": {
"vendor": "Acme Supplies Ltd.",
"invoice_number": "INV-2024-0847",
"date": "2024-03-15",
"total": "$475.00"
}
}
Payment
- Price: $0.05 USDC per call
- Network: Base mainnet (EIP-3009 gasless)
- Protocol: x402
- Wallet:
0x124AaFfF8Ef45F2cA953807aF09Aacec2D9F8307
# Service catalog
curl https://x402.ntriq.co.kr/services