Signature
Description
Returns detailed information about a specific model, including its name, upscaler type, supported scales, noise levels, file paths, and performance characteristics. This method is useful for:- Discovering model capabilities (scales, noise levels)
- Getting model file paths for verification
- Understanding model performance characteristics
- Building dynamic UIs based on model properties
Parameters
The model name to get information for. If omitted, returns information for the default model.See Model for available model names.
Returns
Object containing detailed model information:
key(Model) - Model identifiername(string) - Human-readable model nameupscaler(Upscaler) - Upscaler engine used (‘realcugan’ | ‘waifu2x’ | ‘upscayl’)type(ModelType) - Model category (‘upscale’ | ‘descreen’ | ‘artifact-removal’)scales(number[]) - Supported scale factorsnoise(number[] | undefined) - Supported noise reduction levels (0-3)latency(number) - Relative performance metric (0.5 = fastest, 10 = slowest)speed(Speed) - Human-readable speed ratingfolder(string) - Model folder namepath(string) - Absolute path to model directoryfiles(string[]) - List of required model filesscaleFiles- Scale-specific model files mapping (if applicable)supportCurrentPlatform(boolean) - Whether model is supported on current platform
Examples
Get basic model information
Check supported scales
Find closest supported scale
Check if model supports noise reduction
Get model file paths
Compare model performance
List all models of a specific type
Build dynamic UI options
Error handling
Related
- binary - Get binary executable path for a model
- closest - Find closest supported scale or noise level
- models - Object containing all available models
- modelsList - Array of all model names
- modelsTypeList - Models organized by type
- ModelObject - Model information type