> ## Documentation Index
> Fetch the complete documentation index at: https://docs.outerport.com/llms.txt
> Use this file to discover all available pages before exploring further.

# 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.

## 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

<ParamField query name="component_type" type="string" optional>
  Type of component to generate. Currently only 'flowchart' is implemented.
</ParamField>

### Response

<ResponseField name="data" type="object">
  The response data for this endpoint.
</ResponseField>

<ResponseExample>
  ```json
  {
    "uuid": "string",
    "name": "string",
    "component_type": "flowchart",
    "code": "string",
    "image_description": {}
  }
  ```
</ResponseExample>
