{
  "manifest_version": "1.0.0",
  "template": {
    "id": "d1ad13d2-09d0-4452-9e68-1cf7756c8dee",
    "slug": "one-api",
    "name": "One API",
    "description": "Self Hosted LLM API management. Supports OpenAI, Claude, Gemini, and more.",
    "url": "https://railway.com/deploy/one-api",
    "upstream": {
      "image": "ghcr.io/songquanpeng/one-api:latest"
    }
  },
  "services": [
    {
      "name": "one-api",
      "source": {
        "image": "ghcr.io/songquanpeng/one-api:latest"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "TZ",
      "service": "one-api",
      "description": "Provide a value for TZ.",
      "secret": false,
      "strategy": "default",
      "default": "UTC"
    },
    {
      "key": "SESSION_SECRET",
      "service": "one-api",
      "description": "Provide a value for SESSION_SECRET.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "INIT_ROOT_PASSWORD",
      "service": "one-api",
      "description": "Provide a value for INIT_ROOT_PASSWORD.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "one-api"
      }
    },
    "cli": "railway deploy --template one-api",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "d1ad13d2-09d0-4452-9e68-1cf7756c8dee",
            "serializedConfig": {
              "services": {
                "b56ddb88-0eb6-4fc7-ba8b-6eb8effb95f8": {
                  "icon": "https://raw.githubusercontent.com/songquanpeng/one-api/main/web/default/public/logo.png",
                  "name": "one-api",
                  "source": {
                    "image": "ghcr.io/songquanpeng/one-api:latest"
                  },
                  "variables": {
                    "TZ": {
                      "defaultValue": "UTC"
                    },
                    "SESSION_SECRET": {
                      "defaultValue": "{{SESSION_SECRET}}"
                    },
                    "INIT_ROOT_PASSWORD": {
                      "defaultValue": "{{INIT_ROOT_PASSWORD}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:3000": {
                        "port": 3000
                      }
                    }
                  },
                  "volumeMounts": {
                    "b56ddb88-0eb6-4fc7-ba8b-6eb8effb95f8": {
                      "mountPath": "/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-10T16:14:52.212Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-09T00:57:53.898Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_9b4afe6bd8994790a3f0",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 17,
    "typical_build_seconds": 0,
    "typical_start_seconds": 0,
    "slowest_service": "one-api"
  }
}
