Choose a diagram type
Use Auto detect when the source or prompt makes the intended format clear. Select a type when you need a specific notation.
Auto detect is not a fourteenth type. A manual choice locks the requested type.
Attach source material
Images
Upload PNG, JPEG, or WebP. DiagramAI extracts visible nodes, labels, relationships, and layout.
API and data
Use OpenAPI JSON or YAML and SQL schemas to create API architecture or ER diagrams.
Infrastructure
Use Docker Compose, Kubernetes, or Terraform files to show services, resources, and
dependencies.
CI and ZIP
Use CI workflow files directly or package supported multi-file sources in one ZIP.
File limits
- Up to 10 attachments per request
- Up to
10 MBfor one image - Up to
5 MBfor one text source file - Up to
10 MBcombined for non-ZIP attachments - One ZIP per request, and the ZIP must be the only attachment
- ZIP limit:
10 MBcompressed,50 MBextracted, and 500 entries
Structure your prompt
A useful prompt usually contains:- The diagram type and purpose
- Components, participants, or source scope
- Order, relationships, or boundaries
- Important branches and exceptions
- Labels that must appear
How DiagramAI executes the request
DiagramAI first identifies the source and your intended change:- A presentation edit preserves semantics, topology, and coordinates.
- An incremental edit changes a limited part of the structure and applies local layout when needed.
- A full generation handles a new diagram, type conversion, major restructuring, or explicit redesign.
Create a new diagram
1
Choose the destination
Open the folder where the diagram should be stored, or stay at the workspace root.
2
Open AI generation
Select AI generate, choose a diagram type if needed, and write a prompt or attach source
material.
3
Review source choices
If a ZIP contains several supported source families, choose the primary source. Large or
ambiguous inputs can also require a scope choice.
4
Submit and review
Follow the displayed processing stages. DiagramAI creates the file and opens the editable
result.
Modify the current diagram
Open the AI panel inside the editor and describe the change in relation to the existing diagram.Credit usage
- Uploading, hashing, and deterministic parsing do not consume credits.
- DiagramAI checks whether the available balance can cover the AI request.
- A successful request consumes credits based on actual token usage.
- A failed or canceled request does not consume credits.
- Personal-workspace requests use the personal balance.
- Team-workspace requests use the organization’s shared balance.
