GPT Image 2 Custom Prompt Saver 💾
Turn a prompt you love into a permanent template
- preview_image
- status
The bundled library in this pack is 500+ curated GPT Image 2 prompts, which covers a lot of ground. But eventually you'll write the perfect prompt yourself - the one that finally nails that look - and you'll want it back without digging through your chat history. GPT Image 2 Custom Prompt Saver is the pack's way of persisting your own prompts as first-class templates, complete with an optional preview thumbnail, so they show up in the Selector and Preview nodes right alongside the presets.
It's a tiny, single-purpose node, and that's fine. Think of it as the "save" button for the prompt library.
How it works
The node writes into data/custom_prompts/ inside the pack's directory - a custom_prompts.json file for the entries and JPEG files for any thumbnails. If you feed it an IMAGE, it converts the tensor to a JPEG at quality 85 and stores it; the whole thing is self-contained and portable with the pack.
The one behavior to know: saving with a name that already exists overwrites the old entry rather than creating a duplicate. The node reuses the existing ID, deletes the old image, and swaps in the new text. So saving is also your edit mechanism - to fix a saved template, save over it with the same name.
After a save, the node fires a hot-refresh so every Selector and Preview node on the canvas picks up the new template immediately. No ComfyUI restart, which is a nice touch.
Inputs and outputs
prompt_text(multiline STRING) - the prompt itself. This is required; saving with an empty prompt returns an error message in the status output.prompt_name(STRING) - the short title that appears in the dropdowns. If you leave it blank, the node falls back to the first 50 characters of the prompt text, which gets ugly fast - give it a real name.category- dropdown with 6 options:custom,portrait,poster,character,ui,comparison. Note this list is narrower than the Selector's 10-category list, so you can't file a template underad_creativeorecommerceeven though the Selector will happily display those.preview_image(optional IMAGE) - wire any image here to use as the thumbnail. The natural move: hook it to the output of your image-generation or preview node so your saved template carries a picture of what the prompt actually produces.
The single output is status (STRING) - a human-readable confirmation, or the empty-prompt error. It's an output node, so run it once to perform the save.
Install and common issues
Same pack, same install - ComfyUI Manager search "GPT Image 2 Prompts", or git clone https://github.com/T8mars/comfyui-gpt-image2-prompt-T8 into custom_nodes/ and restart. No models, no extra dependencies.
Two gotchas are worth remembering. Saved templates appear under whichever category you chose, but the default is custom, so if you save and then can't find the entry, check you're not filtering on a category you didn't pick. And if a saved thumbnail won't display, it's usually the old absolute-path format from earlier pack versions - re-saving the template regenerates the path and fixes it.
Inputs (4)
| Name | Type | Default | Description |
|---|---|---|---|
| prompt_text | STRING | — | |
| prompt_name | STRING | — | |
| category | COMBO | custom | 6 options: custom, portrait, poster, character, ui, comparison |
| preview_imageopt | IMAGE | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| status | STRING | — |