Chapter 7
API
LocalAI serves one HTTP API. These pages describe the parts of it that need more than an endpoint list.
- OpenAI functions and tools: function calling and the tools API.
- Realtime API: voice and text conversations over WebSocket.
- API discovery: how LocalAI lists what it can do.
- Decisions API
- Stores: vector similarity search.
- API errors: what each error code means.
- Integrations: projects and tools built on LocalAI.
Task pages that use the API, such as text generation, embeddings and image generation, are in Features. The server also publishes its own interactive API reference at /swagger/index.html.