Danbooru (ID)
Pull the tags and image URL off any Danbooru post
- tags
- img_url
Give this node a Danbooru post number and it hands back the full tag list and the image's URL. That's it - one lookup, no auth needed, no config. If you know the exact post you want (you found it browsing danbooru.donmai.us and grabbed the ID from the URL), this is the fastest way to get it into ComfyUI as usable data.
The reason that's actually useful rather than a novelty: Danbooru's tags aren't casual descriptions, they're the training vocabulary of most anime checkpoints. Illustrious, NoobAI, and to a lesser extent Pony were all trained on Danbooru-tagged data, so a post's tag list - split across general (pose, clothing, setting), character, artist, and copyright categories - is close to a ready-made prompt for those models. Pull the tags off a reference post and you've got a prompt that speaks the same language the checkpoint was trained on, instead of guessing at tags that might not mean anything to it.
How it works
You hand it a post_id - just the number from the post's URL (danbooru.donmai.us/posts/<id>). It hits Danbooru's public API for that post and returns two strings. No API key required for this one - that's the Random node's territory, covered separately, because pulling one specific known post doesn't need the authenticated random-post endpoint.
Inputs and output
post_id- the only input, a plain string. Just the numeric ID.
Two outputs:
tags- the post's full tag list as a string, usable directly as a prompt or spliced into one.img_url- the image's URL. The README pairs this node with Load Image From URL from comfyui-art-venture specifically to take that URL and pull the actual image into your graph - handy for using a reference image alongside its own tags, or building a quick tag-matched image/prompt pair for comparison work.
Installing it
ComfyUI Manager: search ComfyUI-GTSuya-Nodes, install, restart. Or by hand: cd ComfyUI/custom_nodes && git clone https://github.com/GTSuya-Studio/ComfyUI-Gtsuya-Nodes.git, restart ComfyUI. Nothing to configure, nothing to download - it's a live API call at runtime, not a local dataset.
Where people get burned
The obvious one: a bad or deleted post ID gets you an empty result, not a helpful error - if tags comes back blank, double-check the ID actually resolves in a browser first. Second, this node isn't reading from a static snapshot, it's hitting the live site on every run, so it needs network access and Danbooru itself needs to be up; if you're running this on a sandboxed or offline executor, it'll just fail rather than fall back to cached data. And worth knowing going in: Danbooru is uncensored by design - the same board these anime checkpoints trained on holds everything from G-rated art to explicit content under its rating tags, so a random post ID you grabbed without checking its rating first can come back with tags you weren't expecting.
Inputs (1)
| Name | Type | Default | Description |
|---|---|---|---|
| post_id | STRING | — |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| tags | STRING | — |
| img_url | STRING | — |