Components

Generate component from image

Changed on

Analyzes an uploaded image and generates components based on the visual content. Supports 'flowchart' (Mermaid syntax), 'chart' (matplotlib PNG as base64), and 'table' (HTML table extraction). If no image is provided, creates an empty component record for later upload via presigned URL.

post/api/v0/components

Request

Query parameters

component_type'flowchart' | 'diagram' | 'mindmap' | 'chart' | 'table' | 'schematic'

Type of component to generate. Supports 'flowchart', 'chart', and 'table'.

include_descriptionboolean

For flowcharts, whether to include a natural language description in addition to the Mermaid code.

detectboolean

For schematic components: run symbol detection on the uploaded image instead of starting from an empty canvas.

Request body multipart/form-data

imagestring binary nullable

Image file to analyze (PNG, JPEG, GIF, etc.). PDFs are also supported when component_type=schematic. If not provided, creates an empty component for later upload.

configstring nullable

Optional JSON config for schematic components (e.g. {"pdf_dpi": 300}). Ignored for other component types.

Response

Successful Response

job_status_idstring uuid required

The ID of the job status

statusstring required

The status of the job

error_messagestring nullable required

The error message if the job failed

component_idstring uuid required

The ID of the component

Changes

    • warning

      deleted the query request parameter baseline_provider

    • warning

      deleted the query request parameter fix_text_with_vlm