{
  "manifest_version": "1.0.0",
  "template": {
    "id": "9ac8ebc6-99a9-42a0-848a-bdd6e7a5f922",
    "slug": "text-embeddings-in-1",
    "name": "Text Embeddings Inference",
    "description": "Hugging Face Text Embeddings Inference 1.9 on CPU with an API key.",
    "url": "https://railway.com/deploy/text-embeddings-in-1",
    "upstream": {
      "image": "ghcr.io/huggingface/text-embeddings-inference:cpu-1.9.4"
    }
  },
  "services": [
    {
      "name": "tei",
      "source": {
        "image": "ghcr.io/huggingface/text-embeddings-inference:cpu-1.9.4"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "tei",
      "description": "Provide a value for PORT.",
      "secret": false,
      "strategy": "default",
      "default": "80"
    },
    {
      "key": "API_KEY",
      "service": "tei",
      "description": "Provide a value for API_KEY.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "TEI_URL",
      "service": "tei",
      "description": "Provide a value for TEI_URL.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "HOSTNAME",
      "service": "tei",
      "description": "Provide a value for HOSTNAME.",
      "secret": false,
      "strategy": "default",
      "default": "::"
    },
    {
      "key": "MODEL_ID",
      "service": "tei",
      "description": "Provide a value for MODEL_ID.",
      "secret": false,
      "strategy": "default",
      "default": "BAAI/bge-small-en-v1.5"
    },
    {
      "key": "TEI_PRIVATE_URL",
      "service": "tei",
      "description": "Provide a value for TEI_PRIVATE_URL.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "HUGGINGFACE_HUB_CACHE",
      "service": "tei",
      "description": "Provide a value for HUGGINGFACE_HUB_CACHE.",
      "secret": false,
      "strategy": "default",
      "default": "/data"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "text-embeddings-in-1"
      }
    },
    "cli": "railway deploy --template text-embeddings-in-1",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "9ac8ebc6-99a9-42a0-848a-bdd6e7a5f922",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "8efcb6cd-70aa-42cc-b65e-4f5781fd4b1c": {
                  "icon": "https://github.com/huggingface.png",
                  "name": "tei",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/health",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/huggingface/text-embeddings-inference:cpu-1.9.4"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "defaultValue": "80"
                    },
                    "API_KEY": {
                      "isOptional": false,
                      "defaultValue": "{{API_KEY}}"
                    },
                    "TEI_URL": {
                      "isOptional": false,
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "HOSTNAME": {
                      "isOptional": false,
                      "defaultValue": "::"
                    },
                    "MODEL_ID": {
                      "isOptional": false,
                      "defaultValue": "BAAI/bge-small-en-v1.5"
                    },
                    "TEI_PRIVATE_URL": {
                      "isOptional": false,
                      "defaultValue": "http://${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "HUGGINGFACE_HUB_CACHE": {
                      "isOptional": false,
                      "defaultValue": "/data"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:80": {
                        "port": 80
                      }
                    }
                  },
                  "volumeMounts": {
                    "8efcb6cd-70aa-42cc-b65e-4f5781fd4b1c": {
                      "mountPath": "/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "tei",
      "method": "GET",
      "path": "/health",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-24T04:14:44.625Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-24T01:17:53.665Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_303f91f67fe7407798e1",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 94,
    "typical_build_seconds": 0,
    "typical_start_seconds": 12,
    "slowest_service": "tei"
  }
}
