Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault

No arguments

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
sdnext_txt2imgA

Generate images from text prompts (SD.Next /sdapi/v1/txt2img). Supports samplers, modular guidance, hires fix, refiner, detailer, LoRA (prompt lora:name:weight), styles, scripts, control units, face modules, XYZ grid. Returns base64 images, info string, and echoed parameters.

sdnext_img2imgB

Generate images from input images with denoising (SD.Next /sdapi/v1/img2img). Supports inpainting via mask (white = repaint), color correction, hires fix, control units, and all txt2img parameters. init_images are base64 (or "upload:" refs).

sdnext_controlA

Run the control-guided pipeline (SD.Next /sdapi/v1/control) with one or more control units (controlnet / t2i adapter / xs / lite / reference / ip). Returns generated images plus preprocessor output maps.

sdnext_process_imageA

Process a single image with the Extras pipeline (upscalers, e.g. from sdnext_list_upscalers). SD.Next /sdapi/v1/process. resize_mode 0 = factor, 1 = target w/h.

sdnext_process_batchC

Process multiple images at once (SD.Next /sdapi/v1/process-batch). Same options as sdnext_process_image plus an images array.

sdnext_detailC

Run the YOLO detailer on a single image as a standalone operation (SD.Next /sdapi/v1/detail) — no base generation pass. All detailer_* fields fall back to global settings when omitted.

sdnext_prompt_enhanceC

Enhance/expand a prompt with an LLM (SD.Next /sdapi/v1/prompt-enhance). Type: text, image, or video.

sdnext_list_samplersA

List available samplers and their options (GET /sdapi/v1/samplers). Use the returned names for sampler_name.

sdnext_list_schedulersA

List available schedulers with class and options (GET /sdapi/v1/schedulers).

sdnext_list_checkpointsA

List all registered checkpoint models with title, filename, type and hash (GET /sdapi/v1/sd-models). Use model_name or filename for sd_model_checkpoint.

sdnext_list_unetsA

List available UNet/DiT models (GET /sdapi/v1/unets).

sdnext_list_vaeA

List available VAE models (GET /sdapi/v1/sd-vae).

sdnext_list_upscalersA

List available upscalers with model name, path and scale (GET /sdapi/v1/upscalers).

sdnext_list_stylesA

List prompt styles (GET /sdapi/v1/prompt-styles). Apply via styles: ["style name"].

sdnext_list_wildcardsB

List wildcard files available for wildcard:name syntax (GET /sdapi/v1/wildcards).

sdnext_list_embeddingsA

List textual-inversion embeddings loaded/skipped for the current model (GET /sdapi/v1/embeddings).

sdnext_list_lorasA

List all LoRA models (GET /sdapi/v1/loras). Use in prompt as lora:name:weight.

sdnext_list_loaded_lorasA

List currently loaded LoRA names (GET /sdapi/v1/loaded-loras).

sdnext_list_extra_networksA

List extra networks of a page type (lora, checkpoint, embedding, lyco, hypernetwork...) with optional filters (GET /sdapi/v1/extra-networks).

sdnext_extra_network_detailB

Get detailed metadata for one extra network item (GET /sdapi/v1/extra-network-detail).

sdnext_extra_network_detailsC

Batch-fetch full details for extra network items with pagination (GET /sdapi/v1/extra-network-details).

sdnext_list_ip_adaptersA

List available IP adapter models (GET /sdapi/v1/ip-adapters).

sdnext_list_detailersA

List available YOLO detailer models (GET /sdapi/v1/detailers).

sdnext_list_face_restorersA

List available face restoration models (GET /sdapi/v1/face-restorers).

sdnext_list_preprocessorsA

List control preprocessors with groups and configurable params (GET /sdapi/v1/preprocessors).

sdnext_list_controlnetsC

List available ControlNet models, optionally filtered by model type (GET /sdapi/v1/controlnets).

sdnext_list_control_modesA

List valid control modes for Union/ProMax models (GET /sdapi/v1/control-modes).

sdnext_list_scriptsA

List available scripts with arguments (GET /sdapi/v1/scripts). Use name for script_name.

sdnext_script_infoB

Get info for a single script (GET /sdapi/v1/script-info).

sdnext_list_extensionsA

List installed extensions (GET /sdapi/v1/extensions).

sdnext_list_xyz_optionsB

