x402_lens_post_v1_document
Extracts structured JSON from document photos—receipts, lab reports, prescriptions—via a paid POST /v1/document call using an image URL or base64 and optional question.
Instructions
lens — Pay-per-call image understanding endpoints (inclusionAI LingSante 3.1 Air VL): food photo → nutrition/allergens/macros, product/medicine label OCR → structured JSON, medical photo description (not diagnosis), document extraction (receipts, lab reports, prescriptions), generic visual Q&A. Image via https URL or base64 data URI. $0.01/call on Base/Polygon/Arbitrum/World. [POST /v1/document] $0.01 USDC on eip155:8453+137+42161+480. Example: /v1/document — body: {image: 'https://…/receipt.jpg', question?}
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "x402_lens_post_v1_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | JSON body for POST/PUT/PATCH/DELETE | |
| query | No | Query parameters, e.g. {base:'USD', quote:'EUR'} | |
| restart | No | Explicitly re-run a previously failed/unknown operation. Never set for unknown outcomes unless you know the paid call did not complete. | |
| operationId | No | Durable operation id for this intent. Supply a stable id (e.g. your job/run id) to dedupe retries; omit to derive one from the arguments. |