# Serve

> Run Pie as an inference server with the APIs and models you already use.

Source: https://pie-project.org/docs/serve  

You can run Pie as an inference server without writing any code. Start `pie serve`, point your existing client at it, and choose a model and hardware backend.

> **Figure.** OpenAI, Anthropic and Gemini clients call one pie serve port; each API is a built-in inferlet over the same engine. Each API is an inferlet that ships with Pie. They all share one port and one engine.

- [Serve an API](https://pie-project.org/docs/serve/api): Drop-in OpenAI, Anthropic, and Gemini endpoints.

- [Models](https://pie-project.org/docs/serve/models): Import checkpoints from Hugging Face and choose a quantization.

- [Hardware](https://pie-project.org/docs/serve/hardware): Run on CUDA, ROCm, Metal, Vulkan, WebGPU, and TPUs.

- [Configure & tune](https://pie-project.org/docs/serve/configure): Edit one TOML file and tune kernels for your device.

- [Embed in your app](https://pie-project.org/docs/serve/embed): Embed Pie in Python, Node.js, browsers, iOS, Android, or C.

- [Scale out](https://pie-project.org/docs/serve/scale-out): Run across multiple GPUs and machines with cache-aware routing.

> **Go deeper:** [Every endpoint is an inferlet](https://pie-project.org/docs/program). The OpenAI, Anthropic, and Gemini APIs are inferlets that ship with Pie. When a standard API is not enough, write your own.
