jpskill.com
🎨 画像AI コミュニティ

flux-kontext

RunComfy上で、高精度な画像編集モデルFlux 1 Kontext Proを使い、プロンプト制御によって高品質な局所編集を実現、他の編集モデルとの使い分けも考慮し、指示に応じて画像を編集するSkill。

📜 元の英語説明(参考)

Edit 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-reference precise local edits, strong prompt control, consistent high-fidelity outputs), the schema (single image + prompt), and when to route to Nano Banana Edit / GPT Image 2 edit / Flux 2 Klein instead. Calls `runcomfy run blackforestlabs/flux-1-kontext/pro/edit` through the local RunComfy CLI. Triggers on "flux kontext", "flux-kontext", "flux 1 kontext", "kontext", "BFL kontext", or any explicit ask to edit with this model.

🇯🇵 日本人クリエイター向け解説

一言でいうと

RunComfy上で、高精度な画像編集モデルFlux 1 Kontext Proを使い、プロンプト制御によって高品質な局所編集を実現、他の編集モデルとの使い分けも考慮し、指示に応じて画像を編集するSkill。

※ jpskill.com 編集部が日本のビジネス現場向けに補足した解説です。Skill本体の挙動とは独立した参考情報です。

⚡ おすすめ: コマンド1行でインストール(60秒)

下記のコマンドをコピーしてターミナル(Mac/Linux)または PowerShell(Windows)に貼り付けてください。 ダウンロード → 解凍 → 配置まで全自動。

🍎 Mac / 🐧 Linux
mkdir -p ~/.claude/skills && cd ~/.claude/skills && curl -L -o flux-kontext.zip https://jpskill.com/download/10362.zip && unzip -o flux-kontext.zip && rm flux-kontext.zip
🪟 Windows (PowerShell)
$d = "$env:USERPROFILE\.claude\skills"; ni -Force -ItemType Directory $d | Out-Null; iwr https://jpskill.com/download/10362.zip -OutFile "$d\flux-kontext.zip"; Expand-Archive "$d\flux-kontext.zip" -DestinationPath $d -Force; ri "$d\flux-kontext.zip"

完了後、Claude Code を再起動 → 普通に「動画プロンプト作って」のように話しかけるだけで自動発動します。

💾 手動でダウンロードしたい(コマンドが難しい人向け)
  1. 1. 下の青いボタンを押して flux-kontext.zip をダウンロード
  2. 2. ZIPファイルをダブルクリックで解凍 → flux-kontext フォルダができる
  3. 3. そのフォルダを C:\Users\あなたの名前\.claude\skills\(Win)または ~/.claude/skills/(Mac)へ移動
  4. 4. Claude Code を再起動

⚠️ ダウンロード・利用は自己責任でお願いします。当サイトは内容・動作・安全性について責任を負いません。

🎯 このSkillでできること

下記の説明文を読むと、このSkillがあなたに何をしてくれるかが分かります。Claudeにこの分野の依頼をすると、自動で発動します。

📦 インストール方法 (3ステップ)

  1. 1. 上の「ダウンロード」ボタンを押して .skill ファイルを取得
  2. 2. ファイル名の拡張子を .skill から .zip に変えて展開(macは自動展開可)
  3. 3. 展開してできたフォルダを、ホームフォルダの .claude/skills/ に置く
    • · macOS / Linux: ~/.claude/skills/
    • · Windows: %USERPROFILE%\.claude\skills\

Claude Code を再起動すれば完了。「このSkillを使って…」と話しかけなくても、関連する依頼で自動的に呼び出されます。

詳しい使い方ガイドを見る →
最終更新
2026-05-18
取得日時
2026-05-18
同梱ファイル
1

📖 Skill本文(日本語訳)

※ 原文(英語/中国語)を Gemini で日本語化したものです。Claude 自身は原文を読みます。誤訳がある場合は原文をご確認ください。

Flux Kontext Pro — RunComfy 上の Pro Pack

