SuperAPI AI Directory

ICEdit

Editing

Open website

About this tool

ICEdit (In-Context Edit) is an open-source project for instruction-based image editing, and its paper was accepted at NeurIPS 2025. Its approach is to perform instruction-based editing through in-context generation on a large-scale diffusion Transformer. The official description says it can be achieved with only a single LoRA, with training data amounting to about 0.5% of previous SOTA methods (the repository title says 0.1%), parameter count about 1%, and it claims to surpass GPT-4o in character ID preservation, taking about 9 seconds to process one image.

Main capabilities:

  • Text-instruction-driven image editing, supporting multi-turn continuous editing and single-turn editing.
  • Supports operations such as object addition, color attribute modification, style transfer, and background replacement; the official explanation says the success rate for object removal is relatively low because the removal dataset used is not of high quality.
  • The official description says it is comparable to or even better than commercial models such as Gemini and GPT-4o in character ID preservation and instruction following.

Usage:

  • For installation, it provides Conda environment configuration, pretrained weight download, bash inference scripts, a Gradio demo, and a Windows one-click package (community-made, ready to use after extraction, already quantized, taking about 14GB of space, and supporting 50-series GPUs).
  • For ComfyUI, an official workflow is provided, which can be installed via ComfyUI Manager's Install via Git URL, with the URL being https://github.com/hayd-zju/ICEdit-ComfyUI-official。官方工作流节点已内置固定提示前缀,用户只需输入编辑指令,并附带高清细化模块,总显存占用约 14GB. There is also a community-made ComfyUI-nunchaku workflow, which is said to run with only 4GB of VRAM and supports high-definition refinement and FLUX Redux.
  • You need to first add the fixed pre-prompt: "A diptych with two side-by-side images of the same scene. On the right, the scene is exactly the same as on the left but {instruction}", otherwise poor results may be obtained (the Hugging Face Gradio demo has this prompt built in).
  • The input image width must be resized to 512 pixels (height is unrestricted); non-512 widths will be automatically scaled.
  • Editing a 512×768 image requires about 35GB of VRAM; on 24GB of VRAM (such as an RTX 3090), the --enable-model-cpu-offload parameter can be added; with about 10GB of VRAM, GGUF models such as FLUX.1-Fill-dev-gguf and t5-v1_1-xxl-encoder-gguf can be downloaded to run it.
  • If the results are not ideal, you can change the --seed parameter and retry; the official description says that using VLM-based Inference-time Scaling can significantly improve the results.
  • When using the official ComfyUI workflow, Normal LoRA should be used, not MoE-LoRA, because the latter cannot be loaded correctly by ComfyUI's LoRA loader.
  • If you can connect to Hugging Face, you do not need to download the weights; otherwise, you need to download the weights locally, including Flux.1-fill-dev and ICEdit-normal-LoRA; ICEdit-MoE-LoRA has been temporarily withdrawn due to collaboration permission issues, and the official statement says that what is currently released is ordinary LoRA, which still has strong performance. If you urgently need the original MoE LoRA weights, you can contact the authors by email.

Applicable scenarios and limitations:

  • Suitable for research and personal use scenarios such as instruction-based image editing, multi-turn editing, style transfer, and character ID preservation.
  • The base model FLUX itself does not support a wide range of styles; style transfer accounts for a relatively large proportion of the training data, and the model sometimes unexpectedly changes the user's art style.
  • The training data is mainly realistic images, so for non-realistic images such as anime and blurry images,the editing success rate decreases and the final image quality may be affected.
  • The project may not be used for commercial purposes; see LICENSE for details. The official project page is https://river-zhang.github.io/ICEdit-gh-pages/ .
  • The current model is the version used in the paper's experiments, trained with only 4 A800 GPUs (total batch_size = 2 x 2 x 4 = 16). The official statement says that in the future the dataset will be enhanced and the scale expanded to release a stronger model.
  • Other details: the project once ranked 2nd on the Hugging Face Space overall/weekly trending list; Bilibili and YouTube tutorials, Gallery sharing, training code, etc. are provided, and specific pricing information is not yet available.