Documentation Index
Fetch the complete documentation index at: https://mintlify.com/ollm/opencomic-ai-bin/llms.txt
Use this file to discover all available pages before exploring further.
Overview
The OpenComicAI.models static property provides access to all available AI models organized by type.
Type
static models: Record<ModelType, Record<string, ModelObject>>
Structure
The models object is organized hierarchically:
- Top level: Model types (
upscale, descreen, artifact-removal)
- Second level: Model keys (string identifiers)
- Values:
ModelObject containing model configuration
Example usage
import OpenComicAI from '@opencomic/ai-bin';
// Access all upscale models
const upscaleModels = OpenComicAI.models.upscale;
// Access a specific model
const realcugan = OpenComicAI.models.upscale['realcugan'];
console.log(realcugan.name); // "RealCUGAN"
console.log(realcugan.scales); // [2, 3, 4]
// Access descreen models
const descreenModels = OpenComicAI.models.descreen;
// Access artifact removal models
const artifactModels = OpenComicAI.models['artifact-removal'];
Iterating through models
// Iterate through all upscale models
for (const [key, model] of Object.entries(OpenComicAI.models.upscale)) {
console.log(`${key}: ${model.name}`);
console.log(` Upscaler: ${model.upscaler}`);
console.log(` Scales: ${model.scales.join(', ')}`);
console.log(` Speed: ${model.speed}`);
}
// Get all model types
const modelTypes = Object.keys(OpenComicAI.models); // ['upscale', 'descreen', 'artifact-removal']
See also