Generate a diagram
generate_diagramTurn natural-language descriptions into cloud architecture diagrams with XML output, Well-Architected warnings, and score.
Instructions
Create a new cloud architecture diagram from a natural-language prompt. Returns the diagram id, its draw.io XML, Well-Architected warnings, score, and credits used. Costs credits.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | Yes | What to draw, e.g. 'AWS 3-tier web app with ALB, EC2 Auto Scaling and RDS Multi-AZ' | |
| opinionated | No | Apply best-practice hardening suggestions during generation (paid plans only). | |
| diagram_type | No | architecture | flowchart | sequence | data_pipeline | ... (default: architecture) | |
| cloud_provider | No | aws | azure | gcp | kubernetes | oci | general (default: general) |