{
  "manifest_version": "1.0.0",
  "template": {
    "id": "ee4a1f50-45e2-4b53-a1d2-c48fd9643abb",
    "slug": "chat2api",
    "name": "Turn ChatGPT into OpenAI API - Chat2API",
    "description": "Stream responses, upload files & rotate multiple accounts.",
    "url": "https://railway.com/deploy/chat2api",
    "upstream": {
      "repo_url": "https://github.com/bilalnawaz072/chat2api"
    }
  },
  "services": [
    {
      "name": "chat2api",
      "source": {
        "repo": "https://github.com/bilalnawaz072/chat2api"
      },
      "needs_volume": false,
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "chat2api",
      "description": "Provide a value for PORT.",
      "secret": false,
      "strategy": "default",
      "default": "5005"
    },
    {
      "key": "AUTO_SEED",
      "service": "chat2api",
      "description": "Provide a value for AUTO_SEED.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "ENABLE_GATEWAY",
      "service": "chat2api",
      "description": "Provide a value for ENABLE_GATEWAY.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "CHATGPT_BASE_URL",
      "service": "chat2api",
      "description": "Provide a value for CHATGPT_BASE_URL.",
      "secret": false,
      "strategy": "default",
      "default": "https://chatgpt.com"
    },
    {
      "key": "HISTORY_DISABLED",
      "service": "chat2api",
      "description": "Provide a value for HISTORY_DISABLED.",
      "secret": false,
      "strategy": "default",
      "default": "false"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "chat2api"
      }
    },
    "cli": "railway deploy --template chat2api",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "ee4a1f50-45e2-4b53-a1d2-c48fd9643abb",
            "serializedConfig": {
              "services": {
                "24346179-3802-4f93-b231-b287fb2589d2": {
                  "name": "chat2api",
                  "source": {
                    "repo": "bilalnawaz072/chat2api",
                    "branch": null,
                    "rootDirectory": null
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": true,
                      "description": "",
                      "defaultValue": "5005"
                    },
                    "AUTO_SEED": {
                      "isOptional": true,
                      "description": "",
                      "defaultValue": "true"
                    },
                    "ENABLE_GATEWAY": {
                      "isOptional": true,
                      "description": "",
                      "defaultValue": "true"
                    },
                    "CHATGPT_BASE_URL": {
                      "isOptional": true,
                      "description": "",
                      "defaultValue": "https://chatgpt.com"
                    },
                    "HISTORY_DISABLED": {
                      "isOptional": true,
                      "description": "",
                      "defaultValue": "false"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 1,
    "needs_volume": false
  },
  "generated_at": "2026-09-21T22:14:44.200Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-20T07:04:12.975Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_c53e5213b59c431f9d85",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 95,
    "typical_build_seconds": 22,
    "typical_start_seconds": 0,
    "slowest_service": "chat2api"
  }
}
