The Engines API provides comprehensive management capabilities for inference engines in the Kolosal Server. This API allows you to list available engines, add new engines, and configure the default engine for model inference operations.
Base URL: http://localhost:8080 (or your configured server address)
API Endpoints:
GET /enginesorGET /v1/engines- List all available inference enginesPOST /enginesorPOST /v1/engines- Add a new inference enginePUT /enginesorPUT /v1/engines- Set the default inference engine
All endpoints support the same authentication methods as other Kolosal Server APIs:
- Bearer Token:
Authorization: Bearer <your-jwt-token> - API Key:
X-API-Key: <your-api-key>
All requests that include a body must use:
Content-Type: application/jsonRetrieves a list of all available inference engines, including their configuration and status.
GET /enginesNone
{
"inference_engines": [
{
"name": "llama-cpp",
"version": "1.0.0",
"description": "LLaMA.cpp inference engine for efficient CPU/GPU inference",
"library_path": "/path/to/llama-cpp-engine.dll",
"is_loaded": true,
"is_default": true
},
{
"name": "onnx-runtime",
"version": "1.2.0",
"description": "ONNX Runtime for cross-platform ML inference",
"library_path": "/path/to/onnx-engine.dll",
"is_loaded": false,
"is_default": false
}
],
"default_engine": "llama-cpp",
"total_count": 2
}- inference_engines: Array of engine objects
- name: Unique identifier for the engine
- version: Engine version string
- description: Human-readable description
- library_path: Absolute path to the engine library
- is_loaded: Whether the engine is currently loaded in memory
- is_default: Whether this is the default engine for new models
- default_engine: Name of the currently configured default engine
- total_count: Total number of available engines
{
"error": {
"message": "Server error: <detailed error message>",
"type": "server_error",
"param": null,
"code": null
}
}This documentation provides comprehensive coverage of the Engines API, enabling efficient management of inference engines in your Kolosal Server deployment.