---
updatedAt: 2026-09-04T01:56:54.000Z
agentTools:
  projectIndex: https://developer.tiliter.com/llms.txt
---

# Run Inference (v1 - Latest)

Extract structured data from receipt images Submit an image to analyze using the Receipt Processor agent.

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Vision Agent Platform API",
    "description": "Backend API for Vision Agent Platform with multi-provider LLM integration",
    "version": "1.0.0"
  },
  "paths": {
    "/api/v2/agents/receipt-processor/v1/inference": {
      "post": {
        "tags": [
          "Receipt Processor"
        ],
        "summary": "Run Inference (v1 - Latest)",
        "operationId": "inner_api_v2_agents_receipt_processor_v1_inference_post",
        "parameters": [
          {
            "name": "X-API-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "title": "X-API-Key",
              "description": "Your API key for authentication"
            },
            "description": "Your API key for authentication"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/InferenceRequestModel_receipt-processor-v1"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InferenceResponse_ReceiptProcessorOutputSchema_"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "description": "Extract structured data from receipt images Submit an image to analyze using the Receipt Processor agent."
      }
    }
  },
  "components": {
    "schemas": {
      "MetaData": {
        "properties": {
          "agent_id": {
            "type": "string",
            "title": "Agent Id",
            "description": "Id of the agent that produced this response."
          },
          "request_id": {
            "type": "string",
            "title": "Request Id",
            "description": "Unique per-request id for tracing/logging."
          },
          "reference_files_count": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Reference Files Count",
            "description": "Number of reference files supplied (if any)"
          }
        },
        "type": "object",
        "required": [
          "agent_id",
          "request_id"
        ],
        "title": "MetaData"
      },
      "HTTPValidationError": {
        "properties": {
          "detail": {
            "items": {
              "$ref": "#/components/schemas/ValidationError"
            },
            "type": "array",
            "title": "Detail"
          }
        },
        "type": "object",
        "title": "HTTPValidationError"
      },
      "ValidationError": {
        "properties": {
          "loc": {
            "items": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "integer"
                }
              ]
            },
            "type": "array",
            "title": "Location"
          },
          "msg": {
            "type": "string",
            "title": "Message"
          },
          "type": {
            "type": "string",
            "title": "Error Type"
          },
          "input": {
            "title": "Input"
          },
          "ctx": {
            "type": "object",
            "title": "Context"
          }
        },
        "type": "object",
        "required": [
          "loc",
          "msg",
          "type"
        ],
        "title": "ValidationError"
      },
      "InferenceRequestModel_receipt-processor-v1": {
        "properties": {
          "input_file_b64": {
            "type": "string",
            "maxLength": 1468006,
            "format": "base64",
            "contentMediaType": "application/octet-stream",
            "title": "Input File B64",
            "description": "Base 64 encoded input file data. Must be one of the following types: ['Image', 'PDF']."
          }
        },
        "type": "object",
        "required": [
          "input_file_b64"
        ],
        "title": "InferenceRequestModel_receipt-processor-v1"
      },
      "InferenceResponse_ReceiptProcessorOutputSchema_": {
        "properties": {
          "success": {
            "type": "boolean",
            "title": "Success",
            "description": "True when the agent completed successfully, false otherwise."
          },
          "metadata": {
            "$ref": "#/components/schemas/MetaData",
            "description": "Tracing metadata about the request."
          },
          "result": {
            "$ref": "#/components/schemas/ReceiptProcessorOutputSchema",
            "description": "Agent-specific structured output. Always present on success; failures raise HTTPException rather than returning success=false."
          },
          "processed_image_b64": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Processed Image B64",
            "description": "Base64-encoded processed image (e.g., with faces blurred) when privacy features are enabled"
          }
        },
        "type": "object",
        "required": [
          "success",
          "metadata",
          "result"
        ],
        "title": "InferenceResponse[ReceiptProcessorOutputSchema]"
      },
      "ReceiptProcessorOutputSchema": {
        "properties": {
          "merchant": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Merchant",
            "description": "Merchant or store name"
          },
          "total": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Total",
            "description": "Total transaction amount"
          },
          "tax": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Tax",
            "description": "Tax amount"
          },
          "tax_type": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Tax Type",
            "description": "Type of tax (GST, VAT, etc.)"
          },
          "date": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Date",
            "description": "Transaction date in YYYY-MM-DD format"
          },
          "currency": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Currency",
            "description": "Currency code (e.g., USD, EUR)"
          },
          "payment_method": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Payment Method",
            "description": "Payment method used"
          },
          "items": {
            "items": {
              "$ref": "#/components/schemas/ReceiptItemSchema"
            },
            "type": "array",
            "title": "Items",
            "description": "List of purchased items",
            "default": []
          },
          "address": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Address",
            "description": "Business address"
          },
          "phone": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Phone",
            "description": "Business phone number"
          },
          "receipt_number": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Receipt Number",
            "description": "Receipt or invoice number"
          },
          "notes": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Notes",
            "description": "Additional observations or notes"
          },
          "finance_summary": {
            "$ref": "#/components/schemas/FinanceSummarySchema",
            "description": "Finance summary for accounting workflows"
          },
          "issues_detected": {
            "items": {
              "$ref": "#/components/schemas/ReceiptIssueSchema"
            },
            "type": "array",
            "title": "Issues Detected",
            "description": "List of detected image quality or recognition issues",
            "default": []
          },
          "confidence": {
            "type": "number",
            "maximum": 1,
            "minimum": 0,
            "title": "Confidence",
            "description": "Overall analysis confidence"
          },
          "summary": {
            "type": "string",
            "title": "Summary",
            "description": "Summary of the receipt processing results"
          }
        },
        "type": "object",
        "required": [
          "finance_summary",
          "confidence",
          "summary"
        ],
        "title": "ReceiptProcessorOutputSchema"
      },
      "ReceiptItemSchema": {
        "properties": {
          "name": {
            "type": "string",
            "title": "Name",
            "description": "Item name or description"
          },
          "price": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Price",
            "description": "Price of the item (numeric only)"
          },
          "quantity": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Quantity",
            "description": "Quantity/units if visible (numeric)"
          }
        },
        "type": "object",
        "required": [
          "name"
        ],
        "title": "ReceiptItemSchema"
      },
      "FinanceSummarySchema": {
        "properties": {
          "expense_category": {
            "type": "string",
            "title": "Expense Category",
            "description": "Expense category: Meals & Entertainment, Travel, Office Supplies, Equipment, Software & Subscriptions, Professional Services, Utilities, Marketing & Advertising, Shipping & Postage, Maintenance & Repairs, or Other"
          },
          "subcategory": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Subcategory",
            "description": "More specific subcategory (e.g., Client Dinner, Airfare, Printer Ink)"
          },
          "subtotal": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Subtotal",
            "description": "Pre-tax amount (total minus tax)"
          },
          "tax_deductible": {
            "type": "boolean",
            "title": "Tax Deductible",
            "description": "Whether this expense is typically tax deductible for business purposes"
          },
          "tax_deductible_percentage": {
            "anyOf": [
              {
                "type": "integer",
                "maximum": 100,
                "minimum": 0
              },
              {
                "type": "null"
              }
            ],
            "title": "Tax Deductible Percentage",
            "description": "Percentage that is typically deductible (0-100)"
          },
          "suggested_gl_code": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Suggested Gl Code",
            "description": "Suggested general ledger account code (e.g., 6200 - Meals)"
          },
          "fiscal_quarter": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Fiscal Quarter",
            "description": "Fiscal quarter based on date (Q1, Q2, Q3, Q4)"
          },
          "payment_type": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Payment Type",
            "description": "Payment type: Business Expense, Reimbursable, or Personal"
          },
          "accounting_notes": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Accounting Notes",
            "description": "Notes relevant for bookkeeping"
          }
        },
        "type": "object",
        "required": [
          "expense_category",
          "tax_deductible"
        ],
        "title": "FinanceSummarySchema"
      },
      "ReceiptIssueSchema": {
        "properties": {
          "type": {
            "type": "string",
            "title": "Type",
            "description": "Issue type: blur, crease, faded, cut_off, glare, other"
          },
          "severity": {
            "type": "string",
            "title": "Severity",
            "description": "Issue severity: minor, moderate, major"
          },
          "note": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Note",
            "description": "Additional details about the issue"
          }
        },
        "type": "object",
        "required": [
          "type",
          "severity"
        ],
        "title": "ReceiptIssueSchema"
      }
    }
  },
  "servers": [
    {
      "url": "https://api.ai.vision.tiliter.com",
      "description": "Production API"
    }
  ],
  "tags": [
    {
      "name": "Receipt Processor",
      "description": "Extract structured data from receipt images"
    }
  ]
}
```