ai_receipt_extract
Receipt to structured expense data — Turn store receipt text (OCR or pasted) into structured expense data: merchant, address, date, time, currency, line items (name, quantity, unit price, total), subtotal, tax and tax rate, tip, discount, total, payment method, card last 4 and an expense category (meals, groceries, travel, lodging, fuel, office, software, shipping, entertainment, health, other). The arithmetic is checked offline (items vs subtotal, subtotal + tax + tip - discount vs total) with verdict OK / REVIEW. Param: text (up to 8,000 characters). Workers AI llama-3.3-70b. Price: $0.008 USDC (Base, via x402).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"text": "<text>"
},
"name": "ai_receipt_extract"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | e.g. BLUE BOTTLE COFFEE 66 Mint St San Francisco CA 11/20/2026 08:14 Latte 2 x 5.50 11.00 Croissant 4.25 Subtotal 15.25 Tax 1.37 Tip 3.00 Total 19.62 VISA ****4821 |