Save 4 hours! We auto-setup your workflow! Free!

Drop your workflow.json — we handle every dependency, custom node, and model. Just open the link and run.

Auto-Setup Workflow Json (Free) Now!
ComfyUI > Nodes > ComfyUI-Danbooru-Gallery > Danbooru Image Gallery

ComfyUI Node: Danbooru Image Gallery

Class Name

DanbooruGalleryNode

Category
Danbooru
Author
Aaalice233 (Account age: 2256days)
Extension
ComfyUI-Danbooru-Gallery
Latest Updated
2026-07-26
Github Stars
0.23K

How to Install ComfyUI-Danbooru-Gallery

Install this extension via the ComfyUI Manager by searching for ComfyUI-Danbooru-Gallery
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI-Danbooru-Gallery in the search bar
After installation, click the Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • 16GB VRAM to 80GB VRAM GPU machines
  • 400+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 200+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

Danbooru Image Gallery Description

Interface with Danbooru API to fetch and display images for AI artists, supporting tag-based retrieval and caching.

The DanbooruGalleryNode is designed to interface with the Danbooru API, allowing you to fetch and display images from the Danbooru image gallery. This node is particularly useful for AI artists who want to incorporate specific visual elements or styles from the Danbooru database into their projects. By leveraging the capabilities of this node, you can retrieve images based on specific tags, ratings, and other criteria, making it a powerful tool for sourcing inspiration or reference material. The node also supports caching, which helps in reducing redundant API calls and improving performance by storing previously fetched data. This feature is especially beneficial when working with large datasets or when network conditions are suboptimal. Overall, the DanbooruGalleryNode serves as a bridge between your creative projects and the vast repository of images available on Danbooru, enhancing your ability to access and utilize high-quality visual content.

selection_data

The selection_data parameter is a hidden input that accepts a JSON string containing information about the selected image and prompt. This parameter is crucial for determining which image and associated prompt data should be retrieved and processed by the node. The JSON string typically includes keys such as prompt and image_url, which guide the node in fetching the correct data. The default value for this parameter is an empty JSON object ({}), and it is designed to be multiline and force input, ensuring that the necessary data is always provided for the node's operation.

image

The image output parameter provides the image data retrieved from the Danbooru API. This output is essential for visualizing the selected image within your project. The image data is typically returned as a tensor, which can be further processed or displayed as needed. This output allows you to seamlessly integrate Danbooru images into your creative workflow, providing a direct link between the API and your project environment.

prompt

The prompt output parameter returns the textual prompt associated with the selected image. This output is valuable for understanding the context or theme of the image, as it often includes descriptive tags or keywords that were used to fetch the image from the Danbooru database. By providing this information, the prompt output helps you gain insights into the image's content and can serve as a basis for further creative exploration or inspiration.

  • To optimize performance, ensure that caching is enabled, which will reduce the number of API calls and speed up data retrieval.
  • When specifying tags, limit the number of tags to improve search efficiency and ensure more relevant results.

"Failed to fetch autocomplete data from Danbooru"

  • Explanation: This error occurs when the node is unable to retrieve autocomplete data from the Danbooru API, possibly due to network issues or incorrect API credentials.
  • Solution: Check your network connection and ensure that your API credentials are correct. If the problem persists, try again later as it might be a temporary issue with the Danbooru server.

"Internal server error"

  • Explanation: This error indicates that an unexpected issue occurred while processing the request, which could be due to a variety of reasons such as malformed input data or server-side problems.
  • Solution: Verify that the selection_data input is correctly formatted as a JSON string. If the issue continues, review the server logs for more detailed error information and consider reaching out to support for assistance.

Danbooru Image Gallery Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI-Danbooru-Gallery
RunComfy
Copyright 2025 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Models, enabling artists to harness the latest AI tools to create incredible art.

Danbooru Image Gallery