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.
Open any document, then go to File → Scripts → FluxKontext.
The first time you open the script, the Settings will open first. Paste your Replicate API token.
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).
Paste your Replicate API token in SettingsMain window of the plugin
4. Run your first AI edit
Make a selection with any Photoshop selection tool.
Activate the script (File → Scripts → FluxKontext).
Type a short, specific prompt that describes what to change and what to keep.
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.