---
title: "Deploy Next AI Draw.io"
description: "Create and edit draw.io diagrams by chatting with an AI model"
category: "AI/ML"
url: https://railway.com/deploy/next-ai-drawio
---

# Deploy Next AI Draw.io

Create and edit draw.io diagrams by chatting with an AI model

**[Deploy Next AI Draw.io on Railway](https://railway.com/template/next-ai-drawio)**

Machine-readable deploy manifest (JSON, validated by TemplateCI): https://railway.com/deploy/next-ai-drawio/manifest.json

- **Creator:** zer0person's Projects
- **Category:** AI/ML
- **Total deploys:** 1

## Template content

### Next AI Draw.io

- **Image:** ghcr.io/dayuanjiang/next-ai-draw-io:latest
- **Public domain:** Yes

## Documentation

# Deploy and Host Next AI Draw.io on Railway

[Next AI Draw.io](https://github.com/DayuanJiang/next-ai-draw-io) is a Next.js app that combines the draw.io editor with an AI chat: describe a diagram (architecture, flowchart, sequence) and the model draws and edits it for you.

## About Hosting Next AI Draw.io

This template runs the official `ghcr.io/dayuanjiang/next-ai-draw-io:latest` image with no server-side AI key, so it costs you nothing to host. On first visit open Settings in the chat panel, choose a provider (OpenAI, Anthropic, Google, OpenRouter and many more) and paste your own API key; it stays in your browser. To serve a key from the server instead, add `AI_PROVIDER`, `AI_MODEL` and the provider's key variable (see env.example in the repo) and also set `ACCESS_CODE_LIST` so strangers cannot spend it.

## Common Use Cases

- Draw cloud architecture diagrams from a text description
- Turn notes into flowcharts and sequence diagrams
- Edit existing draw.io diagrams with natural language

## Dependencies for Next AI Draw.io Hosting

- One stateless service; an API key from any supported AI provider

### Deployment Dependencies

- [Next AI Draw.io on GitHub](https://github.com/DayuanJiang/next-ai-draw-io)
- [Container image](https://github.com/DayuanJiang/next-ai-draw-io/pkgs/container/next-ai-draw-io)

## Why Deploy Next AI Draw.io on Railway?

Railway gives you a public HTTPS URL and automatic restarts with no server to maintain. Open the URL, add your key in Settings and start drawing.


## Similar templates

- [Chat Chat](https://railway.com/deploy/-WWW5r) — Chat Chat, your own unified chat and search to AI platform.
- [Weaviate](https://railway.com/deploy/weaviate-1) — Vector database with hybrid search and an API key-protected API
- [Möbius v0.1 Personal AI OS](https://railway.com/deploy/mobius-v01-personal-ai-os) — Self-hosted AI agent that builds and runs apps for you, with memory.

Open this page in a browser: https://railway.com/deploy/next-ai-drawio
