LocalAI
AI development tool · Free + paid
A local AI engine with a compatible API: interchangeable backends for text, images, speech, and other models, without mandatory use of an external cloud.

What you can use for free
The open source component used locally or self-hosted for the stated workflow, within its license terms.
Paid features and costs
Your own server, external APIs, and compute; managed cloud hosting, support, and additional commercial features if selected.
Access and limitations
Code licensing and hosting costs are separate matters. Check the conditions for the specific version and edition.
Use cases
- Connect a local model to an app
- Send a request through the compatible endpoint and compare the result and processing time on your hardware
Example workflow
A possible workflow; this is not a report of hands-on testing.
Connect a local model to an app
Before you start
- A supported model, backend, and test API client.
- A test project and completion criteria for the task: Connect a local model to an app.
Steps
- Set up LocalAI to test: A supported model, backend, and test API client.
- Send a request through the compatible endpoint and compare the result and processing time on your hardware.
- Integrate the checked version into your project; document its configuration, limitations, and recovery method.
Check your result
- The weights license and memory requirements have been checked; the server is not open to others without authorization.
- Check the result against a reference example; separately confirm the terms of any assets and external services used.
Choosing LocalAI
Connect a local model to an app
Choose this when
- Connect a local model to an app
- Send a request through the compatible endpoint and compare the result and processing time on your hardware
Requirements
- Choose a model/backend and appropriate CPU/GPU container or launcher; hardware detection may download the required backend.
Things to consider
- Costs and limits of free use: Your own server, external APIs, and computing resources; managed cloud hosting, support, and additional commercial features if selected.
- Terms of use: MIT
- The macOS DMG in the current README is not signed by Apple. API compatibility does not mean identical coverage of every feature by each backend.
Frequently asked questions
What can you use for free in LocalAI?
The openly available portion, used locally or self-hosted for the stated use case within its license terms.
What additional costs might arise with LocalAI?
Your own server, external APIs, and computing resources; managed cloud hosting, support, and additional commercial features if selected.
What terms of use matter for LocalAI?
MIT
How do you get started with LocalAI?
Set up LocalAI to test: A supported model, backend, and test API client. Send a request through the compatible endpoint and compare the result and processing time on your hardware. Integrate the checked version into your project; document its configuration, limitations, and recovery method.
Why does LocalAI download its backend separately, and which API can I connect?
LocalAI core is separate from inference engines: a backend image is downloaded as needed for the chosen model. The README lists llama.cpp, vLLM, whisper.cpp, stable-diffusion, and MLX, and compatible APIs for OpenAI, Anthropic, and ElevenLabs. Models can be selected from the gallery, Hugging Face, Ollama OCI registry, YAML configuration, or an OCI registry.
License
MIT
MIT — permissive license
You can use, modify, distribute, and sell the code, including in a closed-source commercial product. When sharing copies or substantial portions of the code, retain the license text and copyright notice. You do not need to open-source your entire project; the author provides no warranties.
License termsTechnologies and topics
- LocalAI
- AI development tool