Skip to main content
POST
/
api
/
v0
/
components
/
generate
Generate component from image
curl --request POST \
  --url https://api.example.com/api/v0/components/generate
{
  "uuid": "string",
  "name": "string",
  "component_type": "flowchart",
  "code": "string",
  "image_description": {}
}

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.

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": {}
}