Next AI Draw.io
AI-Powered Diagram Creation Tool - Chat, Draw, Visualize
Sponsored by ByteDance Doubao
Great news! Thanks to the generous sponsorship from{" "} ByteDance Doubao , the demo site now uses the powerful{" "} K2-thinking {" "} model for better diagram generation! Sign up via the link to get{" "} 500K free tokens {" "} for all models!
Please note the current usage limits:
{formatNumber(dailyRequestLimit)}
requests/day
{formatNumber(dailyTokenLimit)}
tokens/day
{formatNumber(tpmLimit)}
tokens/min
Bring Your Own API Key
You can also use your own API key with any supported provider. Click the Settings icon in the chat panel to configure your provider and API key.
Your key is stored locally in your browser and is never stored on the server.
A Next.js web application that integrates AI capabilities with draw.io diagrams. Create, modify, and enhance diagrams through natural language commands and AI-assisted visualization.
{/* Features */}Features
- LLM-Powered Diagram Creation: Leverage Large Language Models to create and manipulate draw.io diagrams directly through natural language commands
- Image-Based Diagram Replication: Upload existing diagrams or images and have the AI replicate and enhance them automatically
- Diagram History: Comprehensive version control that tracks all changes, allowing you to view and restore previous versions of your diagrams before the AI editing
- Interactive Chat Interface: Communicate with AI to refine your diagrams in real-time
- AWS Architecture Diagram Support: Specialized support for generating AWS architecture diagrams
- Animated Connectors: Create dynamic and animated connectors between diagram elements for better visualization
Examples
Here are some example prompts and their generated diagrams:
Animated Transformer Connectors
Prompt: Give me an{" "} animated connector diagram of transformer's architecture.
GCP Architecture Diagram
Prompt: Generate a GCP architecture diagram with{" "} GCP icons. Users connect to a frontend hosted on an instance.
AWS Architecture Diagram
Prompt: Generate an AWS architecture diagram with{" "} AWS icons. Users connect to a frontend hosted on an instance.
Azure Architecture Diagram
Prompt: Generate an Azure architecture diagram with{" "} Azure icons. Users connect to a frontend hosted on an instance.
Cat Sketch
Prompt: Draw a cute cat for me.
How It Works
The application uses the following technologies:
- Next.js: For the frontend framework and routing
-
Vercel AI SDK (
ai+{" "}@ai-sdk/*): For streaming AI responses and multi-provider support - react-drawio: For diagram representation and manipulation
Diagrams are represented as XML that can be rendered in draw.io. The AI processes your commands and generates or modifies this XML accordingly.
{/* Multi-Provider Support */}Multi-Provider Support
- ByteDance Doubao
- AWS Bedrock (default)
-
OpenAI / OpenAI-compatible APIs (via{" "}
OPENAI_BASE_URL) - Anthropic
- Google AI
- Azure OpenAI
- Ollama
- OpenRouter
- DeepSeek
- SiliconFlow
Note that claude-sonnet-4-5 has trained on
draw.io diagrams with AWS logos, so if you want to
create AWS architecture diagrams, this is the best
choice.
Support & Contact
Special thanks to{" "} ByteDance Doubao {" "} for sponsoring the API token usage of the demo site!
If you find this project useful, please consider{" "} sponsoring {" "} to help host the live demo site!
For support or inquiries, please open an issue on the{" "} GitHub repository {" "} or contact: me[at]jiang.jp
{/* CTA */}