What is LocalAI?
LocalAI exposes an OpenAI-compatible API for text, image, audio and embedding models running on your own hardware, with or without a GPU. Apps written for the OpenAI API can switch by changing the base URL.
Key features
- OpenAI-compatible API
- LLMs, images, speech and embeddings
- Runs on CPU or GPU
- Model gallery
LocalAI as an open source alternative
LocalAI is listed on our comparison page as an open source replacement for ChatGPT. Compare it with the other options:
- Open source alternatives to ChatGPT (7 options)
Licence
LocalAI is released under the MIT licence, a permissive licence. More MIT software →
LocalAI: FAQ
Is LocalAI open source?
Yes. LocalAI is released under the MIT licence (permissive), and its source code is public.
Is LocalAI free?
The software is free to use and self-host.
What does LocalAI replace?
LocalAI is an open source alternative to ChatGPT.
Can I self-host LocalAI?
Yes. LocalAI is a server application you can install on your own server or VPS, usually with Docker.