ComfyUI guide, hands-on teaching you to use Flux Kontext to write prompts to generate images

Flux Kontext Pictures can be modified through natural language, which can not only make localized and precise modifications to pictures while maintaining character consistency and scene consistency, but can also make continuous modifications.

It can be said that Kontext is the strongest multimodal model available, even GPT4o is not far behind it.

f6474bd3j00szopdc00wfd000sg00lcm

Most importantly, Flux Kontext is now available in a free and open source dev version, with unbeatable features and free of charge, who can't love it?

Kontext Application Scenario Demo

Open comfyUI and open the official flux example from the templateWorkflowThe first one is the same as the second one. Two sample workflows are provided here that are essentially the same, so let's open the first one for demonstration.

7bda9cb6j00szopdb007yd000t700g3m

Writing prompts using the official "prompt technique"

When we open the template, we are given an official tip on how to use the prompt word, so we can put it to good use.

be73e08bj00szopdb001td000r000i8m

Copy this cue word trick and come to the big language models like beanbag, deepseek, and passyi and tell it that these are flux kontext cue words, and I want you to learn how to use it, and if you get it reply to understand that I'll use it.

I gave the cue word to the Tongyi Big Model and it easily understood the use of the cue word.

Later, we can have Tongyi write the kontext prompts for me.

39a579a0j00szopd9002sd000r500nom

1. Remove the watermark:

Tell tomyi to write me a prompt based on the flux kontext prompt word rule: Remove the watermark from the screen.

1b84e01cj00szopda0018d000qn00aum

Paste the prompt words given by Tongyi into the CLIP text encoder in the Kontext workflow, upload an image full of watermarks, click run, and it removes the watermarks from the image perfectly.

175a403dj00szopdb00c7d000u000bpm

2. Extraction of elements:

Tell Tongyi to extract the robot character with the gun on the right, delete the rest, and set the background to white.

Tongyi not only helped me write the prompts, but also told me why the prompts were written the way they were.

9c168421j00szopda001td000r200g7m

Pasting the cue words into the text encoder and uploading a picture of the two robots, Kontext accurately extracted the red robot on the right.

a6b6308aj00szopdb00a8d000u000bhm

3. Role reversal perspective

Have Tongyi write a prompt that says, "Rotate the camera 90 degrees clockwise to show a side view of the rabbit."

6e8c970aj00szopda001ud000qk00e6m

After pasting the prompt into the text encoder and also uploading a picture of the front of the rabbit and clicking run, we get a picture of the side of the rabbit.

232282eaj00szopdb00c9d000u000bnm

4. Successive revisions:

Click "refresh" in the Load Image node to load the just-generated rabbit side image, so that we can continuously modify the just-generated image as long as we give a new cue word.

fb9fc54ej00szopdb007id000ez00i7m

This time I asked Tongyi to help me write the prompt: the main body of the picture remains the same, the background becomes the prairie

e88f7c9aj00szopda001wd000qz00f3m

In this way we have accomplished both the continuous modification of the image and the realization that the main body remains unchanged and only the background of the image is modified.

a5b2defcj00szopdb00ctd000u000bhm

5. Style reference:

I told Tongyi that I will upload a style image first, please help me write a prompt word according to the flux kontext prompt word rule: refer to the style of the image I uploaded to generate an image of a beautiful warrior in armor with an exceptionally good figure, the female warrior is holding a sword with both hands and is making an attacking movement.

3c5f87c2j00szopdb002qd000qt00jxm

Upload a special styled image and paste the cue word just generated by Tongyi

Click Generate to see the result, which perfectly replicates the style of the reference image.

2537d873j00szopdb00iyd000u000cym

6、Double map merger

flux kontext has an image loading node disabled by default, turn it on and upload two images at the same time, a woman and a goose.

Write a cue word with a generic meaning: help me write a cue word based on the flux kontext cue word rule: let the woman carry this goose in her arms

f6ccc113j00szopdb002ed000s800jhm

722481baj00szopdb00d8d000u0008wm

Essentially kontext generates a picture that is also drawing cards, and the effect is that if you are not satisfied with the generated picture, you can draw a few more until you are satisfied.

084b85e9j00szopdb00ejd000u000dkm

Zoom in on the picture to observe that kontext extends the height of the original picture and then lets the woman hold the goose, and overall the consistency of the woman and the goose is still relatively high. However, kontext's support for dual-image is not particularly good, and the consistency is not very high when multiple images are generated, so it is recommended that we still focus on single-image.

d25b5c53j00szopdc010nd000u000pgm

7. Remove background

Writing Prompt Words with Generalization: Removing the Context

39156f57j00szopd9000vd000qt009jm

With the cue word, it was easy to remove the background of the picture other than the characters.

dfbabe4dj00szopdb00bnd000u000bvm

We could also go a step further and have kontext set the background to white after removing it.

7bdd42f5j00szopdb00cod000u000cum

8, style to draw

Have Tongyi write a prompt: help me write a prompt based on the flux kontext prompt rules: change the style to Ghibli style

de02e6f5j00szopd90010d000ru009wm

Modifying the image style is a piece of cake for kontext, you can also try to make it modify to other types of image styles.

6372e2a7j00szopdb00f4d000u000bzm

9. Local fine-tuning

If you want to modify only a part of the picture, really "where to hit", we need to modify the workflow a little, but also use the mask function, see the article for details:

Flux Kontext guide, two methods to achieve accurate local redrawing of AI images

Write a cue with a generic meaning: help me write a cue based on the flux kontext cue rule: change the red area to a pink wreath

fb091313j00szopd9000zd000rg00a3m

Drawing a mask on the character part of the picture, Kontext is very precise in making the character wear a wreath on her head.

a9d61a62j00szopdc00k5d000u000gbm

That's all for today.

statement:The content of the source of public various media platforms, if the inclusion of the content violates your rights and interests, please contact the mailbox, this site will be the first time to deal with.
TutorialEncyclopedia

Flux Kontext guide, two methods to achieve accurate local redrawing of AI images

2025-7-23 9:26:56

TutorialEncyclopedia

Ways to backpropagate AI painting cue words, share beanbag one-click backpropagate image cue words AI tips

2025-7-24 9:46:52

Zenium
Search