Man pages for sd2R
Stable Diffusion Image Generation

dot-api_errorBuild JSON error response
dot-array_to_sd_imageConvert R array [H, W, 3] to sd_image list
dot-base64_to_imageDecode base64 PNG to sd_image
dot-blend_maskBuild linear blend mask for a patch
dot-build_routerBuild plumber router with sd2R endpoints
dot-compute_patch_gridCompute patch grid positions
dot-estimate_vae_vramEstimate peak VAE VRAM usage in bytes
dot-find_lruFind least recently used model id
dot-get_ctxGet model context by name (or default)
dot-guess_componentGuess component role from filename
dot-guess_model_typeGuess model type from filename
dot-images_to_base64Encode sd_image list to base64 PNG strings
dot-native_latent_tile_sizeGet native latent tile size for a model type
dot-native_tile_sizeGet native tile size for a model type
dot-resize_sd_imageBilinear resize of an SD image
dot-resolve_device_layoutResolve device layout preset to concrete GPU indices
dot-resolve_vae_tilingResolve VAE tiling mode to boolean
dot-select_strategySelect generation strategy based on resolution and VRAM
dot-unbox_scalarsRecursively unbox scalar values in nested lists for JSON...
LORA_APPLY_MODELoRA apply modes
PREDICTIONPrediction types
RNG_TYPERNG types
SAMPLE_METHODSampling methods
SCHEDULERSchedulers
sd_api_startStart sd2R REST API server
sd_api_stopStop sd2R REST API server
SD_CACHE_MODECache modes
sd_cache_paramsCreate cache configuration for step caching
sd_convertConvert model to different quantization format
sd_ctxCreate a Stable Diffusion context
sd_generateGenerate images (unified entry point)
sd_generate_multi_gpuParallel generation across multiple GPUs
sd_highres_fixHigh-resolution image generation (Highres Fix)
sd_image_to_arrayConvert SD image to R numeric array
sd_img2imgGenerate images with img2img
sd_img2img_tiledTiled img2img (MultiDiffusion with init image)
sd_list_modelsList registered models
sd_load_imageLoad image from file as SD image
sd_load_modelLoad a registered model
sd_load_pipelineLoad pipeline from JSON
sd_nodeCreate a pipeline node
sd_pipelineCreate a pipeline from nodes
sd_profile_getGet raw profile events
sd_profile_startStart profiling
sd_profile_stopStop profiling
sd_profile_summaryBuild a profile summary from raw events
sd_register_modelRegister a model in the sd2R model registry
sd_remove_modelRemove a model from the registry
sd_run_pipelineRun a pipeline
sd_save_imageSave SD image to PNG file
sd_save_pipelineSave pipeline to JSON
sd_scan_modelsScan a directory for models and register them
sd_system_infoGet system information
sd_txt2imgGenerate images from text prompt
sd_txt2img_highresHigh-resolution image generation via patch-based pipeline
sd_txt2img_tiledTiled diffusion sampling (MultiDiffusion)
SD_TYPEWeight types (ggml quantization types)
sd_unload_allUnload all models from memory
sd_unload_modelUnload a model from memory
sd_upscale_imageUpscale an image using ESRGAN
sd_vulkan_device_countGet number of Vulkan GPU devices
sd2R documentation built on March 30, 2026, 5:08 p.m.