Nodes/ComfyUI-GeminiImageToPrompt/Mostrar y Editar Texto Generado
ComfyUI Node

Mostrar y Editar Texto Generado

The tiny node that lets you read and fix a generated prompt before it costs you anything

By santiagosamuel3455·Created about a year ago·Updated about a year ago· 1
Mostrar y Editar Texto Generado
    • edited_text
    generated_textTexto generado...

    Not everything in a pack needs to be clever. ShowGeneratedText ("Mostrar y Editar Texto Generado" in the node menu - the Spanish gives away the author's origin) is the pack's quiet utility: it takes a STRING, shows it to you in the node so you can read and edit it, and hands the edited version out as edited_text. That's the whole thing. No API, no key, no network - a pass-through with a text box bolted on.

    It earns its place in this pack specifically because the other nodes generate prompt text you usually want to tweak before it reaches a video model. Put it between a generator and a consumer:

    GeminiImageToPromptNode → ShowGeneratedText → DeepseekR1KlingAINode
    

    Now you get a chance to fix the one detail Gemini got wrong - it will describe your red car as blue at least once - before you spend real credits downstream.

    Inputs and outputs

    One input, generated_text (a STRING, multiline, defaulting to Texto generado...). One output, edited_text, also a STRING. Wire the generator's output into the input, edit in the box, send the output onward. The node also prints the text to the console, which is handy if you'd rather copy it from the terminal than from a widget.

    How it works

    It's the simplest kind of ComfyUI node there is: the function takes the string, echoes it to the log, and returns it unchanged. The "editing" is purely a frontend property - ComfyUI lets you edit any multiline widget, so this node exists to give you a dedicated, always-visible box instead of digging back through your generator's widgets to find the field you want to change.

    Installing it

    It ships inside the ComfyUI-GeminiImageToPrompt pack, so it's the same install as everything else here: ComfyUI Manager, search "ComfyUI-GeminiImageToPrompt", or

    cd ComfyUI/custom_nodes
    git clone https://github.com/santiagosamuel3455/ComfyUI-GeminiImageToPrompt
    

    then restart. It's the one node in the pack with zero dependencies beyond the pack's own requirements (google-generativeai, Pillow, requests), so it keeps working even after the API nodes in the same pack rot.

    Gotchas? Not much to go wrong. One thing worth knowing: if the box reads Texto generado..., you've left the default in and are forwarding placeholder text downstream. If your video prompt suddenly says "generated text" in it, that's your first suspect.

    Categoryutils

    Inputs (1)

    NameTypeDefaultDescription
    generated_textSTRINGTexto generado...

    Outputs (1)

    NameTypeDescription
    edited_textSTRING