Try Flux Kontext in Photoshop

This custom-made Flux Kontext JSX-plugin lets you create context-aware AI edits directly inside Photoshop, based on your selection and a short prompt. Your selection is sent to Replicate’s Flux Kontext models (Pro or Max), and the result is placed back as a new layer with a mask, keeping lighting, shadows, and materials consistent.

Read the quick start guide below the download button for extra information on how to install and use the plugin. The download button links to my pCloud server; simply click Download to get the file.

Update 14 August 2025: Tested on macOS and since today also on Windows, so the plugin should work well on both operating systems. Installation and use are at your own risk.

Download the plugin here

Enjoying the plugin? Buy me a coffee to keep it going!

Flux Kontext Photoshop Plugin — Quick Start

This guide shows how to set up Replicate, add credit, get your API token, install the Flux Kontext plugin in Photoshop, and run your first AI edit.


1. Set up Replicate

1.1 Go to Replicate

Visit replicate.com and click Sign in.

Replicate homepage
Replicate homepage

1.2 Sign in with GitHub

Click Sign in with GitHub. If you do not have a GitHub account yet, create one during the login process.

Sign in with GitHub on Replicate
Sign in with GitHub
GitHub login or create account
GitHub login or create account

1.3 Open Account settings

After signing in, click your profile picture and choose Account settings.

Account settings menu in Replicate
Account settings menu

1.4 Add credit

In Account settings open Billing. Click Add credit and add at least $10.

Current costs per image: about $0.04 for Flux Kontext Pro and $0.08 for Flux Kontext Max. A ten dollar deposit is plenty to test the plugin.

Billing overview in Replicate
Billing overview
Add credit dialog in Replicate
Add credit

1.5 Disable auto reload

Click Manage auto reload and make sure auto reload is disabled to avoid unwanted charges.

Auto reload settings in Replicate billing
Auto reload settings

1.6 Create an API token

In Account settings open API tokens. Create a new token and copy it. You will paste this token in Photoshop later.

API tokens screen with copy icon
Create and copy your API token

2. Install the plugin in Photoshop

  1. Download FluxKontext.jsx from the link at the top of this page.
  2. Copy it to your Photoshop Scripts folder:
    • macOS: Applications → Adobe Photoshop → Presets → Scripts
    • Windows: Program Files → Adobe → Adobe Photoshop → Presets → Scripts
  3. Restart Photoshop.
Photoshop File → Scripts → FluxKontext menu
Open the script in Photoshop

3. First time setup

  1. Open any document, then go to File → Scripts → FluxKontext.
  2. The first time you open the script, the Settings will open first. Paste your Replicate API token.
  3. When you're done, choose defaults: model Pro or Max (more expensive, better results with type), output mode (output to new document), optional Upscale (for better quality).
Flux Kontext Settings dialog in Photoshop
Paste your Replicate API token in Settings
Flux Kontext main window with model, prompt, and options
Main window of the plugin

4. Run your first AI edit

  1. Make a selection with any Photoshop selection tool.
  2. Activate the script (File → Scripts → FluxKontext).
  3. Type a short, specific prompt that describes what to change and what to keep.
  4. Click Generate. The result appears as a new layer with a mask, or in a new document depending on your settings.

5. Tips

  • I assigned a keyboard shortcut to the script. Go to Edit → Keyboard Shortcuts, find File > Scripts > FluxKontext, apply a shortcut (I used Cmd-Shift-K on macOS).
  • Keep prompts short and specific, mention material, color, and lighting.
  • Make the selection slightly larger, or softer with the Selection Brush, to give the model more context.
  • Try both Pro and Max models to see which fits your image best. Overall I think Pro is great for most use cases. Max can work better on typography.
  • Use Upscale when the returned patch feels too small or soft.

Let's Connect!

LinkedIn: linkedin.com/in/robdewinter
Instagram: instagram.com/robdewinter1
Facebook: facebook.com/robdewinter1
YouTube: youtube.com/robdewintercc

DWM Trainingen
, my creative training company: dwmtrainingen.nl