AI Tools
Extract key information from receipt/invoice images and convert to custom JSON format using AI vision models
Call this tool from your code in three languages.
# 1) Request a presigned URL → returns { uploadUrl, storageKey }
curl -X POST 'https://api.elysiatools.com/api/upload/presign/ai-image-to-receipt-json' \
-H 'Content-Type: application/json' \
-d '{"filename":"imageFile.ext","contentType":"application/octet-stream","size":12345}'
# 2) PUT the file bytes directly to the presigned uploadUrl
curl -X PUT '<presigned uploadUrl>' \
--data-binary @/path/to/file.ext
# 3) Call the tool, passing the returned storageKey for each file field
curl -X POST 'https://api.elysiatools.com/en/api/tools/ai-image-to-receipt-json' \
-F 'imageFile=uploads/2026/01/01/your-tool-1700000000000-abc123.ext' \
-F 'jsonFormat=输入自定义的JSON格式结构,例如:
{
"merchantName": "string or null",
"totalAmount": "number or null",
"date": "string (YYYY-MM-DD) or null",
"items": [
{
"name": "string or null",
"price": "number or null"
}
]
}'Send a POST request with your inputs as JSON. File parameters require a separate upload first.
POST https://api.elysiatools.com/en/api/tools/ai-image-to-receipt-json| Name | Type | Required | Description |
|---|---|---|---|
| imageFile | fileupload required | Yes | Supports receipt/invoice photos in common image formats such as JPG, PNG, WebP |
| jsonFormat | textarea | No | Leave empty to use default format, or enter custom JSON structure to specify fields to extract |
JSON result
{
"key": {...},
"metadata": {
"key": "value"
},
"error": "Error message (optional)",
"message": "Notification message (optional)"
}Add this tool to your Model Context Protocol server so AI agents can list and call it.
Add this block to your MCP client configuration:
{
"mcpServers": {
"elysiatools-ai-image-to-receipt-json": {
"name": "ai-image-to-receipt-json",
"description": "Extract key information from receipt/invoice images and convert to custom JSON format using AI vision models",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=ai-image-to-receipt-json",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}After connecting to the SSE endpoint, list the exposed tools:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Invoke the tool by its id, passing arguments built from its parameters:
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "ai-image-to-receipt-json",
"arguments": {
"imageFile": "https://example.com/file.ext",
"jsonFormat": "输入自定义的JSON格式结构,例如:\n{\n \"merchantName\": \"string or null\",\n \"totalAmount\": \"number or null\",\n \"date\": \"string (YYYY-MM-DD) or null\",\n \"items\": [\n {\n \"name\": \"string or null\",\n \"price\": \"number or null\"\n }\n ]\n}"
}
}
}Questions or issues? Contact [email protected]