---
title: "Deploy Sentence Transformers Model"
description: "FastAPI server to serve sentence-transformer embeddings"
category: "AI/ML"
url: https://railway.com/deploy/oFLL6X
---

# Deploy Sentence Transformers Model

FastAPI server to serve sentence-transformer embeddings

**[Deploy Sentence Transformers Model on Railway](https://railway.com/template/oFLL6X)**

- **Creator:** Morgan Gallant's Projects
- **Category:** AI/ML
- **Total deploys:** 27

## Template content

### Sentence Transformers API

- **Source:** https://github.com/morgangallant/sentence-transformers-railway
- **Health check:** /health
- **Public domain:** Yes

## Documentation

Given any sentence transformer model, this template will deploy a quick and easy FastAPI server to serve embeddings for that model.

Setup requires you to choose which model to run, and choose the number of workers. Be careful using models that are too large, since a) they'll be expensive since the weights will be loaded into memory N times (i.e. depending on number of workers you chose during setup), and b) they'll be running on CPU so inference isn't overly quick compared to GPUs.

Usage is simple, just post {"texts":["hello","world"]} to /embed on the exposed server, and you'll get back the embeddings in JSON.

## Similar templates

- [Chat Chat](https://railway.com/deploy/-WWW5r) — Chat Chat, your own unified chat and search to AI platform.
- [stella](https://railway.com/deploy/stella) — Self-host stella with web, API, Postgres, Redis, and object storage.
- [Hermes Agent | OpenClaw Alternative with Dashboard](https://railway.com/deploy/hermes-agent-or-openclaw-alternative-wit) — Self-Hosted Hermes AI Agent for Telegram, Discord & Slack

Open this page in a browser: https://railway.com/deploy/oFLL6X
