Expand description
Model Management API Endpoints
Provides RESTful API endpoints for:
- Listing available and installed models
- Searching for models
- Downloading/installing models
- Removing/uninstalling models
- Getting download progress
- Hardware recommendations
Structs§
- Active
Model Response - Response for the currently active/loaded model
- Database
Info - Database information
- Downloaded
Model Info - Information about a downloaded model
- Hardware
Info Response - Hardware information response
- Hardware
Recommendations Response - Response with hardware recommendations
- HfAccess
Params - Query parameters for the HF access-check endpoint
- HfAccess
Response - Response body for the HF access-check endpoint
- Install
Model Request - Request to install/download a model
- Install
Model Response - Response for model installation
- Installed
Engine Info - Information about an installed engine
- Open
Router Catalog Params - Query parameters for the OpenRouter catalog endpoint
- Open
Router Catalog Response - Paginated response for the OpenRouter catalog
- Open
Router Quota Response - Response body for the OpenRouter quota endpoint
- Refresh
Models Request - Request to refresh the dynamic model catalog
- Refresh
Models Response - Response after refreshing the model catalog
- Search
Models Request - Request to search for models
- Search
Models Response - Response containing search results
- Storage
Metadata Response - Storage metadata response
- Storage
Paths - Storage paths on the system
- Storage
Stats - Storage usage statistics
- Switch
Model Request - Request to switch to a different model
- Switch
Model Response - Response after switching model
- System
Metrics Response - Live system metrics response
- Update
Preferences Request - Request to update user preferences
Enums§
- Model
Source Specifier - Specify where to download a model from
Functions§
- cancel_
download - Cancel an ongoing download
- check_
hf_ access GET /models/hf/access?repo_id=…&filename=…&hf_token=…- get_
active_ downloads - Get all downloads (active and completed)
- get_
active_ model - Get the currently active/loaded model info from the running server config
- get_
download_ progress - Get download progress for a specific download
- get_
hardware_ info - Get current hardware info and storage usage
- get_
hardware_ recommendations - Get hardware recommendations
- get_
recommended_ models - Get recommended models based on current hardware and preferences
- get_
storage_ metadata - Get comprehensive local storage metadata
- get_
system_ metrics - Get live system metrics including CPU/GPU usage
- install_
model - Install/download a model
- list_
models - Get list of all models (installed and available) Filters out OpenRouter and HuggingFace models if no verified key exists
- list_
models_ by_ mode - Get models filtered by mode (online/offline)
- openrouter_
catalog GET /models/openrouter/catalog- openrouter_
quota GET /models/openrouter/quota- pause_
download - Pause an ongoing download
- refresh_
models - Refresh the dynamic model catalog from remote sources (OpenRouter, Hugging Face).
- remove_
model - Remove/uninstall a model
- resume_
download - Resume a paused download
- search_
models - Search for models by name, description, or tags
- switch_
model - Switch to a different model by ID
- update_
preferences - Update user preferences for model recommendations