Agent Intel Invoice Document Ocr
agent_intel_invoice_document_ocrExtracts vendor name, tax ID, line items, net subtotal, VAT rates and payment details (IBAN, BIC) from an invoice image (PNG or JPEG, a public https URL or base64, up to 4 MB) sent straight to a Cloudflare Workers AI vision model. Model output is parsed as JSON and checked for the expected keys; unparseable output is an error, not a guess. Requires the env.AI binding. Price: $0.004 in USDC per successful call, paid with x402 (Base, Solana or Arc); failed calls are not charged.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mime | No | With imageBase64: image/png or image/jpeg (default image/png) | |
| imageUrl | No | Public https URL of the invoice image (PNG or JPEG), up to 4 MB | |
| imageBase64 | No | Or the image itself: base64 data (no data: prefix), up to 4 MB decoded |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||