meituan-longcat / LongCat-Image-Edit

huggingface.co
Total runs: 20.1K
24-hour runs: -8
7-day runs: -124
30-day runs: 113
Model's Last Updated: December 16 2025
image-to-image

Introduction of LongCat-Image-Edit

Model Details of LongCat-Image-Edit

LongCat-Image

Introduction

We introduce LongCat-Image-Edit , the image editing version of Longcat-Image. LongCat-Image-Edit supports bilingual (Chinese-English) editing, achieves state-of-the-art performance among open-source image editing models, delivering leading instruction-following and image quality with superior visual consistency.

LongCat-Image-Edit model
Key Features
  • 🌟 Superior Precise Editing : LongCat-Image-Edit supports various editing tasks, such as global editing, local editing, text modification, and reference-guided editing. It has strong semantic understanding capabilities and can perform precise editing according to instructions.
  • 🌟 Consistency Preservation : LongCat-Image-Edit has strong consistency preservation capabilities, specifically scrutinizes whether attributes in non-edited regions, such as layout, texture, color tone, and subject identity, remain invariant unless targeted by the instruction, is well demonstrated in multi-turn editing.
  • 🌟 Strong Benchmark Performance : LongCat-Image-Edit achieves state-of-the-art (SOTA) performance in image editing tasks while significantly improving model inference efficiency, especially among open-source image editing models.
🎨 Showcase
LongCat-Image-Edit gallery.
Quick Start
Installation

Clone the repo:

git clone --single-branch --branch main https://github.com/meituan-longcat/LongCat-Image
cd LongCat-Image

Install dependencies:

# create conda environment
conda create -n longcat-image python=3.10
conda activate longcat-image

# install other requirements
pip install -r requirements.txt
python setup.py develop
Run Image Editing
import torch
from PIL import Image
from transformers import AutoProcessor
from longcat_image.models import LongCatImageTransformer2DModel
from longcat_image.pipelines import LongCatImageEditPipeline

device = torch.device('cuda')
checkpoint_dir = './weights/LongCat-Image-Edit'
text_processor = AutoProcessor.from_pretrained( checkpoint_dir, subfolder = 'tokenizer'  )
transformer = LongCatImageTransformer2DModel.from_pretrained( checkpoint_dir , subfolder = 'transformer', 
    torch_dtype=torch.bfloat16, use_safetensors=True).to(device)

pipe = LongCatImageEditPipeline.from_pretrained(
    checkpoint_dir,
    transformer=transformer,
    text_processor=text_processor,
)
pipe.to(device, torch.bfloat16)

generator = torch.Generator("cpu").manual_seed(43)
img = Image.open('assets/test.png')
prompt = '将猫变成狗'
image = pipe(
    img,
    prompt,
    negative_prompt='',
    guidance_scale=4.5,
    num_inference_steps=50,
    num_images_per_prompt=1,
    generator=generator
).images[0]

image.save('./edit_example.png')

Runs of meituan-longcat LongCat-Image-Edit on huggingface.co

20.1K
Total runs
-8
24-hour runs
18
3-day runs
-124
7-day runs
113
30-day runs

More Information About LongCat-Image-Edit huggingface.co Model

More LongCat-Image-Edit license Visit here:

https://choosealicense.com/licenses/apache-2.0

LongCat-Image-Edit huggingface.co

LongCat-Image-Edit huggingface.co is an AI model on huggingface.co that provides LongCat-Image-Edit's model effect (), which can be used instantly with this meituan-longcat LongCat-Image-Edit model. huggingface.co supports a free trial of the LongCat-Image-Edit model, and also provides paid use of the LongCat-Image-Edit. Support call LongCat-Image-Edit model through api, including Node.js, Python, http.

meituan-longcat LongCat-Image-Edit online free

LongCat-Image-Edit huggingface.co is an online trial and call api platform, which integrates LongCat-Image-Edit's modeling effects, including api services, and provides a free online trial of LongCat-Image-Edit, you can try LongCat-Image-Edit online for free by clicking the link below.

meituan-longcat LongCat-Image-Edit online free url in huggingface.co:

https://huggingface.co/meituan-longcat/LongCat-Image-Edit

LongCat-Image-Edit install

LongCat-Image-Edit is an open source model from GitHub that offers a free installation service, and any user can find LongCat-Image-Edit on GitHub to install. At the same time, huggingface.co provides the effect of LongCat-Image-Edit install, users can directly use LongCat-Image-Edit installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

LongCat-Image-Edit install url in huggingface.co:

https://huggingface.co/meituan-longcat/LongCat-Image-Edit

Url of LongCat-Image-Edit

Provider of LongCat-Image-Edit huggingface.co

meituan-longcat
ORGANIZATIONS

Other API from meituan-longcat