runcomfy.com · Model page · GitHub

Black Forest Labs の Flux 1 Kontext Pro — 単一参照による高精度なローカル画像編集 — RunComfy Model API 上でホストされています。強力なプロンプト制御、一貫性のある出力、高忠実度。

npx skills add agentspace-so/runcomfy-skills --skill flux-kontext -g

このモデルを選ぶべき時 (他のモデルとの比較)

必要なこと 使用するモデル
単一画像に対する高精度なローカル編集 ("彼女がXを持っている") Flux Kontext
ソースのアイデンティティを高忠実度で保持 Flux Kontext
1〜20枚の画像に対するバッチ編集 Nano Banana Edit
画像内の多言語/埋め込みテキストの編集 GPT Image 2 edit
ソース画像なしでゼロから生成 Flux 2 Klein

ユーザーが明示的に "Flux Kontext" / "kontext" / "BFL Kontext" と言った場合は、ここにルーティングしてください。

前提条件

  1. RunComfy CLInpm i -g @runcomfy/cli
  2. RunComfy アカウントruncomfy login を実行すると、ブラウザでデバイスコードフローが開きます。
  3. CI / コンテナruncomfy login の代わりに RUNCOMFY_TOKEN=<token> を設定します。

エンドポイント + 入力スキーマ

blackforestlabs/flux-1-kontext/pro/edit

フィールド タイプ 必須 デフォルト
prompt string yes 単一の宣言的な編集指示。
image string yes 単一のソース画像 URL (公開されている HTTPS で取得可能)。
aspect_ratio enum no (入力) モデルページでサポートされている W:H オプションから選択。
seed int no バリアント比較のために再利用。

スキーマは意図的に最小限に抑えられています — Kontext はプロンプト + 単一参照に重点を置いています。複数画像またはウェブに基づいた編集の場合は、Nano Banana Edit にルーティングしてください。

呼び出し方法

デフォルト — ローカル編集、その他はすべて保持:

runcomfy run blackforestlabs/flux-1-kontext/pro/edit \
  --input '{
    "prompt": "Keep the person'\''s face, pose, and clothing unchanged. Add an orange umbrella in her left hand and a slight smile.",
    "image": "https://.../portrait.jpg"
  }' \
  --output-dir <absolute/path>

再現可能なバリアントシリーズのためのシード付き:

runcomfy run blackforestlabs/flux-1-kontext/pro/edit \
  --input '{
    "prompt": "Keep the bottle, label, and lighting unchanged. Replace the brand text on the label from \"ALPHA\" to \"AURA\".",
    "image": "https://.../bottle.jpg",
    "seed": 42
  }' \
  --output-dir <absolute/path>

プロンプト — 実際に効果があること

1つの宣言的な指示。 Kontext は、ドキュメントの例のようなプロンプトで威力を発揮します: "She is now holding an orange umbrella and smiling"。命令形、単一の変更。

最初に保持。 "Keep [identity / pose / framing / brand] unchanged." で始めます。次に変更を加えます。モデルは最初に述べられたことを尊重します。

単一参照のみ — 正しいものを選択。 ここでは複数画像へのファンアウトはありません。複数の参照がある場合は、どれがプライマリかを決定し、それを渡します。複数画像フローの場合は、Nano Banana Edit にルーティングしてください。

小さな変更を繰り返す。 Kontext がずれる場合は、複合編集を連続した単一指示パスに分割します (パス 1: 背景を変更、パス 2: 服装を変更)。

アスペクト比 — サポートされている enum から選択。 リストにない値は 422 またはトリミングされます。

アンチパターン:

  • 複合プロンプト ("Aを変更し、Bを追加し、Cを削除") → ドリフト。
  • 複数のソース画像にファンアウトしようとする → 間違ったモデル (Nano Banana Edit を使用)。
  • 受動態で書かれたプロンプト → 信頼性が低い。
  • ソース画像なしで新しい構図を要求する → 間違ったモデル (Flux 2 Klein t2i を使用)。

