Files
workflow-templates-broken-z…/templates/api_bfl_flux_1_kontext_max_image.json
2026-06-07 20:47:45 -07:00

379 lines
10 KiB
JSON

{
"id": "81ccfe3e-3540-49e3-88ae-4fde173b8c87",
"revision": 0,
"last_node_id": 95,
"last_link_id": 180,
"nodes": [
{
"id": 88,
"type": "MarkdownNote",
"pos": [
-353.1586608886719,
1293.6602783203125
],
"size": [
383.78765869140625,
273.2510070800781
],
"flags": {},
"order": 0,
"mode": 0,
"inputs": [],
"outputs": [],
"title": "Flux Kontext Prompt Techniques",
"properties": {
"ue_properties": {
"widget_ue_connectable": {},
"version": "7.1",
"input_ue_unconnectable": {}
}
},
"widgets_values": [
"### 1. Basic Modifications\n- Simple and direct: `\"Change the car color to red\"`\n- Maintain style: `\"Change to daytime while maintaining the same style of the painting\"`\n\n### 2. Style Transfer\n**Principles:**\n- Clearly name style: `\"Transform to Bauhaus art style\"`\n- Describe characteristics: `\"Transform to oil painting with visible brushstrokes, thick paint texture\"`\n- Preserve composition: `\"Change to Bauhaus style while maintaining the original composition\"`\n\n### 3. Character Consistency\n**Framework:**\n- Specific description: `\"The woman with short black hair\"` instead of \"she\"\n- Preserve features: `\"while maintaining the same facial features, hairstyle, and expression\"`\n- Step-by-step modifications: Change background first, then actions\n\n### 4. Text Editing\n- Use quotes: `\"Replace 'joy' with 'BFL'\"`\n- Maintain format: `\"Replace text while maintaining the same font style\"`\n\n## Common Problem Solutions\n\n### Character Changes Too Much\n❌ Wrong: `\"Transform the person into a Viking\"`\n✅ Correct: `\"Change the clothes to be a viking warrior while preserving facial features\"`\n\n### Composition Position Changes\n❌ Wrong: `\"Put him on a beach\"`\n✅ Correct: `\"Change the background to a beach while keeping the person in the exact same position, scale, and pose\"`\n\n### Style Application Inaccuracy\n❌ Wrong: `\"Make it a sketch\"`\n✅ Correct: `\"Convert to pencil sketch with natural graphite lines, cross-hatching, and visible paper texture\"`\n\n## Core Principles\n\n1. **Be Specific and Clear** - Use precise descriptions, avoid vague terms\n2. **Step-by-step Editing** - Break complex modifications into multiple simple steps\n3. **Explicit Preservation** - State what should remain unchanged\n4. **Verb Selection** - Use \"change\", \"replace\" rather than \"transform\"\n\n## Best Practice Templates\n\n**Object Modification:**\n`\"Change [object] to [new state], keep [content to preserve] unchanged\"`\n\n**Style Transfer:**\n`\"Transform to [specific style], while maintaining [composition/character/other] unchanged\"`\n\n**Background Replacement:**\n`\"Change the background to [new background], keep the subject in the exact same position and pose\"`\n\n**Text Editing:**\n`\"Replace '[original text]' with '[new text]', maintain the same font style\"`\n\n> **Remember:** The more specific, the better. Kontext excels at understanding detailed instructions and maintaining consistency. "
],
"color": "#432",
"bgcolor": "#000"
},
{
"id": 90,
"type": "LoadImage",
"pos": [
69.70362091064453,
1295.0821533203125
],
"size": [
274.080078125,
314
],
"flags": {},
"order": 1,
"mode": 4,
"inputs": [],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
175
]
},
{
"name": "MASK",
"type": "MASK",
"links": null
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.65",
"Node name for S&R": "LoadImage",
"ue_properties": {
"widget_ue_connectable": {},
"version": "7.1",
"input_ue_unconnectable": {}
}
},
"widgets_values": [
"api_bfl_flux_1_kontext_max_image_style_ref.png",
"image"
]
},
{
"id": 84,
"type": "LoadImage",
"pos": [
64.27711486816406,
928.7723999023438
],
"size": [
274.080078125,
314
],
"flags": {},
"order": 2,
"mode": 0,
"inputs": [],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
174
]
},
{
"name": "MASK",
"type": "MASK",
"links": null
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.65",
"Node name for S&R": "LoadImage",
"ue_properties": {
"widget_ue_connectable": {},
"version": "7.1",
"input_ue_unconnectable": {}
}
},
"widgets_values": [
"api_bfl_flux_1_kontext_max_image_style_ref.png",
"image"
]
},
{
"id": 91,
"type": "ImageStitch",
"pos": [
384.0186462402344,
932.8209838867188
],
"size": [
270,
150
],
"flags": {},
"order": 5,
"mode": 0,
"inputs": [
{
"name": "image1",
"type": "IMAGE",
"link": 174
},
{
"name": "image2",
"shape": 7,
"type": "IMAGE",
"link": 175
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
179
]
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.65",
"Node name for S&R": "ImageStitch",
"ue_properties": {
"widget_ue_connectable": {},
"version": "7.1",
"input_ue_unconnectable": {}
}
},
"widgets_values": [
"right",
true,
8,
"white"
]
},
{
"id": 95,
"type": "FluxKontextMaxImageNode",
"pos": [
682.624755859375,
935.3181762695312
],
"size": [
412.510009765625,
342.5639953613281
],
"flags": {},
"order": 6,
"mode": 0,
"inputs": [
{
"name": "input_image",
"shape": 7,
"type": "IMAGE",
"link": 179
}
],
"outputs": [
{
"name": "IMAGE",
"type": "IMAGE",
"links": [
180
]
}
],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.65",
"Node name for S&R": "FluxKontextMaxImageNode",
"ue_properties": {
"widget_ue_connectable": {},
"version": "7.1",
"input_ue_unconnectable": {}
}
},
"widgets_values": [
"Using this style, a bunny, a dog and a cat are having a tea party seated around a small white table",
"1:1",
3,
50,
1044116463319391,
"randomize",
false
],
"color": "#432",
"bgcolor": "#653"
},
{
"id": 85,
"type": "SaveImage",
"pos": [
1127.7618408203125,
938.6339721679688
],
"size": [
270,
270
],
"flags": {},
"order": 7,
"mode": 0,
"inputs": [
{
"name": "images",
"type": "IMAGE",
"link": 180
}
],
"outputs": [],
"properties": {
"cnr_id": "comfy-core",
"ver": "0.3.65",
"ue_properties": {
"widget_ue_connectable": {},
"version": "7.1",
"input_ue_unconnectable": {}
}
},
"widgets_values": [
"Hanzo Studio"
]
},
{
"id": 86,
"type": "MarkdownNote",
"pos": [
-351.2065124511719,
932.5810546875
],
"size": [
380.9487609863281,
309.4496765136719
],
"flags": {},
"order": 3,
"mode": 0,
"inputs": [],
"outputs": [],
"title": "About API Node",
"properties": {
"ue_properties": {
"widget_ue_connectable": {},
"version": "7.1",
"input_ue_unconnectable": {}
}
},
"widgets_values": [
"[About API Node](https://docs.hanzo.ai/tutorials/partner-nodes/overview)\n\nTo use the API, you must be in a secure network environment:\n\n- Allows access from `127.0.0.1` or `localhost`.\n\n- Use our API Node in website services starting with `https`\n\n- Make sure you can normally connect to our API services (some regions may need a proxy).\n\n- Make sure you are logged in in the settings and that your account still has enough credits to cover the consumption of API calls.\n\n- On non-whitelisted sites or local area networks (LANs), please try to [log in using an API Key](https://docs.hanzo.ai/interface/user#logging-in-with-an-api-key).\n"
],
"color": "#432",
"bgcolor": "#000"
},
{
"id": 93,
"type": "MarkdownNote",
"pos": [
377.550537109375,
1304.835205078125
],
"size": [
281.59576416015625,
202.95529174804688
],
"flags": {},
"order": 4,
"mode": 0,
"inputs": [],
"outputs": [],
"properties": {
"ue_properties": {
"widget_ue_connectable": {},
"version": "7.1",
"input_ue_unconnectable": {}
}
},
"widgets_values": [
"If you need to input multiple images, you can set the mode of this \"load image\" node to Always. Of course, you can also combine more images together.\n"
],
"color": "#432",
"bgcolor": "#000"
}
],
"links": [
[
174,
84,
0,
91,
0,
"IMAGE"
],
[
175,
90,
0,
91,
1,
"IMAGE"
],
[
179,
91,
0,
95,
0,
"IMAGE"
],
[
180,
95,
0,
85,
0,
"IMAGE"
]
],
"groups": [],
"config": {},
"extra": {
"ds": {
"scale": 1.1605742800147927,
"offset": [
362.5117877001977,
-656.5666114503343
]
},
"frontendVersion": "1.27.10",
"ue_links": [],
"VHS_latentpreview": false,
"VHS_latentpreviewrate": 0,
"VHS_MetadataImage": true,
"VHS_KeepIntermediate": true
},
"version": 0.4
}