{
  "manifest_version": "1.0.0",
  "template": {
    "id": "cf3d1e67-6580-4492-aa7f-34cfb1794fdc",
    "slug": "background-removal-api-or-just-updated-r",
    "name": "Background Removal API | (Just Updated) rembg, Weights Baked In, 2GB RAM Floor",
    "description": "rembg cutouts, weights baked in, commercial-safe models only, 2GB RAM floor",
    "url": "https://railway.com/deploy/background-removal-api-or-just-updated-r",
    "upstream": {
      "image": "ghcr.io/bon5co/rembg-railway:2.0.84"
    }
  },
  "services": [
    {
      "name": "rembg",
      "source": {
        "image": "ghcr.io/bon5co/rembg-railway:2.0.84"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "API_KEY",
      "service": "rembg",
      "description": "Provide a value for API_KEY.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "background-removal-api-or-just-updated-r"
      }
    },
    "cli": "railway deploy --template background-removal-api-or-just-updated-r",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "cf3d1e67-6580-4492-aa7f-34cfb1794fdc",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "a82ce78a-9421-4022-9702-e42f37086274": {
                  "icon": null,
                  "name": "rembg",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/health",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/bon5co/rembg-railway:2.0.84"
                  },
                  "variables": {
                    "API_KEY": {
                      "isOptional": false,
                      "defaultValue": "{{API_KEY}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  },
                  "volumeMounts": {
                    "a82ce78a-9421-4022-9702-e42f37086274": {
                      "mountPath": "/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "rembg",
      "method": "GET",
      "path": "/health",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-12T10:14:41.946Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-12T06:22:40.617Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_6fd0936c0f1b41de98c5",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 71,
    "typical_build_seconds": 0,
    "typical_start_seconds": 54,
    "slowest_service": "rembg"
  }
}
