Create a key in the dashboard and make your first production request in a few minutes.
A focused model family for general intelligence, advanced work, conversation, and retrieval.
GET /v1/models in application code.Install the official OpenAI SDK and change the base URL. No LocAI-specific client library is required.
Existing Anthropic SDK applications can use LocAI by setting the Anthropic-compatible base URL.
Keep API keys on the server. Never embed a secret key in browser JavaScript, public repositories, screenshots, or support messages.
These are the implemented public inference routes. Every route requires a valid LocAI API key.
LocAI-Go accepts image content through both compatibility protocols. Use a reachable HTTPS image URL or a supported data URL.
Ask the Gateway to perform bounded web search for current or verifiable questions. Managed search is opt-in per request.
Most integration problems come from an incorrect base URL, a missing Bearer token, or a model-name typo.
Create an API key, keep it server-side, and start with the LocAI-Go examples above.
Manage API keys