強みを発揮する場面

ユースケース Flux Kontext を使う理由
単発の高精度なローカル編集 これのために特別に設計されています。高忠実度
ターゲットを絞った変更を通じてソースのアイデンティティを保持 明示的な指示の下で強力な保持
ブランドアセットのテキストまたは色のスワップ 引用符で囲まれたテキスト + 保持の導入がうまく機能します
1つの画像をすばやく反復 短いプロンプト + 単一参照 = 高速な結果ループ

サンプルプロンプト (強力な結果を生み出すことが確認されています)

ページ例:

She is now holding an orange umbrella and smiling

保持主導のブランド編集:

Keep the bottle silhouette, table, and lighting exactly as in the input.
Replace only the brand text on the label, from "ALPHA" to "AURA".
Same font weight, white on black, centered.

構図のマイクロ編集:

Keep the person's face, pose, and clothing unchanged. Add a leather
shoulder bag, dark brown, hanging on the right shoulder.

制限事項

  • 単一のソース画像のみ。 複数画像フローの場合は、Nano Banana Edit (1〜20) を使用してください。
  • 公開されている RunComfy ドキュメントは最小限です — prompt + image + aspect_ratio + seed を超えるスキーマフィールドが存在する可能性があります。最新のフィールドリストについては、モデルページ を確認してください。
  • 複合プロンプトはドリフトします — 連続したパスに分割してください。
  • 多言語/埋め込みテキストの編集には、通常 GPT Image 2 edit が適しています。

終了コード

コード 意味
0 成功
64 不正な CLI 引数
65 不正な入力 JSON / スキーマの不一致
69 上流の 5xx エラー
75 再試行可能: タイムアウト / 429
77 サインインしていないか、トークンが拒否されました

完全なリファレンス: docs.runcomfy.com/cli/troubleshooting

仕組み

このスキルは、スキーマに一致する JSON ボディで runcomfy run blackforestlabs/flux-1-kontext/pro/edit を呼び出します。CLI は https://model-api.runcomfy.net/v1/models/blackforestlabs/flux-1-kontext/pro/edit に POST し、リクエストをポーリングし、結果を取得し、すべての `.runcomfy

(原文がここで切り詰められています)

📜 原文 SKILL.md(Claudeが読む英語/中国語)を展開

Flux Kontext Pro — Pro Pack on RunComfy

runcomfy.com · Model page · GitHub

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.

npx skills add agentspace-so/runcomfy-skills --skill flux-kontext -g

When to pick this model (vs siblings)

You want Use
Single-image precise local edit ("she's now holding X") Flux Kontext
High-fidelity preservation of source identity Flux Kontext
Batch edits across 1–20 images Nano Banana Edit
Edit multilingual / embedded text in image GPT Image 2 edit
Generate from scratch, no source image Flux 2 Klein

If the user said "Flux Kontext" / "kontext" / "BFL Kontext" explicitly, route here regardless.

Prerequisites

  1. RunComfy CLInpm i -g @runcomfy/cli
  2. RunComfy accountruncomfy login opens a browser device-code flow.
  3. CI / containers — set RUNCOMFY_TOKEN=<token> instead of runcomfy login.

Endpoints + input schema

blackforestlabs/flux-1-kontext/pro/edit

Field Type Required Default Notes
prompt string yes Single declarative edit instruction.
image string yes Single source image URL (publicly fetchable HTTPS).
aspect_ratio enum no (input) Pick from supported W:H options on the model page.
seed int no Reuse for variant comparisons.

The schema is intentionally minimal — Kontext leans on prompt + single ref. For multi-image or web-grounded edits, route to Nano Banana Edit.

How to invoke

Default — local edit, preserve everything else:

runcomfy run blackforestlabs/flux-1-kontext/pro/edit \
  --input '{
    "prompt": "Keep the person'\''s face, pose, and clothing unchanged. Add an orange umbrella in her left hand and a slight smile.",
    "image": "https://.../portrait.jpg"
  }' \
  --output-dir <absolute/path>

