Nodes/Danbooru FAISS Search Nodes/Danbooru Image Search
ComfyUI Node

Danbooru Image Search

A ComfyUI node in Danbooru with 19 inputs and 6 outputs.

By L33chKing·Created about a year ago·Updated 11 months ago· 3
Danbooru Image Search
  • positive_image
  • negative_image
  • IMAGE
  • URLS
  • IDS
  • TAG
  • IMG_WIDTH
  • IMG_HEIGHT
download_sizepreview
max_images4
positive_prompt
negative_prompt
api_username
api_key
model_typeclip
tag_embedding_modeauto
combine_strategyBalanced
tag_new_info_onlyfalse
reduce_negative_overlapfalse
idf_weight_tagsfalse
fetch_modeauto
extra_api_search0
debugfalse
image_weight1.00
tag_weight1.00
CategoryDanbooru

Inputs (19)

NameTypeDefaultDescription
download_sizeCOMBOpreviewImage size (preview -> thumbnail -> large -> full) attempts progressively larger variants if available.
max_imagesINT41–50
positive_imageoptIMAGE
negative_imageoptIMAGE
positive_promptoptSTRINGComma-separated tags (e.g. 'touhou, reimu_hakurei') or text description to search for
negative_promptoptSTRINGComma-separated tags (e.g. 'monochrome, sketch') or text description to avoid
api_usernameoptSTRING
api_keyoptSTRING
model_typeoptCOMBOclipText/image embedding backbone to use (requires corresponding *_text.onnx for tags).
tag_embedding_modeoptCOMBOautoHow to build tag embeddings: auto (prefer ONNX with fallback), hash_only (deterministic 1024D), onnx_only (real tags only).
combine_strategyoptCOMBOBalancedBalanced: normalized side sums diff; Stepwise: sequential de-overlap (orthogonalized sequence).
tag_new_info_onlyoptBOOLEANfalseUse only tag information that is not already present in the image (removes tag components that duplicate the image).
reduce_negative_overlapoptBOOLEANfalseMake negatives ignore what already matches positives (remove negative components that overlap with the positive mix).
idf_weight_tagsoptBOOLEANfalseDown-weight very common tags and up-weight rare ones using counts from selected_tags.csv.
fetch_modeoptCOMBOautoHow to fetch metadata: auto (API then HTML fallback), api only, or html only.
extra_api_searchoptINT00–1000Additional recovery attempts beyond top count if some posts fail.
debugoptBOOLEANfalseExtra debug logging.
image_weightoptFLOAT1.000–4Weight of image embedding in combination.
tag_weightoptFLOAT1.000–4Weight of tag embedding in combination.

Outputs (6)

NameTypeDescription
IMAGEIMAGE
URLSSTRING
IDSSTRING
TAGSTRING
IMG_WIDTHINT
IMG_HEIGHTINT