CivArchive
    FLUX-Kontext Portrait Grid Emulation in ComfyUI (Dynamic Prompts + Switches for Low RAM) - v1.0
    NSFW
    Preview 86009148
    Preview 86010636

    Hey folks, a while back I posted this request asking for help replicating the Flux-Kontext Portrait Series app from Replicate output in ComfyUI.

    Well… I ended up getting it thanks to a lot of help in the community. I posted on Reddit first but I forgot I should have posted one here..

    This is a work-in-progress, not a polished solution, but it should get you 12 varied portraits using the FLUX-Kontext model—complete with pose variation, styling prompts, and dynamic switches for RAM flexibility.

    🛠 What It Does:

    Generates a set of 12 portrait variations using dynamic prompt injection

    Rotates through pose strings via iTools Line Loader + LayerUtility: TextJoinV2

    Allows model/clip/VAE switching for low vs normal RAM setups using Any Switch (rgthree)

    Includes pose preservation and face consistency across all outputs

    Batch text injection + seed control

    Optional face swap and background removal tools included

    Que up 12 and make sure the text number is at zero (see screen shots) it will cycle through the prompts. You of course can make better prompts if you wish. The image makes a black background but you can change that to whatever color you wish.

    lastly there is a faceswap to improve on the end results. You can delete it if you are not into that.

    This is all thanks you BGRated who requested such a workflow. who did this for me on Matteo's Discord server. Thank you zGenMedia you rock.

    📦 Node Packs Used:

    rgthree-comfy (for switches & group toggles)

    comfyui_layerstyle (for dynamic text & image blending)
    NOTE: Download this model (model.pth) and place it ComfyUI/custom_nodes/ComfyUI_LayerStyle/RMBG-1.4/

    comfyui-itools (for pose string rotation)

    comfyui-multigpu (for Flux-Kontext compatibility)

    comfy-core (standard utilities)

    ReActorFaceSwap (optional FaceSwap block)

    ComfyUI_LayerStyle_Advance (for PersonMaskUltra V2)

    ⚠️ Heads Up:

    This isn’t the most elegant setup—prompt logic can still be refined, and pose diversity may need manual tweaks. But it’s usable out the box and should give you a working foundation to tweak further.

    📁 Download & Screenshots:

    [ Workflow: https://pastebin.com/v8aN8MJd ] Just remove the txt at the end of the file if you download it.

    Grid sample and pose output previews attached below are stitched by me the program does not stitch the final results together.

    Any help or support can be done here. It literally puts food on my table.
    If you need Runpod credits any new joins get $500 for $10 install.

    Description

    FAQ

    Comments (1)

    zGenMedia
    Author
    Jul 3, 2025
    CivitAI

    1. This does NOT make a grid. I did that just to show you the results.
    2. Always start with 0 in the prompt seed and put a batch. say 10 or whatever. (see the workflow screenshot with red notes)
    3. You can change prompts to anything you want. This just cycles though them one line at a time.

    4. You can delete or MUTE Reactor. It is just to help faces. I made it so if it is muted it still works.

    5. ANY help would be a blessing (things are tight right now)

    Workflows
    Flux.1 Kontext

    Details

    Downloads
    767
    Platform
    CivitAI
    Platform Status
    Available
    Created
    7/3/2025
    Updated
    4/30/2026
    Deleted
    -

    Files

    fluxKontextPortraitGridEmulation_v10.zip