With seed for reproducible variant series:

runcomfy run blackforestlabs/flux-1-kontext/pro/edit \
  --input '{
    "prompt": "Keep the bottle, label, and lighting unchanged. Replace the brand text on the label from \"ALPHA\" to \"AURA\".",
    "image": "https://.../bottle.jpg",
    "seed": 42
  }' \
  --output-dir <absolute/path>

Prompting — what actually works

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.

Preservation first. Lead with "Keep [identity / pose / framing / brand] unchanged." Then the change. Models honor what's stated up front.

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.

Iterate on small changes. If Kontext drifts, split a compound edit into sequential single-instruction passes (pass 1: change background, pass 2: change clothing).

Aspect ratio — pick from the supported enum. Out-of-list values 422 or crop.

Anti-patterns:

  • Compound prompts ("change A and add B and remove C") → drift.
  • Trying to fan out to multiple source images → wrong model (use Nano Banana Edit).
  • Prompts written in passive voice → less reliable.
  • Asking for novel composition without a source image → wrong model (use Flux 2 Klein t2i).

Where it shines

Use case Why Flux Kontext
Single-shot precise local edit Specifically designed for this; high fidelity
Preserve source identity through targeted change Strong preservation under explicit instruction
Brand-asset text or color swap Quoted text + preservation lead-in works well
Quick iteration on one image Short prompts + single ref = fast result loop

Sample prompts (verified to produce strong results)

Page example:

She is now holding an orange umbrella and smiling

Preservation-led brand edit:

Keep the bottle silhouette, table, and lighting exactly as in the input.
Replace only the brand text on the label, from "ALPHA" to "AURA".
Same font weight, white on black, centered.

Compositional micro-edit:

Keep the person's face, pose, and clothing unchanged. Add a leather
shoulder bag, dark brown, hanging on the right shoulder.

Limitations

  • Single source image only. For multi-image flows, use Nano Banana Edit (1–20).
  • Public RunComfy docs are minimal — schema fields beyond prompt + image + aspect_ratio + seed may exist; check the model page for the latest field list.
  • Compound prompts drift — split into sequential passes.
  • For multilingual / embedded text editing, GPT Image 2 edit usually wins.

Exit codes

code meaning
0 success
64 bad CLI args
65 bad input JSON / schema mismatch
69 upstream 5xx
75 retryable: timeout / 429
77 not signed in or token rejected

Full reference: docs.runcomfy.com/cli/troubleshooting.

How it works

The skill invokes runcomfy run blackforestlabs/flux-1-kontext/pro/edit with a JSON body matching the schema. The CLI POSTs to https://model-api.runcomfy.net/v1/models/blackforestlabs/flux-1-kontext/pro/edit, polls the request, fetches the result, and downloads any .runcomfy.net/.runcomfy.com URL into --output-dir. Ctrl-C cancels the remote request before exit.

Security & Privacy

  • Token storage: runcomfy login writes the API token to ~/.config/runcomfy/token.json with mode 0600 (owner-only read/write). Set RUNCOMFY_TOKEN env var to bypass the file entirely in CI / containers.
  • Input boundary: the user prompt is passed as a JSON string to the CLI via --input. The CLI does NOT shell-expand the prompt; it transmits the JSON body directly to the Model API over HTTPS. No shell injection surface from prompt content.
  • Third-party content: image / mask / video URLs you pass are fetched by the RunComfy model server, not by the CLI on your machine. Treat external URLs as untrusted; image-based prompt injection is a known risk for any image-edit / video-edit model.
  • Outbound endpoints: only model-api.runcomfy.net (request submission) and *.runcomfy.net / *.runcomfy.com (download whitelist for generated outputs). No telemetry, no callbacks.
  • Generated-file size cap: the CLI aborts any single download > 2 GiB to prevent disk-fill from a malicious or runaway model output.