Components

Generate component from image

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

Query parameters

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

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

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.

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

baseline_provider'vlm' | 'azure' | 'gcp' nullable

When baseline_mode=true, choose provider: vlm (LLM vision), azure (Document Intelligence), gcp (Document AI)

When baseline_mode=true, choose provider: vlm (LLM vision), azure (Document Intelligence), gcp (Document AI)

fix_text_with_vlmboolean

Whether to fix text with VLM

Whether to fix text with VLM

detectboolean

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

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

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