# LocalAI

> Open-source, self-hosted OpenAI-compatible AI server for any hardware.

- Website: https://localai.io
- Category: AI Models & APIs
- Source page: https://opendirs.com/en/tools/localai
- Pricing: Open source
- Starting price: $0
- Public API: Yes
- Open source: Yes
- Chinese language: No
- Accessible from mainland China: Unknown
- Platforms: Unknown
- Country: Unknown
- Last verified: Nov 28, 2026

## Overview

LocalAI is a free, open-source drop-in replacement for the OpenAI API that runs LLMs, image generation, speech, and embeddings on your own hardware, including CPU-only machines. It supports many backends and model formats and includes a web UI, agents, and distributed inference.

**Best for:** Self-hosters wanting a private OpenAI-compatible AI stack.

## Key features

- OpenAI-compatible REST API
- Text, image, audio, and embedding models
- Runs on CPU or GPU
- Model gallery and web UI

## Use cases

- Replacing cloud APIs with local inference
- Running private AI for a small team
- Testing apps offline

## Pros

- Fully self-hosted and private
- Broad model support
- Free and open source

## Cons

- Performance depends on your hardware
- Setup and tuning required

## Alternatives

- [Kyutai](https://opendirs.com/en/tools/kyutai.md)
- [Cloudflare Workers AI](https://opendirs.com/en/tools/cloudflare-workers-ai.md)
- [MiniMax](https://opendirs.com/en/tools/minimax.md)
- [Hugging Face](https://opendirs.com/en/tools/hugging-face.md)
- [API Stable](https://opendirs.com/en/tools/api-stable.md)

## FAQ

### What is LocalAI?

LocalAI is a free, open-source drop-in replacement for the OpenAI API that runs LLMs, image generation, speech, and embeddings on your own hardware, including CPU-only machines. It supports many backends and model formats and includes a web UI, agents, and distributed inference.

### Is LocalAI free?

LocalAI uses a Open source pricing model (verified Nov 28, 2026).

### Does LocalAI have an API?

Yes. LocalAI offers an API for developers.

### Does LocalAI support Chinese, and is it available in China?

LocalAI does not support Chinese, and it has unverified availability in mainland China.

### What are the best alternatives to LocalAI?

Popular alternatives to LocalAI include Kyutai, Cloudflare Workers AI, MiniMax, Hugging Face.

_Last verified: Nov 28, 2026_