Railway

Deploy InvokeAI — Self-Hosted Stable Diffusion Studio

Self-host InvokeAI — canvas, node workflows & custom SD models

Deploy InvokeAI — Self-Hosted Stable Diffusion Studio

Just deployed

/data

Deploy and Host InvokeAI on Railway

InvokeAI is a leading open-source creative engine for Stable Diffusion — a professional-grade platform for generating and editing visual media, built around a streamlined WebUI, a unified canvas for infinite out-painting and inpainting, and a node-based backend for custom generation workflows. It gives artists and teams complete ownership of the creative process on infrastructure they control. This template deploys InvokeAI with a persistent volume for your models, images, and configuration.


What This Template Deploys

ServicePurpose
InvokeAIThe creative engine, WebUI, unified canvas, and node workflow backend on port 9090

A single service with a persistent volume for the InvokeAI root directory — models, generated images, and configuration all live there, so your work and installed models survive restarts and redeploys.


About Hosting

InvokeAI is a full Stable Diffusion creative suite, and there are a few things worth knowing to run it well.

Stable Diffusion is compute-intensive, and hardware determines the experience. Image generation is a heavy workload — model checkpoints are large (SDXL models are several gigabytes) and each generation runs many diffusion steps. For responsive, production-grade generation, InvokeAI is designed to run against a GPU backend; performance scales directly with the compute available to it. Plan your deployment's resources and model choices around the throughput you need, and connect the compute backend appropriate to your setup.

The model directory is essential and belongs on a volume. InvokeAI stores its models, generated images, and settings under its root directory. Checkpoints are multiple gigabytes each, so a persistent volume is required — without it, models re-download and generated work is lost on every redeploy. This template mounts it.

The unified canvas and node workflows are the differentiators. Beyond text-to-image, InvokeAI's canvas supports infinite out-painting, inpainting, and iterative editing on one surface, and its node-based backend lets you build and reuse custom generation pipelines. These are what set it apart from simpler Stable Diffusion frontends.

Secure the interface. InvokeAI's WebUI has no built-in authentication, so on a public deployment protect it — Railway's automatic HTTPS encrypts traffic, and you should keep the instance access-controlled rather than openly reachable.

Typical cost: infrastructure-based on Railway for the service and model storage, plus whatever compute backend you connect for generation. InvokeAI is Apache-2.0 and free.


How It Compares

InvokeAI (self-hosted)Automatic1111MidjourneyDALL·E (API)
Cost modelInfra + computeInfra + computeSubscriptionPer image
Unified canvasYesLimitedNoNo
Node workflowsYesVia extensionsNoNo
Data ownershipFullFullVendorVendor
Custom modelsYesYesNoNo
Self-hostableYesYesNoNo

Automatic1111 is the other major self-hosted Stable Diffusion UI, powerful but less polished for canvas editing. Midjourney and DALL·E are managed and easy but closed, subscription- or usage-priced, and keep your work on their servers. InvokeAI's strength is a professional canvas-and-node workflow with full ownership of your models and output.


Deploy in Under 5 Minutes

  1. Click Deploy on Railway — InvokeAI builds automatically
  2. Confirm the volume is mounted for the InvokeAI root directory (models, images, config)
  3. Connect the compute backend appropriate to your setup for generation
  4. Open the WebUI at your Railway domain and install a Stable Diffusion model from the manager
  5. Generate on the canvas, or build a node workflow for custom pipelines

Keep the interface access-controlled, since the WebUI has no built-in login.


Common Use Cases

  • Professional image generation — text-to-image with fine control over models, prompts, and parameters
  • Unified canvas editing — infinite out-painting, inpainting, and iterative composition on one surface
  • Custom node workflows — build and reuse generation pipelines for repeatable, advanced results
  • Private creative studio — generate and edit with your own models, output staying on infrastructure you own
  • Custom and fine-tuned models — run your own checkpoints, LoRAs, and embeddings instead of a fixed model set
  • Team creative backend — a shared, self-hosted Stable Diffusion engine for a studio or team

Configuration

