$npx -y skills add prime-skills/runcomfy-agent-skills --skill flux-kontextEdit images with Flux 1 Kontext Pro (Black Forest Labs' precise local image-edit model) on RunComfy — bundled with the model's documented prompting patterns so the skill gets sharper output than naive prompting against the same model. Documents Flux Kontext's strengths (single-re
| 1 | # Flux Kontext Pro — Pro Pack on RunComfy |
| 2 | |
| 3 | [runcomfy.com](https://www.runcomfy.com/?utm_source=skills.sh&utm_medium=skill&utm_campaign=flux-kontext) · [Model page](https://www.runcomfy.com/models/blackforestlabs/flux-1-kontext-pro/image-to-image?utm_source=skills.sh&utm_medium=skill&utm_campaign=flux-kontext) · [GitHub](https://github.com/agentspace-so/runcomfy-skills/tree/main/flux-kontext) |
| 4 | |
| 5 | Black Forest Labs' **Flux 1 Kontext Pro** — single-reference precise local image edit — hosted on the **RunComfy Model API**. Strong prompt control, consistent outputs, high fidelity. |
| 6 | |
| 7 | ```bash |
| 8 | npx skills add agentspace-so/runcomfy-skills --skill flux-kontext -g |
| 9 | ``` |
| 10 | |
| 11 | ## When to pick this model (vs siblings) |
| 12 | |
| 13 | | You want | Use | |
| 14 | |---|---| |
| 15 | | Single-image precise local edit ("she's now holding X") | **Flux Kontext** | |
| 16 | | High-fidelity preservation of source identity | **Flux Kontext** | |
| 17 | | Batch edits across 1–20 images | Nano Banana Edit | |
| 18 | | Edit multilingual / embedded text in image | GPT Image 2 edit | |
| 19 | | Generate from scratch, no source image | Flux 2 Klein | |
| 20 | |
| 21 | If the user said "Flux Kontext" / "kontext" / "BFL Kontext" explicitly, route here regardless. |
| 22 | |
| 23 | ## Prerequisites |
| 24 | |
| 25 | 1. **RunComfy CLI** — `npm i -g @runcomfy/cli` |
| 26 | 2. **RunComfy account** — `runcomfy login` opens a browser device-code flow. |
| 27 | 3. **CI / containers** — set `RUNCOMFY_TOKEN=<token>` instead of `runcomfy login`. |
| 28 | |
| 29 | ## Endpoints + input schema |
| 30 | |
| 31 | ### `blackforestlabs/flux-1-kontext/pro/edit` |
| 32 | |
| 33 | | Field | Type | Required | Default | Notes | |
| 34 | |---|---|---|---|---| |
| 35 | | `prompt` | string | yes | — | Single declarative edit instruction. | |
| 36 | | `image` | string | yes | — | Single source image URL (publicly fetchable HTTPS). | |
| 37 | | `aspect_ratio` | enum | no | (input) | Pick from supported W:H options on the model page. | |
| 38 | | `seed` | int | no | — | Reuse for variant comparisons. | |
| 39 | |
| 40 | The schema is intentionally minimal — Kontext leans on prompt + single ref. For multi-image or web-grounded edits, route to Nano Banana Edit. |
| 41 | |
| 42 | ## How to invoke |
| 43 | |
| 44 | **Default — local edit, preserve everything else:** |
| 45 | |
| 46 | ```bash |
| 47 | runcomfy run blackforestlabs/flux-1-kontext/pro/edit \ |
| 48 | --input '{ |
| 49 | "prompt": "Keep the person'\''s face, pose, and clothing unchanged. Add an orange umbrella in her left hand and a slight smile.", |
| 50 | "image": "https://.../portrait.jpg" |
| 51 | }' \ |
| 52 | --output-dir <absolute/path> |
| 53 | ``` |
| 54 | |
| 55 | **With seed for reproducible variant series:** |
| 56 | |
| 57 | ```bash |
| 58 | runcomfy run blackforestlabs/flux-1-kontext/pro/edit \ |
| 59 | --input '{ |
| 60 | "prompt": "Keep the bottle, label, and lighting unchanged. Replace the brand text on the label from \"ALPHA\" to \"AURA\".", |
| 61 | "image": "https://.../bottle.jpg", |
| 62 | "seed": 42 |
| 63 | }' \ |
| 64 | --output-dir <absolute/path> |
| 65 | ``` |
| 66 | |
| 67 | ## Prompting — what actually works |
| 68 | |
| 69 | **One declarative instruction.** Kontext shines on prompts shaped like the docs example: `"She is now holding an orange umbrella and smiling"`. Imperative mood, single change. |
| 70 | |
| 71 | **Preservation first.** Lead with `"Keep [identity / pose / framing / brand] unchanged."` Then the change. Models honor what's stated up front. |
| 72 | |
| 73 | **Single ref only — pick the right one.** No multi-image fanout here. If you have multiple references, decide which is primary and pass that one. For multi-image flows, route to Nano Banana Edit. |
| 74 | |
| 75 | **Iterate on small changes.** If Kontext drifts, split a compound edit into sequential single-instruction passes (pass 1: change background, pass 2: change clothing). |
| 76 | |
| 77 | **Aspect ratio — pick from the supported enum.** Out-of-list values 422 or crop. |
| 78 | |
| 79 | **Anti-patterns:** |
| 80 | - Compound prompts ("change A and add B and remove C") → drift. |
| 81 | - Trying to fan out to multiple source images → wrong model (use Nano Banana Edit). |
| 82 | - Prompts written in passive voice → less reliable. |
| 83 | - Asking for novel composition without a source image → wrong model (use Flux 2 Klein t2i). |
| 84 | |
| 85 | ## Where it shines |
| 86 | |
| 87 | | Use case | Why Flux Kontext | |
| 88 | |---|---| |
| 89 | | **Single-shot precise local edit** | Specifically designed for this; high fidelity | |
| 90 | | **Preserve source identity through targeted change** | Strong preservation under explicit instruction | |
| 91 | | **Brand-asset text or color swap** | Quoted text + p |