Skip to content
Python
10.6 KB
Raw Blame
{
  "$schema": "../../schema/app.schema.json",
  "id": "create-image",
  "name": "Create Image",
  "section": "image",
  "pack": "image-flux3",
  "status": "ready",
  "higgsfield_feature": "Create Image",
  "summary": "Text to image with FLUX 3 Image Klein: aspect ratio, 1K to 2K, a photographic look, and a 9B upsampler that can expand your prompt.",
  "workflow": "workflow.api.json",
  "source": {
    "template": "image_flux3_klein_distilled_t2i.json",
    "comfyui": "0.42.0",
    "notes": "The same distilled Klein file as apps/edit. The template's bounding-box tool is left out: a layout table can be typed at the end of the prompt as the JSON that Flux3LayoutPrompt writes, [{\"id\": \"obj_1\", \"bbox\": [y0, x0, y1, x1], \"desc\": \"...\"}] with coordinates from 0 to 1000 (turn the upsampler off for it)."
  },
  "inputs": [
    {
      "id": "prompt",
      "type": "textarea",
      "label": "Prompt",
      "required": true,
      "default": "A rainy neon street in Mexico City at night, cinematic, 35mm",
      "bind": [
        {
          "node": "18:17",
          "field": "value",
          "template": "{prompt} {look}"
        }
      ]
    },
    {
      "id": "expand",
      "type": "toggle",
      "label": "Expand my prompt",
      "default": true,
      "help": "BFL's 9B upsampler rewrites a short prompt into a detailed caption before Klein draws it. Turn it off for long prompts or a JSON layout.",
      "bind": [
        {
          "node": "18:16",
          "field": "switch"
        }
      ]
    },
    {
      "id": "look",
      "type": "select",
      "label": "Look",
      "default": "",
      "help": "A photographic look added after your prompt (like a moodboard preset).",
      "options": [
        {
          "value": "",
          "label": "None"
        },
        {
          "value": "Shot on a cheap disposable film camera with its built-in flash: harsh flash, slight vignette, film grain, a warm color cast.",
          "label": "Disposable camera"
        },
        {
          "value": "A fashion editorial photo lit by direct flash: crisp hard shadow behind the subject, glossy highlights, high contrast.",
          "label": "Flash editorial"
        },
        {
          "value": "A black-and-white film photo: rich grain, deep blacks, soft highlights.",
          "label": "Black and white film"
        },
        {
          "value": "A color film photo with warm, saturated colors and soft grain.",
          "label": "Warm vivid film"
        },
        {
          "value": "A color film photo with muted, cool tones, low contrast and fine grain.",
          "label": "Muted cool film"
        },
        {
          "value": "A soft pastel color film photo: lifted shadows, gentle light, low saturation.",
          "label": "Pastel film"
        },
        {
          "value": "A photo from an early-2000s compact digital camera: flat built-in flash, slightly blown highlights, small-sensor noise.",
          "label": "2000s digital camera"
        },
        {
          "value": "A photo from an old phone camera: soft focus, smeared fine detail, noisy shadows, washed-out colors.",
          "label": "Old phone camera"
        },
        {
          "value": "Candid street photography: natural light, slight motion blur, a documentary feel.",
          "label": "Street photography"
        },
        {
          "value": "Theatrical stage lighting: one hard spotlight, a black background, dramatic shadows.",
          "label": "Theatrical light"
        },
        {
          "value": "Soft natural daylight outdoors, green foliage around, gentle shadows.",
          "label": "Nature light"
        },
        {
          "value": "An underwater photo: blue-green water, light rays from the surface, floating particles.",
          "label": "Underwater"
        },
        {
          "value": "A double-exposure photo: a second scene blended inside the subject's silhouette.",
          "label": "Double exposure"
        },
        {
          "value": "A surreal solarized photo: partly inverted tones and metallic highlights.",
          "label": "Solarized"
        },
        {
          "value": "A bright candy-colored photo: saturated pinks, blues and yellows, glossy and playful.",
          "label": "Candy pop"
        },
        {
          "value": "A 1980s horror film still: red and blue gel lights, fog, grainy film, no gore.",
          "label": "80s horror"
        },
        {
          "value": "A Y2K studio portrait: glossy chrome and pastel backdrop, soft flash, early-2000s styling.",
          "label": "Y2K studio"
        }
      ],
      "bind": []
    },
    {
      "id": "aspect",
      "type": "select",
      "label": "Aspect ratio",
      "default": "1:1",
      "help": "At 1K the image has about 1 megapixel in this shape; Resolution scales it.",
      "options": [
        {
          "value": "1:1",
          "label": "1:1",
          "sets": [
            {
              "node": "18:6",
              "field": "width",
              "value": 1024
            },
            {
              "node": "18:6",
              "field": "height",
              "value": 1024
            }
          ]
        },
        {
          "value": "4:3",
          "label": "4:3",
          "sets": [
            {
              "node": "18:6",
              "field": "width",
              "value": 1152
            },
            {
              "node": "18:6",
              "field": "height",
              "value": 864
            }
          ]
        },
        {
          "value": "3:4",
          "label": "3:4",
          "sets": [
            {
              "node": "18:6",
              "field": "width",
              "value": 864
            },
            {
              "node": "18:6",
              "field": "height",
              "value": 1152
            }
          ]
        },
        {
          "value": "3:2",
          "label": "3:2",
          "sets": [
            {
              "node": "18:6",
              "field": "width",
              "value": 1248
            },
            {
              "node": "18:6",
              "field": "height",
              "value": 832
            }
          ]
        },
        {
          "value": "2:3",
          "label": "2:3",
          "sets": [
            {
              "node": "18:6",
              "field": "width",
              "value": 832
            },
            {
              "node": "18:6",
              "field": "height",
              "value": 1248
            }
          ]
        },
        {
          "value": "5:4",
          "label": "5:4",
          "sets": [
            {
              "node": "18:6",
              "field": "width",
              "value": 1120
            },
            {
              "node": "18:6",
              "field": "height",
              "value": 896
            }
          ]
        },
        {
          "value": "4:5",
          "label": "4:5",
          "sets": [
            {
              "node": "18:6",
              "field": "width",
              "value": 896
            },
            {
              "node": "18:6",
              "field": "height",
              "value": 1120
            }
          ]
        },
        {
          "value": "16:9",
          "label": "16:9",
          "sets": [
            {
              "node": "18:6",
              "field": "width",
              "value": 1344
            },
            {
              "node": "18:6",
              "field": "height",
              "value": 768
            }
          ]
        },
        {
          "value": "9:16",
          "label": "9:16",
          "sets": [
            {
              "node": "18:6",
              "field": "width",
              "value": 768
            },
            {
              "node": "18:6",
              "field": "height",
              "value": 1344
            }
          ]
        },
        {
          "value": "21:9",
          "label": "21:9",
          "sets": [
            {
              "node": "18:6",
              "field": "width",
              "value": 1536
            },
            {
              "node": "18:6",
              "field": "height",
              "value": 640
            }
          ]
        }
      ],
      "bind": []
    },
    {
      "id": "resolution",
      "type": "select",
      "label": "Resolution",
      "default": 1,
      "help": "1K is about 1 megapixel; 2K is four times the pixels and takes about four times as long.",
      "options": [
        {
          "value": 1,
          "label": "1K"
        },
        {
          "value": 1.5,
          "label": "1.5K"
        },
        {
          "value": 2,
          "label": "2K"
        }
      ],
      "bind": [
        {
          "node": "ff_res",
          "field": "scale_by"
        }
      ]
    },
    {
      "id": "steps",
      "type": "slider",
      "label": "Steps",
      "min": 8,
      "max": 24,
      "step": 1,
      "default": 15,
      "bind": [
        {
          "node": "18:7",
          "field": "steps"
        }
      ]
    },
    {
      "id": "seed",
      "type": "seed",
      "label": "Seed",
      "default": -1,
      "help": "-1 picks a random seed",
      "bind": [
        {
          "node": "18:7",
          "field": "seed"
        }
      ]
    }
  ],
  "outputs": [
    {
      "node": "9",
      "type": "image",
      "label": "Image"
    }
  ],
  "models": [
    {
      "repo": "black-forest-labs/flux-3-image-klein-comfy",
      "file": "diffusion_models/flux3-image-klein-int8-convrot.safetensors",
      "dir": "diffusion_models",
      "gb": 5.83,
      "phase": "denoise",
      "gated": true,
      "license": "FLUX Kommunity License"
    },
    {
      "repo": "black-forest-labs/flux-3-image-klein-comfy",
      "file": "text_encoders/qwen3vl_4b_int8_convrot.safetensors",
      "dir": "text_encoders",
      "gb": 4.86,
      "phase": "encode",
      "gated": true,
      "license": "FLUX Kommunity License"
    },
    {
      "repo": "black-forest-labs/flux-3-image-klein-comfy",
      "file": "vae/flux2-vae.safetensors",
      "dir": "vae",
      "gb": 0.34,
      "phase": "decode",
      "gated": true,
      "license": "FLUX Kommunity License"
    },
    {
      "repo": "black-forest-labs/flux-3-image-klein-comfy",
      "file": "text_encoders/qwen3.5_9b_flux3_prompt_upsampler_w4a8.safetensors",
      "dir": "text_encoders",
      "gb": 6.72,
      "phase": "encode",
      "gated": true,
      "license": "FLUX Kommunity License"
    }
  ],
  "credits": [
    "FLUX 3 Image Klein and its prompt upsampler by Black Forest Labs (FLUX Kommunity License)"
  ],
  "test": {
    "prompt": "a red bicycle against a white wall",
    "expand": false
  }
}