List XYZ grid axis options, optionally filtered by prefix (GET /sdapi/v1/xyz-grid).

sdnext_autocompleteA

List local autocomplete/tag list files (GET /sdapi/v1/autocomplete).

sdnext_autocomplete_remoteA

List remote autocomplete files with update status (GET /sdapi/v1/autocomplete/remote).

sdnext_list_vqa_modelsA

List vision-language models with prompts and capabilities (GET /sdapi/v1/vqa/models).

sdnext_list_vqa_promptsA

List task prompts available for a VLM (GET /sdapi/v1/vqa/prompts).

sdnext_list_openclipA

List available OpenCLIP captioning models (GET /sdapi/v1/openclip).

sdnext_list_tagger_modelsA

List available tagger models (wd-tagger, deepdanbooru, etc.) (GET /sdapi/v1/tagger/models).

sdnext_list_maskingA

List segmentation mask models, color maps, params and types (GET /sdapi/v1/masking).

sdnext_captionB

Generate a text caption/prompt from an image using OpenCLIP+BLIP (SD.Next /sdapi/v1/openclip POST). mode: best|fast|classic|caption|negative. Set analyze=true for medium/artist/movement/trending/flavor breakdown.

sdnext_caption_dispatchB

Unified caption dispatch (SD.Next /sdapi/v1/caption) — pick backend: "openclip" | "tagger" | "vlm" | "analyze". Returns a unified response (caption/tags/answer depending on backend).

sdnext_taggerA

Tag an image with anime tags (Danbooru-style) using wd-tagger / DeepDanbooru (SD.Next /sdapi/v1/tagger). Model names from sdnext_list_tagger_models.

sdnext_vqaB

Ask a vision-language model about an image (SD.Next /sdapi/v1/vqa). Question is a task name (e.g. "Short Caption", "Object Detection", "Use Prompt"). Models from sdnext_list_vqa_models, tasks from sdnext_list_vqa_prompts.

sdnext_analyzeB

Analyze an image with the VLM "analyze" task (SD.Next /sdapi/v1/analyze). Same request shape as sdnext_vqa.

sdnext_refresh_checkpointsA

Rescan checkpoint model folders (POST /sdapi/v1/refresh-checkpoints).

sdnext_refresh_vaeB

Rescan VAE model folders (POST /sdapi/v1/refresh-vae).

sdnext_refresh_unetsB

Rescan UNet/DiT model folders (POST /sdapi/v1/refresh-unets).

sdnext_refresh_lorasA

Rescan LoRA model folders (POST /sdapi/v1/refresh-loras).

sdnext_unload_checkpointA

Unload the currently loaded checkpoint to free VRAM (POST /sdapi/v1/unload-checkpoint).

sdnext_reload_checkpointC

Reload the current checkpoint into VRAM (POST /sdapi/v1/reload-checkpoint).

sdnext_lock_checkpointA

Prevent the current checkpoint from being unloaded (POST /sdapi/v1/lock-checkpoint).

sdnext_select_checkpointA

Select which checkpoint model is active (POST /sdapi/v1/checkpoint). Give the checkpoint name or filename.

sdnext_get_checkpointA

Get info about the currently loaded checkpoint (GET /sdapi/v1/checkpoint).

sdnext_latent_historyA

Select a latent history entry by name (POST /sdapi/v1/latents) for "Vary (Z)"-style latent reuse. List entries via sdnext_list_latents.

sdnext_list_latentsA

List available latent history entry names (GET /sdapi/v1/latents).

sdnext_get_optionsA

Get all current UI/server options (GET /sdapi/v1/options).

sdnext_set_optionsA

Set UI/server options at runtime (POST /sdapi/v1/options). Body: {"options": {name: value, ...}}. Discover valid keys with sdnext_get_options / sdnext_options_info.

sdnext_options_infoA

Get metadata for every option: label, section, type, default, component (GET /sdapi/v1/options-info).

sdnext_statusB

Get server/queue status: current job, step/steps, queue, uptime (GET /sdapi/v1/status).

sdnext_progressA

Poll generation progress: progress 0-1, ETA, state, current image (GET /sdapi/v1/progress).

sdnext_interruptA

Interrupt the current generation job (POST /sdapi/v1/interrupt).

sdnext_skipA

Skip the current image in the queue (POST /sdapi/v1/skip).

