Type exports
OpenComic AI Bin exports several TypeScript types and interfaces for type-safe usage.Model
Example values
'realcugan''realesr-animevideov3''waifu2x-models-cunet''opencomic-ai-descreen-hard-compact'
ModelType
Upscaler
Speed
Formats
OpenComicAIOptions
Properties
model- The AI model to use (defaults to'realcugan')noise- Noise reduction level (0-3, only for models that support it)scale- Output scale multipliertileSize- Size of processing tiles (for memory management)gpuId- GPU device ID to usethreads- Number of CPU threadstta- Enable test-time augmentation for better quality
Example usage
Downloading
Properties
start- Called when download beginsprogress- Called with progress value (0-1)end- Called when download completes
Example usage
ModelObject
Properties
key- Model identifiername- Human-readable model nameupscaler- Underlying engine usedtype- Model categoryscales- Supported scale factorsnoise- Supported noise reduction levels (undefined if not supported)latency- Processing speed benchmarkspeed- Speed classificationfolder- Relative path to model filespath- Absolute path to model files (set at runtime)files- List of required model filesscaleFiles- Mapping of scales to model variantssupportCurrentPlatform- Whether model works on current OS/architecture
Example usage
UpscalerObject
Properties
name- Human-readable upscaler namebinary- Binary executable nameplatforms- Platform-specific binary paths (OS -> architecture -> path)