POST
/
api
/
v0
/
components
/
generate
{
  "uuid": "string",
  "name": "string",
  "component_type": "flowchart",
  "code": "string",
  "image_description": {}
}

Generate component from image

Analyzes an uploaded image and generates flowchart components based on the visual content. Currently supports ‘flowchart’ type (generates Mermaid syntax). Other types will return 501 Not Implemented.

Query Parameters

string

Type of component to generate. Currently only ‘flowchart’ is implemented.

Response

data
object

The response data for this endpoint.

{
  "uuid": "string",
  "name": "string",
  "component_type": "flowchart",
  "code": "string",
  "image_description": {}
}