sdnext_restartB

Restart the SD.Next server (POST /sdapi/v1/restart). DESTRUCTIVE.

sdnext_shutdownA

Shut down the SD.Next server (POST /sdapi/v1/shutdown). DESTRUCTIVE.

sdnext_motdA

Get the server MOTD text (GET /sdapi/v1/motd).

sdnext_versionA

Get SD.Next version info (GET /sdapi/v1/version).

sdnext_torchB

Get torch/GPU build info (GET /sdapi/v1/torch).

sdnext_platformA

Get platform/hardware info (GET /sdapi/v1/platform).

sdnext_memoryA

Get CPU/GPU memory usage (GET /sdapi/v1/memory).

sdnext_cmd_flagsA

Get all command-line flags the server was started with (GET /sdapi/v1/cmd-flags).

sdnext_gpuA

Get GPU device info (GET /sdapi/v1/gpu).

sdnext_gpu_smiA

Get detailed GPU metrics: name, utilization, temperature, memory, clocks (GET /sdapi/v1/gpu-smi).

sdnext_loaded_modelsA

List all loaded models by category (pipeline, lora, upscaler, ...) with device and size (GET /sdapi/v1/loaded-models).

sdnext_modulesA

List loaded model modules (GET /sdapi/v1/modules).

sdnext_historyC

Get generation history entries (GET /sdapi/v1/history).

sdnext_storageA

Get storage folder usage stats (GET /sdapi/v1/storage).

sdnext_logA

Get recent server log lines (GET /sdapi/v1/log).

sdnext_log_writeB

Append a message to the server log (POST /sdapi/v1/log).

sdnext_uploadA

Upload a file to the SD.Next server (POST /sdapi/v1/upload, multipart form). Files land in the system temp dir (or relative to datadir when path is given). The server accepts "upload:" refs in image fields afterwards.

sdnext_fileA

Fetch a file from the server (GET /sdapi/v1/file?file=...) as raw content. Must be inside an allowed dir (outputs, temp, models...).

sdnext_delete_imageA

Delete a generated image file (DELETE /sdapi/v1/delete-image?file=...). DESTRUCTIVE.

sdnext_delete_fileB

Delete a file (DELETE /sdapi/v1/delete-file?file=...). DESTRUCTIVE.

sdnext_png_infoA

Extract generation parameters from a PNG image (POST /sdapi/v1/png-info). Returns raw info string, items dict, and parsed parameters (prompt, seed, sampler, ...).

sdnext_browser_foldersA

List output/gallery folders with labels (GET /sdapi/v1/browser/folders).

sdnext_browser_filesB

List files in an output folder as "folder##F##file" lines (GET /sdapi/v1/browser/files?folder=...).

sdnext_browser_thumbC

Get a thumbnail for an output file (GET /sdapi/v1/browser/thumb?file=...).

sdnext_network_thumbC

Get a thumbnail for an extra-network item (GET /sdapi/v1/network/thumb?file=...).

sdnext_preprocessA

Run a control preprocessor (canny, depth, pose, lineart, ...) on an image and return the processed map (SD.Next /sdapi/v1/preprocess). Preprocessor names from sdnext_list_preprocessors.

sdnext_maskA

Generate a segmentation mask for an image (SD.Next /sdapi/v1/mask). Auto-masks when no mask is given. Mask models/types from sdnext_list_masking.

sdnext_detectA

Detect faces/objects in an image with YOLO (SD.Next /sdapi/v1/detect). Returns classes, labels, boxes, crops, scores.

sdnext_nudenetB

Censor explicit regions in an image with NudeNet (SD.Next /sdapi/v1/nudenet). Methods: pixelate, blur, mosaic, overlay.

sdnext_prompt_langA

Check whether a prompt uses an allowed language/alphabet (SD.Next /sdapi/v1/prompt-lang).

sdnext_image_guardC

Run an image through a content-safety policy/guard model (SD.Next /sdapi/v1/image-guard).

sdnext_prompt_bannedA

Check a prompt against a banned-words list and return matched words (SD.Next /sdapi/v1/prompt-banned).

sdnext_civitai_searchA

Search CivitAI models (GET /sdapi/v2/civitai/search). Filters: query, tag, types, sort, period, base_models, nsfw, limit, cursor.

sdnext_civitai_modelB

