π― Masterphub Load by ID
Found a prompt worth keeping? Pin it by ID
- prompt_text
- title
Masterphub Load by ID is the boring one in the pack, and that's the compliment. While its siblings Search, Random, and Trending go out and find you a prompt, this node just says "fetch me this exact one and don't get creative about it." One number in, two strings out. It exists to be the stable follow-up to the other three: Search and Trending hand you lists that include a bracketed ID per result, and this is how you turn that ID into a prompt you can actually generate from.
How it works
The mechanism is as thin as it gets. The node fires an HTTPS call at the same Supabase backend that powers masterphub.io - prompts?select=title,content&id=eq.<id>&limit=1, straight from the source - and returns the matching row. That's it. An anon key is embedded in the code, so you never need an account or an API key. No Python dependencies beyond the standard library, no model files, nothing to download. In a custom-node ecosystem where installs routinely pull in half a requirements.txt, that's worth appreciating.
Inputs and outputs
Just one input:
- prompt_id - an INT, minimum 1, default 1. This is a Masterphub catalog ID, not a ComfyUI node ID and not something you should guess.
Two outputs, both STRING:
- prompt_text - the full prompt text, ready to wire into CLIP Text Encode.
- title - the prompt's title, handy for naming your output files or keeping the graph readable.
Why this node is worth having
The other three nodes in the pack are all moving targets: Trending and Search order by popularity, Random is random. Load by ID is the opposite - same ID, same prompt, every single time. That makes it the reproducible core of the pack. If you build something you like off a trending prompt, you can pin that prompt into a workflow by its ID and it stays stable across runs and across machines. It's also the graceful recovery path: lose the text but remember the ID from a list you saw earlier? This node gets it back verbatim.
There's a real-world caveat that applies to the whole family: it's a brand-new, low-traffic pack, so don't hinge your entire workflow on it. The prompts are a mixed bag too - Masterphub catalogs image, video, writing, coding, and business prompts all in one table, so the text you load may be tag-style or prose, and it won't necessarily behave the same across model families.
Gotchas
Feed it a nonexistent ID and you don't get a crash - you get the strings Prompt not found. / Not found on the outputs. That's friendly, but it means you should watch the output rather than assume a typo'd ID silently passed through. And like every node here, it needs network: no connection, and you'll see an Error: ... string instead. Where do you get valid IDs? From the titles_list output of Masterphub Search or the trending_list output of Masterphub Trending.
Install
ComfyUI Manager β Install Custom Nodes β search Masterphub β Install β restart. Or:
cd ComfyUI/custom_nodes
git clone https://github.com/stavjadam-collab/masterphub-comfyui
then restart and look under the Masterphub menu. Note the README's manual-clone line points at a different GitHub org (masterphub/... vs the real stavjadam-collab/...) - if you copy-paste that and it fails, use the URL above or let Manager handle it.
Inputs (1)
| Name | Type | Default | Description |
|---|---|---|---|
| prompt_id | INT | 1 | β |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| prompt_text | STRING | β |
| title | STRING | β |