{
  "manifest_version": "1.0.0",
  "template": {
    "id": "4db00da2-5dae-445c-a999-184e0b2cc433",
    "slug": "comfy-ui",
    "name": "Comfy UI",
    "description": "Self-hosted node-based UI for Stable Diffusion image generation.",
    "url": "https://railway.com/deploy/comfy-ui",
    "upstream": {
      "repo_url": "https://github.com/Amritasha/comfyui-railway"
    }
  },
  "services": [
    {
      "name": "comfyui-railway",
      "source": {
        "repo": "https://github.com/Amritasha/comfyui-railway"
      },
      "needs_volume": true,
      "volume_mount_path": "/root/ComfyUI/models",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "CLI_ARGS",
      "service": "comfyui-railway",
      "description": "Provide a value for CLI_ARGS.",
      "secret": false,
      "strategy": "default",
      "default": "--listen 0.0.0.0 --cpu"
    },
    {
      "key": "HF_TOKEN",
      "service": "comfyui-railway",
      "description": "Provide a value for HF_TOKEN.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "comfy-ui"
      }
    },
    "cli": "railway deploy --template comfy-ui",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "4db00da2-5dae-445c-a999-184e0b2cc433",
            "serializedConfig": {
              "services": {
                "1b2fe281-e3a4-4a0a-86f9-625d05f244ff": {
                  "name": "comfyui-railway",
                  "source": {
                    "repo": "Amritasha/comfyui-railway",
                    "branch": null,
                    "rootDirectory": null
                  },
                  "variables": {
                    "CLI_ARGS": {
                      "defaultValue": "--listen 0.0.0.0 --cpu"
                    },
                    "HF_TOKEN": {
                      "defaultValue": "{{HF_TOKEN}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  },
                  "volumeMounts": {
                    "1b2fe281-e3a4-4a0a-86f9-625d05f244ff": {
                      "mountPath": "/root/ComfyUI/models"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-11T04:14:34.944Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-11T04:31:35.919Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_2a9bd0cb5da245639ccd",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 181,
    "typical_build_seconds": 126,
    "typical_start_seconds": 20,
    "slowest_service": "comfyui-railway"
  }
}
