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

# Run Inference (v1 - Latest)

Inspect PCBs for missing or faulty components Submit an image to analyze using the PCB Visual Inspector 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/pcb-visual-inspector/v1/inference": {
      "post": {
        "tags": [
          "PCB Visual Inspector"
        ],
        "summary": "Run Inference (v1 - Latest)",
        "operationId": "inner_api_v2_agents_pcb_visual_inspector_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_pcb-visual-inspector-v1"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InferenceResponse_PCBVisualInspectionOutputSchema_"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          }
        },
        "description": "Inspect PCBs for missing or faulty components Submit an image to analyze using the PCB Visual Inspector 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"
      },
      "OverallStatus": {
        "type": "string",
        "enum": [
          "pass",
          "attention",
          "fail"
        ],
        "title": "OverallStatus",
        "description": "Allowed overall status values for audit-style agents."
      },
      "CheckStatus": {
        "type": "string",
        "enum": [
          "pass",
          "fail",
          "attention",
          "cannot_validate"
        ],
        "title": "CheckStatus",
        "description": "Allowed per-check status values for detailed visual assessments."
      },
      "InferenceRequestModel_pcb-visual-inspector-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']."
          },
          "reference_files": {
            "anyOf": [
              {
                "items": {
                  "type": "string",
                  "maxLength": 1468006,
                  "format": "base64",
                  "contentMediaType": "application/octet-stream",
                  "description": "Single reference file (decoded bytes)"
                },
                "type": "array",
                "maxItems": 5
              },
              {
                "type": "null"
              }
            ],
            "title": "Reference Files",
            "description": "Optional list (max 5) of reference files provided as base64 strings / Base64Bytes. Each file must be <= 1.4MB decoded."
          }
        },
        "type": "object",
        "required": [
          "input_file_b64"
        ],
        "title": "InferenceRequestModel_pcb-visual-inspector-v1"
      },
      "InferenceResponse_PCBVisualInspectionOutputSchema_": {
        "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/PCBVisualInspectionOutputSchema",
            "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[PCBVisualInspectionOutputSchema]"
      },
      "PCBVisualInspectionOutputSchema": {
        "properties": {
          "overall_status": {
            "$ref": "#/components/schemas/OverallStatus",
            "description": "Overall status: pass | attention | fail"
          },
          "overall_score": {
            "type": "number",
            "maximum": 1,
            "minimum": 0,
            "title": "Overall Score",
            "description": "Aggregate visual compliance / health score 0.0-1.0"
          },
          "summary": {
            "type": "string",
            "title": "Summary",
            "description": "Concise summary prioritising most severe confirmed issues and notable uncertainties"
          },
          "checks": {
            "$ref": "#/components/schemas/PCBChecksSchema",
            "description": "Per-check PCB visual inspection results"
          },
          "issues_detected": {
            "items": {
              "$ref": "#/components/schemas/PCBIssueSchema"
            },
            "type": "array",
            "title": "Issues Detected",
            "description": "List of granular detected issues (each distinct finding)",
            "default": []
          },
          "limitations": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "title": "Limitations",
            "description": "List of applicable limitations for this visual-only PCB inspection"
          },
          "notes": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Notes",
            "description": "Additional contextual notes or observations"
          }
        },
        "type": "object",
        "required": [
          "overall_status",
          "overall_score",
          "summary",
          "checks",
          "limitations"
        ],
        "title": "PCBVisualInspectionOutputSchema"
      },
      "PCBChecksSchema": {
        "properties": {
          "component_presence": {
            "$ref": "#/components/schemas/PCBCheck_component_presence",
            "description": "All required / expected components present"
          },
          "component_alignment": {
            "$ref": "#/components/schemas/PCBCheck_component_alignment",
            "description": "Alignment & rotation of placed components"
          },
          "solder_joint_quality": {
            "$ref": "#/components/schemas/PCBCheck_solder_joint_quality",
            "description": "General solder joint quality & absence of bridges"
          },
          "silkscreen_consistency": {
            "$ref": "#/components/schemas/PCBCheck_silkscreen_consistency",
            "description": "Silkscreen / reference designator / polarity mark presence"
          },
          "polarity_markings_correct": {
            "$ref": "#/components/schemas/PCBCheck_polarity_markings_correct",
            "description": "Polarity-sensitive components oriented correctly"
          },
          "connector_orientation_correct": {
            "$ref": "#/components/schemas/PCBCheck_connector_orientation_correct",
            "description": "Connector/header orientation matches expectation"
          },
          "thermal_damage_absent": {
            "$ref": "#/components/schemas/PCBCheck_thermal_damage_absent",
            "description": "Absence of scorch/burn/overheat marks"
          },
          "contamination_absent": {
            "$ref": "#/components/schemas/PCBCheck_contamination_absent",
            "description": "Absence of heavy flux / debris / corrosion"
          },
          "mechanical_damage_absent": {
            "$ref": "#/components/schemas/PCBCheck_mechanical_damage_absent",
            "description": "No cracks, chips, lifted components"
          },
          "board_warping_absent": {
            "$ref": "#/components/schemas/PCBCheck_board_warping_absent",
            "description": "Board appears planar (no obvious bow)"
          }
        },
        "type": "object",
        "required": [
          "component_presence",
          "component_alignment",
          "solder_joint_quality",
          "silkscreen_consistency",
          "polarity_markings_correct",
          "connector_orientation_correct",
          "thermal_damage_absent",
          "contamination_absent",
          "mechanical_damage_absent",
          "board_warping_absent"
        ],
        "title": "PCBChecksSchema"
      },
      "PCBCheck_component_presence": {
        "properties": {
          "status": {
            "$ref": "#/components/schemas/CheckStatus",
            "description": "Per-check status"
          },
          "confidence": {
            "type": "number",
            "maximum": 1,
            "minimum": 0,
            "title": "Confidence",
            "description": "Confidence 0.0-1.0 (cap 0.98)"
          }
        },
        "type": "object",
        "required": [
          "status",
          "confidence"
        ],
        "title": "PCBCheck_component_presence"
      },
      "PCBCheck_component_alignment": {
        "properties": {
          "status": {
            "$ref": "#/components/schemas/CheckStatus",
            "description": "Per-check status"
          },
          "confidence": {
            "type": "number",
            "maximum": 1,
            "minimum": 0,
            "title": "Confidence",
            "description": "Confidence"
          }
        },
        "type": "object",
        "required": [
          "status",
          "confidence"
        ],
        "title": "PCBCheck_component_alignment"
      },
      "PCBCheck_solder_joint_quality": {
        "properties": {
          "status": {
            "$ref": "#/components/schemas/CheckStatus",
            "description": "Per-check status"
          },
          "confidence": {
            "type": "number",
            "maximum": 1,
            "minimum": 0,
            "title": "Confidence",
            "description": "Confidence"
          }
        },
        "type": "object",
        "required": [
          "status",
          "confidence"
        ],
        "title": "PCBCheck_solder_joint_quality"
      },
      "PCBCheck_silkscreen_consistency": {
        "properties": {
          "status": {
            "$ref": "#/components/schemas/CheckStatus",
            "description": "Per-check status"
          },
          "confidence": {
            "type": "number",
            "maximum": 1,
            "minimum": 0,
            "title": "Confidence",
            "description": "Confidence"
          }
        },
        "type": "object",
        "required": [
          "status",
          "confidence"
        ],
        "title": "PCBCheck_silkscreen_consistency"
      },
      "PCBCheck_polarity_markings_correct": {
        "properties": {
          "status": {
            "$ref": "#/components/schemas/CheckStatus",
            "description": "Per-check status"
          },
          "confidence": {
            "type": "number",
            "maximum": 1,
            "minimum": 0,
            "title": "Confidence",
            "description": "Confidence"
          }
        },
        "type": "object",
        "required": [
          "status",
          "confidence"
        ],
        "title": "PCBCheck_polarity_markings_correct"
      },
      "PCBCheck_connector_orientation_correct": {
        "properties": {
          "status": {
            "$ref": "#/components/schemas/CheckStatus",
            "description": "Per-check status"
          },
          "confidence": {
            "type": "number",
            "maximum": 1,
            "minimum": 0,
            "title": "Confidence",
            "description": "Confidence"
          }
        },
        "type": "object",
        "required": [
          "status",
          "confidence"
        ],
        "title": "PCBCheck_connector_orientation_correct"
      },
      "PCBCheck_thermal_damage_absent": {
        "properties": {
          "status": {
            "$ref": "#/components/schemas/CheckStatus",
            "description": "Per-check status"
          },
          "confidence": {
            "type": "number",
            "maximum": 1,
            "minimum": 0,
            "title": "Confidence",
            "description": "Confidence"
          }
        },
        "type": "object",
        "required": [
          "status",
          "confidence"
        ],
        "title": "PCBCheck_thermal_damage_absent"
      },
      "PCBCheck_contamination_absent": {
        "properties": {
          "status": {
            "$ref": "#/components/schemas/CheckStatus",
            "description": "Per-check status"
          },
          "confidence": {
            "type": "number",
            "maximum": 1,
            "minimum": 0,
            "title": "Confidence",
            "description": "Confidence"
          }
        },
        "type": "object",
        "required": [
          "status",
          "confidence"
        ],
        "title": "PCBCheck_contamination_absent"
      },
      "PCBCheck_mechanical_damage_absent": {
        "properties": {
          "status": {
            "$ref": "#/components/schemas/CheckStatus",
            "description": "Per-check status"
          },
          "confidence": {
            "type": "number",
            "maximum": 1,
            "minimum": 0,
            "title": "Confidence",
            "description": "Confidence"
          }
        },
        "type": "object",
        "required": [
          "status",
          "confidence"
        ],
        "title": "PCBCheck_mechanical_damage_absent"
      },
      "PCBCheck_board_warping_absent": {
        "properties": {
          "status": {
            "$ref": "#/components/schemas/CheckStatus",
            "description": "Per-check status"
          },
          "confidence": {
            "type": "number",
            "maximum": 1,
            "minimum": 0,
            "title": "Confidence",
            "description": "Confidence"
          }
        },
        "type": "object",
        "required": [
          "status",
          "confidence"
        ],
        "title": "PCBCheck_board_warping_absent"
      },
      "PCBIssueSchema": {
        "properties": {
          "category": {
            "type": "string",
            "title": "Category",
            "description": "Issue category e.g. missing_component, extra_component, solder_bridge, misalignment, contamination, damage, polarity, orientation, thermal, silkscreen"
          },
          "description": {
            "type": "string",
            "title": "Description",
            "description": "Human-readable concise description of the issue"
          },
          "severity": {
            "type": "string",
            "title": "Severity",
            "description": "Severity level: minor | moderate | major"
          },
          "confidence": {
            "type": "number",
            "maximum": 1,
            "minimum": 0,
            "title": "Confidence",
            "description": "Confidence score 0.0-1.0 (cap 0.98)"
          },
          "location_hint": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Location Hint",
            "description": "Optional approximate location description (e.g. 'upper-left quadrant near connector J3')"
          }
        },
        "type": "object",
        "required": [
          "category",
          "description",
          "severity",
          "confidence"
        ],
        "title": "PCBIssueSchema"
      }
    }
  },
  "servers": [
    {
      "url": "https://api.ai.vision.tiliter.com",
      "description": "Production API"
    }
  ],
  "tags": [
    {
      "name": "PCB Visual Inspector",
      "description": "Inspect PCBs for missing or faulty components"
    }
  ]
}
```