$0.015 USDC per call on Base · No signup · No API key · x402 v2
Document AI: PDF/image to structured JSON. Upload a PDF or image, get back structured JSON: full text, tables, form fields, document type, and a summary. Vision AI for images, text extraction + AI structuring for PDFs. $0.015/call via x402.
Data source: Vision LLM + PDF text extraction + LLM structuring
No account. No API key. Every endpoint speaks x402 v2:
402 Payment Required with the priceeip155:8453)X-PAYMENT header → 200 with JSONcurl -X POST "https://api.mekongtradeintel.com/docextract/api/extract" \
-H "Content-Type: application/json" \
-d 'POST multipart/form-data, field "file" = invoice.pdf'
| Param | Type | Description |
|---|---|---|
file | multipart binary | PDF, PNG, JPG, or WEBP file, max 10MB, field name 'file' |
Request
POST multipart/form-data, field "file" = invoice.pdf
Response
{
"filename": "invoice.pdf", "docType": "pdf", "pages": 2,
"structured": {"text": "...", "tables": [{"headers": [...]}], "forms": {"total": "$1,234.56"}},
"summary": "Invoice #12345..."
}
x402 v2 · exact scheme · USDC 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913 on Base (eip155:8453).
Facilitators: Coinbase CDP and PayAI (no API key needed for either).
What file types are supported?
PDF, PNG, JPG, and WEBP, up to 10MB.
How are scanned PDFs handled?
Text-based PDFs are parsed directly. For scanned/image PDFs, upload page images instead for vision AI processing.
What structure do I get?
Full text, detected tables (headers + rows), form key-value pairs, document type classification, and a 2-sentence summary.
Do I need an API key?
No. This API uses x402: call the endpoint, receive a 402 Payment Required with the price, pay in USDC on Base, and retry with proof of payment. No signup, no API key, no account.
Which facilitators are supported?
Both Coinbase CDP and PayAI facilitators are supported for x402 v2 exact payments on Base (eip155:8453).
What if my payment is too low?
The facilitator verifies the on-chain amount against the price. If underpaid, you get 402 again; pay the full amount and retry.
Part of the x402 API Collection — 37 pay-per-call endpoints, $0.0008–$1.50/call. Full catalog: https://api.mekongtradeintel.com/.well-known/x402 · pricing