What is LocalAI?
An open-source, MIT-licensed engine for running AI models on your own hardware. It serves text, embedding, image and audio models through an OpenAI-compatible API, and includes a web UI for chatting with models and installing new ones.
Is LocalAI free?
LocalAI itself is free, open-source software under the MIT licence. You pay for the instance or VM and any charges shown on the Marketplace listing, but there is no per-token fee. The Google Cloud listing includes a 5-day free trial with up to USD 50 in licence credit.
Do I need a GPU?
No. The same image runs on CPU and GPU. On AWS, t3a.xlarge is the recommended CPU size and g4dn.xlarge adds an NVIDIA T4 with 16 GB of GPU memory. On Google Cloud, e2-standard-4 produces about 6-7 tokens per second with the pre-installed model, and the g2 types add an NVIDIA L4 with 24 GB for about 65 tokens per second.
Which model comes with it?
qwen3-4b-instruct is pre-installed, so you can chat with it as soon as you sign in. Install more from the gallery under Models in the web UI, choosing sizes that fit your instance.
How do I sign in?
Open the DashboardUrl from the CloudFormation Outputs tab on AWS, or your domain on Google Cloud, and enter the API key you set at launch. The same key is the bearer token for API requests.
Is SSL set up for me?
On AWS, LocalAI sets up SSL automatically when your domain is hosted on Route 53. On Google Cloud, it issues SSL on first boot if your domain already points at the VM. Otherwise, point an A record at the public IP and run the certificate script on the server, as the developer guides show.
How do I upgrade?
When a new version is on AWS or Google Cloud Marketplace, back up any models and configuration you need, delete the old deployment and launch the new version.
How does it compare with the OpenAI API?
Both speak the same API, so code moves between them with a change of base URL and key. LocalAI runs open models on a server in your own AWS account or GCP project, billed by the hour, while the OpenAI API runs OpenAI's models on its platform and bills mostly per token.