{
  "manifest_version": "1.0.0",
  "template": {
    "id": "6c133470-48e9-49bb-880b-ca793398ae26",
    "slug": "free-llm-api-gateway",
    "name": "FreeLLMAPI [Updated Sep'26]",
    "description": "Self-host FreeLLMAPI — OpenAI-compatible router, failover, encrypted keys",
    "url": "https://railway.com/deploy/free-llm-api-gateway",
    "upstream": {
      "image": "ghcr.io/tashfeenahmed/freellmapi"
    }
  },
  "services": [
    {
      "name": "Freellmapi",
      "source": {
        "image": "ghcr.io/tashfeenahmed/freellmapi"
      },
      "needs_volume": true,
      "volume_mount_path": "/tmp",
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "HOST",
      "service": "Freellmapi",
      "description": "To make it work locally",
      "secret": false,
      "strategy": "default",
      "default": "::"
    },
    {
      "key": "ENCRYPTION_KEY",
      "service": "Freellmapi",
      "description": "Recommended to regenerate it just in case",
      "secret": true,
      "strategy": "default",
      "default": "1564fae9e19ca39707bff8a3f69f67d50751bf3b1e1c625387b90a9ee3d2ee97"
    },
    {
      "key": "FREEAPI_DB_PATH",
      "service": "Freellmapi",
      "description": "Path to the sqlite db. Dont change, as well as volume mounted path.",
      "secret": false,
      "strategy": "default",
      "default": "/tmp/freellmapi.db"
    },
    {
      "key": "RAILWAY_RUN_UID",
      "service": "Freellmapi",
      "description": "To make SQLite able to \"bypass\" readonly state. Dont change",
      "secret": false,
      "strategy": "default",
      "default": "0"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "free-llm-api-gateway"
      }
    },
    "cli": "railway deploy --template free-llm-api-gateway",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "6c133470-48e9-49bb-880b-ca793398ae26",
            "serializedConfig": {
              "services": {
                "408a6375-039e-45fb-87ac-1e662d13030d": {
                  "icon": "https://i.imageupload.app/a5bd9023fcd6836cdf15.png",
                  "name": "Freellmapi",
                  "source": {
                    "image": "ghcr.io/tashfeenahmed/freellmapi"
                  },
                  "variables": {
                    "HOST": {
                      "isOptional": false,
                      "description": "To make it work locally",
                      "defaultValue": "::"
                    },
                    "ENCRYPTION_KEY": {
                      "isOptional": false,
                      "description": "Recommended to regenerate it just in case",
                      "defaultValue": "1564fae9e19ca39707bff8a3f69f67d50751bf3b1e1c625387b90a9ee3d2ee97"
                    },
                    "FREEAPI_DB_PATH": {
                      "isOptional": false,
                      "description": "Path to the sqlite db. Dont change, as well as volume mounted path.",
                      "defaultValue": "/tmp/freellmapi.db"
                    },
                    "RAILWAY_RUN_UID": {
                      "isOptional": false,
                      "description": "To make SQLite able to \"bypass\" readonly state. Dont change",
                      "defaultValue": "0"
                    }
                  },
                  "volumeMounts": {
                    "408a6375-039e-45fb-87ac-1e662d13030d": {
                      "mountPath": "/tmp"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-10-01T10:14:52.086Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-30T10:26:22.427Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_6e0e24c0af964d999e1b",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 104,
    "typical_build_seconds": 0,
    "typical_start_seconds": 0,
    "slowest_service": "Freellmapi"
  }
}
