Step1X-Edit is an advanced open-source image editing model designed to provide performance comparable to closed-source models such as GPT-4o and Gemini 2 Flash.
Key Capabilities
The model uses a multimodal large language model to process reference images and user editing instructions, extract latent embeddings, and integrate with a diffusion image decoder to obtain the target image. To train the model, the project built a data generation pipeline to produce a high-quality dataset. To evaluate the results, the team developed GEdit-Bench—a new benchmark based on real user instructions. Experimental results show that Step1X-Edit substantially outperforms existing open-source baselines on GEdit-Bench and approaches the performance of leading proprietary models.
Versions and Feature Updates
- April 2025: Released inference code and model weights (ModelScope and HuggingFace), provided an online demo, released evaluation code and benchmark data, and open-sourced the technical report.
- April 2025: Community-supported release of FP8 model weights; ComfyUI plugin launched.
- May 2025: Support for LoRA fine-tuning on a single 24GB GPU, and release of a LoRA for repairing anime characters' hands.
- June 2025: Support for TeaCache and parallel inference.
- July 2025: Updated to step1x-edit-v1p1, adding support for text-to-image (T2I) generation tasks and improving image editing quality and instruction-following performance.
- September 2025: Released step1x-edit-v1p2-preview, adding reasoning editing capabilities and performing better on GEdit-Bench and KRIS-Bench.
- November 2025: Released Step1X-Edit-v1p2 (referred to as ReasonEdit-S in the paper), a native reasoning editing model that performs better on KRIS-Bench and GEdit-Bench, with a technical report provided.
- December 2025: RegionE brings a 2.5x speedup to Step1X-Edit inference with no loss of accuracy, requiring only five lines of code.
- April 2026: Step Image Edit 2 launched, a lightweight model that can complete image generation and editing tasks within 2 seconds, providing a real-time interactive creative experience, available to try via the StepFun open platform.
Usage
Ensure transformers==4.55.0(tested on this version). Install the diffusers package locally according to the model version you want to use. Usage examples include versions such as Step1X-Edit-v1p2, v1p2-preview, and v1p1.
Advanced usage: Use the original Step1X-Edit model to demonstrate advanced usage; other versions may have different inference workflows.
- Environment requirements: Tested with torch==2.3.1 and torch==2.5.1 with cuda-12.1. Install flash-attn; a script is provided to help find a prebuilt wheel suitable for your system.
- Reducing GPU memory usage: The default script uses non-quantized weights. You can set the --quantized flag to quantize the weights to fp8, or set the --offload flag to offload some modules to the CPU. Using a GPU with 80GB of memory is recommended for better generation quality and efficiency.
- Multi-GPU inference: You can change the number of GPUs, the xDiT configuration (--ulysses_degree or --ring_degree or --cfg_degree), and whether to enable TeaCache acceleration (--teacache). The default TeaCache threshold of 0.2 achieves a good balance between efficiency and performance. xDiT uses both CFG parallelism and Ring Attention with 4 GPUs, and only CFG parallelism with 2 GPUs.
- Training: The script ./scripts/finetuning.sh shows how to fine-tune Step1X-Edit. With the default strategy, you can fine-tune at 1024 resolution on a single 24GB GPU. Custom datasets are organized by ./library/data_configs/step1x_edit.toml; metadata_file contains all training samples, including the absolute path of the source image, the absolute path of the target image, and the instruction, and should be a json file containing dictionaries. When using LoRA inference, add --lora <path to your lora weights> in inference.py.
Applicable Scenarios
Suitable for scenarios such as image editing, text-to-image generation, complex instruction editing, and anime character hand repair, supporting multiple usage methods such as online demo, ComfyUI plugin, FP8 weights, and LoRA fine-tuning.
LimModel outputs are entirely determined by user input and operations. The development team and open-source project are not responsible for any results or consequences arising from use. Step1X-Edit is licensed under the Apache License 2.0, and the license file can be found in the corresponding GitHub and HuggingFace repositories.
Community Contributions
You are welcome to share your use of Step1X-Edit in your projects. The community has provided contributions such as FP8 model weights, ComfyUI plugins, and training scripts.