{
  "manifest_version": "1.0.0",
  "template": {
    "id": "9204eec4-7b06-4725-bbad-9948f4df1245",
    "slug": "web-ui-kie-ai",
    "name": "Web UI - kie.ai",
    "description": "Deploy and Host KIE AI Image Generator with Railway",
    "url": "https://railway.com/deploy/web-ui-kie-ai",
    "upstream": {
      "repo_url": "https://github.com/zahidakhyar/web-ui-kie-ai"
    }
  },
  "status": "unvalidated",
  "validated_at": null,
  "success_rate_30d": null,
  "services": [
    {
      "name": "Web",
      "source": {
        "repo": "https://github.com/zahidakhyar/web-ui-kie-ai"
      },
      "needs_volume": false,
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "KIE_API_KEY",
      "service": "Web",
      "description": "Your KIE.ai API key",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "DATABASE_PATH",
      "service": "Web",
      "description": "SQLite DB path (default: ./data/app.db)",
      "secret": false,
      "strategy": "default",
      "default": "/data/app.db"
    },
    {
      "key": "R2_ACCOUNT_ID",
      "service": "Web",
      "description": "Cloudflare account ID",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "ADMIN_PASSWORD",
      "service": "Web",
      "description": "Password gate for the app (leave unset to disable auth)",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "R2_BUCKET_NAME",
      "service": "Web",
      "description": "R2 bucket name",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "R2_ACCESS_KEY_ID",
      "service": "Web",
      "description": "R2 access key",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "NEXT_PUBLIC_APP_URL",
      "service": "Web",
      "description": "Public URL of this app (for callbacks)",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "R2_SECRET_ACCESS_KEY",
      "service": "Web",
      "description": "R2 secret key",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "web-ui-kie-ai"
      }
    },
    "cli": "railway deploy --template web-ui-kie-ai",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "9204eec4-7b06-4725-bbad-9948f4df1245",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "8c8039cd-0d1f-4cde-a20f-80e267b2ee2e": {
                  "icon": "https://kie.ai/logo.png",
                  "name": "Web",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/zahidakhyar/web-ui-kie-ai",
                    "rootDirectory": null
                  },
                  "variables": {
                    "AUTH_SECRET": {
                      "isOptional": true,
                      "description": "Required if ADMIN_PASSWORD is set — secret used to sign the session cookie",
                      "defaultValue": ""
                    },
                    "KIE_API_KEY": {
                      "isOptional": false,
                      "description": "Your KIE.ai API key",
                      "defaultValue": "{{KIE_API_KEY}}"
                    },
                    "DATABASE_PATH": {
                      "isOptional": true,
                      "description": "SQLite DB path (default: ./data/app.db)",
                      "defaultValue": "/data/app.db"
                    },
                    "R2_ACCOUNT_ID": {
                      "isOptional": false,
                      "description": "Cloudflare account ID",
                      "defaultValue": "{{R2_ACCOUNT_ID}}"
                    },
                    "ADMIN_PASSWORD": {
                      "isOptional": false,
                      "description": "Password gate for the app (leave unset to disable auth)",
                      "defaultValue": "{{ADMIN_PASSWORD}}"
                    },
                    "R2_BUCKET_NAME": {
                      "isOptional": false,
                      "description": "R2 bucket name",
                      "defaultValue": "{{R2_BUCKET_NAME}}"
                    },
                    "R2_ACCESS_KEY_ID": {
                      "isOptional": false,
                      "description": "R2 access key",
                      "defaultValue": "{{R2_ACCESS_KEY_ID}}"
                    },
                    "NEXT_PUBLIC_APP_URL": {
                      "isOptional": false,
                      "description": "Public URL of this app (for callbacks)",
                      "defaultValue": "{{NEXT_PUBLIC_APP_URL}}"
                    },
                    "R2_SECRET_ACCESS_KEY": {
                      "isOptional": false,
                      "description": "R2 secret key",
                      "defaultValue": "{{R2_SECRET_ACCESS_KEY}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "Web",
      "method": "GET",
      "path": "/",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 1,
    "needs_volume": false
  },
  "generated_at": "2026-09-21T16:15:12.787Z",
  "generator_version": "0.1.0"
}
