# Ray Serve

> Scalable model serving library for building online inference APIs

Source: https://talira.ai/catalog/ray-serve-aegjvek5
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library, Framework, Infrastructure, Command-line tool, API
- Categories: [ai / inference / model serving](https://talira.ai/categories/ai/inference/model-serving), [ai / inference / servers](https://talira.ai/categories/ai/inference/servers)
- Platforms: linux, macos, windows, docker, kubernetes[^2][^3]
- Licence: Apache-2.0[^6]
- Pricing: Free and open source[^5][^6]
- Pricing notes: Free and open source (Apache-2.0). Anyscale runs Ray Serve applications as Anyscale services, billed pay as you go per compute hour (CPU-only 0.0135 AC/hr, NVIDIA T4 0.5682 AC/hr, A100 4.9591 AC/hr as listed), with a $100 starting credit and committed contracts through sales.
- Free tier: yes[^5][^6]
- Self-hostable: yes[^1][^3]
- Cloud hosted: yes[^4]
- API: yes[^7]
- Backed by: [Anyscale](https://talira.ai/orgs/anyscale.md)
- Funding: venture-backed[^8]

Ray Serve is the model serving library of Ray, the open source distributed compute engine whose creators built Anyscale, installed with `pip install "ray[serve]"`. Deployments are Python classes or functions that serve PyTorch, TensorFlow, scikit-learn or any Python business logic; several deployments compose into one application whose calls between models read like function calls, and each scales by replicas, with fractional GPUs, autoscaling, request batching and response streaming. Ray Serve LLM adds an OpenAI-compatible API over [vLLM](https://talira.ai/catalog/vllm-f1czevpj.md) or [SGLang](https://talira.ai/catalog/sglang-wv3z63s3.md) with multi-node, multi-GPU serving, multi-LoRA and prefill-decode disaggregation. Applications are managed with the `serve` CLI and a REST API, and run on any Ray cluster, on [Kubernetes](https://talira.ai/catalog/kubernetes-ftsegx3m.md) through KubeRay, or as Anyscale services, which add high availability and zero-downtime upgrades. It is Apache-2.0 licensed.

## Links

- Website: https://docs.ray.io/en/latest/serve/index.html
- GitHub: https://github.com/ray-project/ray
- Docs: https://docs.ray.io/en/latest/serve/index.html

## Problems it solves

- serve several ML models plus Python business logic behind one HTTP API written in plain Python
- compose a pipeline of models where one model's output feeds the next, scaled independently
- share one GPU between several small models by giving each a fraction of it
- autoscale model replicas up and down with request load across a cluster
- batch incoming inference requests together to make better use of the GPU
- stream tokens back from an LLM endpoint as they're generated
- serve an open-weight LLM across several GPUs and nodes behind an OpenAI-compatible API
- serve many LoRA adapters on top of one shared base model
- scale LLM prefill and decode separately to cut serving cost
- add model serving to a FastAPI app without building our own scaling layer
- deploy model serving apps on Kubernetes with zero-downtime upgrades
- framework-agnostic model serving that isn't tied to PyTorch or TensorFlow
- run the same serving code on a laptop and on a large cluster
- manage deployed model APIs from the command line and a REST API
- managed hosting for our Python model serving apps with high availability

## Features

- deployments written as Python classes or functions
- model composition with a programmable Python API
- replica autoscaling and load balancing
- fractional GPUs and multi-GPU, multi-node serving
- dynamic request batching and response streaming
- FastAPI integration and gRPC
- Ray Serve LLM: OpenAI-compatible chat, completions and embeddings over vLLM or SGLang
- multi-LoRA serving and prefill-decode disaggregation
- serve CLI and a REST API for declarative deploys
- Kubernetes deployment through KubeRay's RayService
- runs as Anyscale services with high availability and zero-downtime upgrades

## Limitations

- No model lifecycle management or model performance dashboards: Ray Serve is a serving library, not a full ML platform[^1]
- Doesn't optimize models for you: unlike framework-specific servers, you apply optimizations such as PyTorch JIT or ONNX Runtime yourself[^1]
- Windows support is in beta: multi-node Ray clusters on Windows are experimental and untested[^2]

## Ways to run it

### Ray Serve

You run it, Apache-2.0. Price: free.[^1][^3]

Not included:

- high availability and zero-downtime upgrades managed for you

You arrange:

- a Ray cluster, on your own machines or on Kubernetes with KubeRay
- GPUs or CPUs to serve on

Self-hosting docs: https://docs.ray.io/en/latest/serve/index.html

### Anyscale services

Hosted by Anyscale. Price: pay as you go per compute hour (CPU-only 0.0135 AC/hr, NVIDIA T4 0.5682 AC/hr, A100 4.9591 AC/hr); $100 credit to start; committed contracts through sales.[^4][^5]

Only in this edition:

- high availability
- zero-downtime upgrades
- hosted or in your own cloud account (BYOC)

Pricing: https://www.anyscale.com/pricing

## Capabilities

- Has an API: plan not known
- Has a command line tool: plan not known
- Has official SDKs: plan not known

## Trust

Overall: 0.48 out of 1.
Signals: backing 0.55, extensibility 0.40.

- backed by Anyscale
- funding: venture-backed

Warnings:

- GitHub activity not fetched yet

## Related

- Works with [vLLM](https://talira.ai/catalog/vllm-f1czevpj.md)
- Works with [SGLang](https://talira.ai/catalog/sglang-wv3z63s3.md)

## Alternatives

- [BentoML](https://talira.ai/catalog/bentoml-r7wvghvm.md): Unified model serving framework for building model inference APIs and multi-model serving systems
- [NVIDIA Dynamo-Triton](https://talira.ai/catalog/nvidia-dynamo-triton-fng441hm.md): Open source inference serving software that deploys AI models from any major framework
- [vLLM](https://talira.ai/catalog/vllm-f1czevpj.md): A high-throughput and memory-efficient inference and serving engine for LLMs
- [Seldon Core](https://talira.ai/catalog/seldon-core-89r626cx.md): An MLOps and LLMOps framework for deploying, managing and scaling AI systems in Kubernetes
- [KServe](https://talira.ai/catalog/kserve-dyg77y3g.md): Standardized distributed generative and predictive AI inference platform for scalable, multi-framework deployment on Kubernetes

## Sources

[^1]: https://docs.ray.io/en/latest/serve/index.html (checked 20 Nov 2026)
[^2]: https://docs.ray.io/en/latest/ray-overview/installation.html (checked 20 Nov 2026)
[^3]: https://docs.ray.io/en/latest/serve/production-guide/kubernetes.html (checked 20 Nov 2026)
[^4]: https://docs.anyscale.com/services/ (checked 20 Nov 2026)
[^5]: https://www.anyscale.com/pricing (checked 20 Nov 2026)
[^6]: https://github.com/ray-project/ray/blob/master/LICENSE (checked 20 Nov 2026)
[^7]: https://docs.ray.io/en/latest/serve/api/index.html (checked 20 Nov 2026)
[^8]: https://www.anyscale.com/about (checked 20 Nov 2026)
