Self-hosted OpenAI-compatible API for local models.

What is LocalAI?

LocalAI is an open-source, self-hosted drop-in replacement for the OpenAI API that runs text, image, audio and embedding models locally.

Developers and homelab users who want a private local AI API

What you can do

  • OpenAI-compatible API — Point existing OpenAI clients at your own server
  • Text, image and audio — LLMs, image generation, speech and embeddings in one binary
  • Runs anywhere — CPU, GPU or a home server; Docker images included
  • Fully offline — Your prompts and data stay on your hardware

Where it fits

Useful for

  • Private local AI API
  • Multi-modal models on your hardware
  • Agents with tools and MCP

Before you choose

  • Local models need decent hardware for good speed

Capabilities

Text chat

Chats the server keeps, with saved agents that use tools, MCP, skills, and files.

File upload & analysis

Chats, files, and documents on top; Knowledge collections; Projects group chats, files, notes, and agents.

Image generation

Image generation (Stable Diffusion) via the OpenAI-compatible API.

Image understanding & editing

Vision API and object detection; vision models.

Video generation

Video generation via the API.

Voice & audio

Text to speech, speech to text (Whisper), Realtime API for speech-to-speech; music and sound generation.

Web search

Embeddings and a reranker for search; no general web search.

Code generation & execution

Assistant can write and run code (Sandbox add-on); function calling and tool use.

Reasoning & deep research

Runs local reasoning models; capability depends on the model chosen.

Autonomous agent

Saved agents use tools, MCP servers, files, Knowledge collections, and skills; triggers and chat apps.

API access

OpenAI and Anthropic formats; 80+ backends; MCP server support.

Pricing & plans

Prices checked 11/25/2026

Open Source

$0

Self-hosted local AI API

  • Full platform, MIT-licensed, community support
Plan details ↗

Official pricing ↗

Explore similar tools

OpenRouter

AI Dev Platforms

A single key calls hundreds of models, real-time price and availability comparison, supports automatic failover and cost-based routing, unified billing, suitable for multi-model access and backup solutions, and some smal…

Free / FreemiumWeb · API
15

Hugging Face

AI Dev Platforms

Open-source model and dataset hub with inference APIs.

Free / FreemiumWeb · iOS · Android
15

Scikit Learn

AI Dev Platforms

The most popular open-source machine learning library, complete with classic algorithms and unified APIs, covering everything from classification regression to clustering and dimensionality reduction, with abundant docum…

FreeWindows · macOS · Linux
14

PaddlePaddle

AI Dev Platforms

Baidu's open-source deep learning framework, free to use.

FreeWindows · macOS · Linux
14
Comments Be the First to Comment

Please log in to comment

    No comments yet