Get a single CivitAI model by ID (GET /sdapi/v2/civitai/model/{model_id}).

sdnext_civitai_versionB

Get a single CivitAI model version by ID (GET /sdapi/v2/civitai/version/{version_id}).

sdnext_civitai_version_by_hashB

Resolve a CivitAI version by file hash (GET /sdapi/v2/civitai/version/by-hash/{hash}).

sdnext_civitai_tagsC

Search CivitAI tags (GET /sdapi/v2/civitai/tags).

sdnext_civitai_creatorsC

Search CivitAI creators (GET /sdapi/v2/civitai/creators).

sdnext_civitai_imagesC

List images for a CivitAI model or version (GET /sdapi/v2/civitai/images).

sdnext_civitai_meB

Get the authenticated CivitAI user (GET /sdapi/v2/civitai/me). Requires a configured token.

sdnext_civitai_downloadA

Queue a model file download to the models dir (POST /sdapi/v2/civitai/download). url is required; use model_id/version_id from search results to resolve paths.

sdnext_civitai_download_cancelA

Cancel a queued CivitAI download (POST /sdapi/v2/civitai/download/{download_id}/cancel).

sdnext_civitai_download_statusA

List queued/in-progress CivitAI downloads (GET /sdapi/v2/civitai/download/status).

sdnext_civitai_settingsA

Get CivitAI integration settings (GET /sdapi/v2/civitai/settings).

sdnext_civitai_set_settingsC

Update CivitAI integration settings (POST /sdapi/v2/civitai/settings): token, save_subfolder, save_subfolder_enabled, discard_hash_mismatch.

sdnext_civitai_resolve_pathC

Resolve the local save path for a CivitAI model/version (GET /sdapi/v2/civitai/resolve-path).

sdnext_civitai_metadata_scanB

Scan local model files and match CivitAI metadata (POST /sdapi/v2/civitai/metadata/scan).

sdnext_civitai_metadata_updateA

Update sidecar metadata for local models (POST /sdapi/v2/civitai/metadata/update).

sdnext_civitai_bookmarksA

List bookmarked CivitAI models (GET /sdapi/v2/civitai/bookmarks).

sdnext_civitai_add_bookmarkB

Bookmark a CivitAI model name (POST /sdapi/v2/civitai/bookmarks).

sdnext_civitai_remove_bookmarkB

Remove a CivitAI bookmark (DELETE via POST /sdapi/v2/civitai/bookmarks/{name}).

sdnext_civitai_bannedA

List banned CivitAI model names (GET /sdapi/v2/civitai/banned).

sdnext_civitai_add_bannedC

Ban a CivitAI model name (POST /sdapi/v2/civitai/banned).

sdnext_civitai_remove_bannedA

Remove a banned model name (DELETE via POST /sdapi/v2/civitai/banned/{name}).

sdnext_civitai_historyA

List CivitAI search history (GET /sdapi/v2/civitai/history).

sdnext_civitai_clear_historyA

Clear CivitAI search history (DELETE via POST /sdapi/v2/civitai/history).

sdnext_civitai_check_localA

Check which of the given file hashes are already present locally (POST /sdapi/v2/civitai/check-local).

sdnext_civitai_legacyA

Legacy CivitAI search endpoint (GET /sdapi/v1/civitai). Use sdnext_civitai_search for the v2 API instead.

sdnext_list_toolsA

List every tool exposed by this MCP server with its name, HTTP method, API path, and description. Use this to discover what is available before calling sdnext_call_api.

sdnext_call_apiA

Call any SD.Next REST endpoint directly (v1 or v2, any method). Path may be absolute ("/sdapi/v1/samplers") or relative to /sdapi/v1 ("samplers"). Use only when no dedicated tool fits; prefer dedicated sdnext_* tools.

sdnext_autocomplete_contentA

Get the content of a local autocomplete/tag-list file (GET /sdapi/v1/autocomplete/{name}).

sdnext_autocomplete_downloadA

Download an autocomplete/tag-list file from a remote source (POST /sdapi/v1/autocomplete/{name}/download).

sdnext_autocomplete_deleteA

Delete a local autocomplete/tag-list file (DELETE /sdapi/v1/autocomplete/{name}). DESTRUCTIVE.

sdnext_session_startB

Get session start info (GET /sdapi/v1/start). Optionally pass the agent name.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Congenital/sdnext_mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server