Chapter 7
API
Start here for function calling, realtime voice and error codes. The server also publishes an interactive reference at /swagger/index.html.
- 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.