VariableRequiredDescription
INVOKEAI_ROOTPre-setRoot directory for models, images, and config — mapped to the volume
INVOKEAI_HOSTPre-set0.0.0.0 so Railway can route to the service
INVOKEAI_PORTPre-set9090
HUGGING_FACE_HUB_TOKENOptionalToken for downloading gated models from Hugging Face
INVOKEAI_PRECISIONOptionalInference precision — affects memory and quality
INVOKEAI_MAX_CACHE_SIZEOptionalModel cache size in GB — tune to available memory

The model volume is required. InvokeAI's root directory holds multi-gigabyte checkpoints, generated images, and settings. Without a persistent volume, models re-download and your work is lost on redeploy.

Secure the WebUI. InvokeAI has no built-in authentication. On a public deployment, keep the instance access-controlled and rely on Railway's HTTPS so it isn't openly reachable.


Dependencies for InvokeAI Hosting

  • Railway account — infrastructure cost for the service and model storage
  • A persistent Railway volume for the InvokeAI root directory (included)
  • A compute backend suited to Stable Diffusion generation
  • Optional: a Hugging Face token for gated model downloads

Deployment Dependencies

Implementation Details

The template runs InvokeAI on port 9090 with a persistent volume mapped to INVOKEAI_ROOT, the directory that holds installed models, generated images, and configuration. Because Stable Diffusion checkpoints are large and generation is compute-intensive, the volume keeps models from re-downloading on redeploy and preserves your output across restarts.

InvokeAI exposes a web interface, a unified canvas for out-painting and inpainting, and a node-based workflow backend, along with a model manager for installing checkpoints, LoRAs, and embeddings — optionally using a Hugging Face token for gated downloads. Precision and cache-size settings tune memory use against quality and throughput. The WebUI has no built-in authentication, so access control on a public deployment is the responsibility of the operator, with Railway providing HTTPS in transit.

Generation performance scales with the compute backend available to the deployment, so model selection and resource allocation should be matched to the throughput the workload requires.


Frequently Asked Questions

What makes InvokeAI different from other Stable Diffusion UIs? Its unified canvas — infinite out-painting, inpainting, and iterative editing on one surface — plus a node-based workflow backend for custom pipelines, wrapped in a polished professional UI. It's built for serious creative work, not just single-image generation.

Do my models and images persist? Yes, on the volume mapped to the InvokeAI root. Models, generated images, and settings live there and survive redeploys — essential given that checkpoints are multiple gigabytes.

Can I use my own custom models? Yes. InvokeAI supports custom checkpoints, LoRAs, and embeddings through its model manager, so you're not limited to a fixed set. Use a Hugging Face token for gated models.

Does it have user authentication? No built-in login. Keep the deployment access-controlled on a public URL, and rely on Railway's HTTPS for encryption in transit.

How do I install models? Through InvokeAI's model manager in the WebUI — install from Hugging Face or a URL, and they're stored on the volume. Gated models need a Hugging Face token.

What's the unified canvas? A single editing surface where you generate, out-paint beyond image borders, inpaint regions, and iterate — InvokeAI's signature feature for composing larger and more refined works than one-shot generation allows.

Is InvokeAI free? Yes, Apache-2.0 open source with the full feature set. You pay only for the infrastructure and compute you run it on.


Why Deploy InvokeAI on Railway?

Railway is a singular platform to deploy your infrastructure stack. Railway will host your infrastructure so you don't have to deal with configuration, while allowing you to vertically and horizontally scale it.

By deploying InvokeAI on Railway you get a professional Stable Diffusion creative engine with a persistent model store, the unified canvas, node workflows, and automatic HTTPS. Complete ownership of your models, your workflows, and your output, on infrastructure you control.


Template Content

More templates in this category

View Template
Chat Chat
Chat Chat, your own unified chat and search to AI platform.

okisdev
113
View Template
stella
Self-host stella with web, API, Postgres, Redis, and object storage.

Jan Kubica
1
View Template
Hermes Agent | OpenClaw Alternative with Dashboard
Self-Hosted Hermes AI Agent for Telegram, Discord & Slack

codestorm
55