Caption (any backend)
sdnext_caption_dispatchGenerate captions or tags from an image by choosing a caption backend—OpenCLIP, tagger, VLM, or analyze—returning a unified response tailored to your task.
Instructions
Unified caption dispatch (SD.Next /sdapi/v1/caption) — pick backend: "openclip" | "tagger" | "vlm" | "analyze". Returns a unified response (caption/tags/answer depending on backend).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | ||
| image | Yes | Base64-encoded image (raw base64, data: URL, or "upload:<id>" ref). | |
| model | No | ||
| top_k | No | ||
| top_p | No | ||
| prompt | No | ||
| system | No | ||
| analyze | No | ||
| backend | Yes | Caption backend to use. | |
| prefill | No | ||
| max_tags | No | ||
| question | No | VLM task, e.g. "Short Caption", "Normal Caption", "Long Caption", "Use Prompt". | |
| do_sample | No | ||
| num_beams | No | ||
| threshold | No | ||
| blip_model | No | ||
| clip_model | No | ||
| max_tokens | No | ||
| sort_alpha | No | ||
| use_spaces | No | ||
| show_scores | No | ||
| temperature | No | ||
| exclude_tags | No | ||
| keep_prefill | No | ||
| keep_thinking | No | ||
| thinking_mode | No | ||
| include_rating | No | ||
| escape_brackets | No | ||
| include_annotated | No | ||
| character_threshold | No |