LocalAI

Self-host an OpenAI-compatible API: plug in local models and go

What it is

An open self-hosted AI service exposing an OpenAI-compatible API, backed by various local models, and able to run images, audio and embeddings. It suits adapting existing applications to local inference.

Highlights

  • OpenAI-compatible API, near-zero migration cost
  • Text, image, audio and embeddings supported
  • Containerised, starts with one command
  • Back-end models freely swappable

How to use

Start the service with Docker, drop models into the models directory, and point your application’s API endpoint to localhost.

License

Released under MIT. Read the terms before commercial use or redistribution, especially if you plan to offer it as a service.