System Info and Version
LocalAI provides endpoints to inspect the running instance, including available backends, loaded models, and version information.
System Information
- Method:
GET - Endpoint:
/system
Returns available backends and currently loaded models.
Response
| Field | Type | Description |
|---|---|---|
backends | array | List of available backend names (strings) |
loaded_models | array | List of currently loaded models |
loaded_models[].id | string | Model identifier |
Usage
Example response
Version
- Method:
GET - Endpoint:
/version
Returns the LocalAI version and build commit.
Response
| Field | Type | Description |
|---|---|---|
version | string | Version string in the format version (commit) |
Usage
Example response
Error Responses
| Status Code | Description |
|---|---|
| 500 | Internal server error |