We introduce
NextStep-1
, a 14B autoregressive model paired with a 157M flow matching head, training on discrete text tokens and continuous image tokens with next-token prediction objectives.
NextStep-1
achieves state-of-the-art performance for autoregressive models in text-to-image generation tasks, exhibiting strong capabilities in high-fidelity image synthesis.
ENV Preparation
To avoid potential errors when loading and running your models, we recommend using the following settings:
from PIL import Image
from transformers import AutoTokenizer, AutoModel
from models.gen_pipeline import NextStepPipeline
from utils.aspect_ratio import center_crop_arr_with_buckets
HF_HUB = "stepfun-ai/NextStep-1-Large-Edit"# load model and tokenizer
tokenizer = AutoTokenizer.from_pretrained(HF_HUB, local_files_only=True, trust_remote_code=True,force_download=True)
model = AutoModel.from_pretrained(HF_HUB, local_files_only=True, trust_remote_code=True,force_download=True)
pipeline = NextStepPipeline(tokenizer=tokenizer, model=model).to(device=f"cuda")
# set prompts
positive_prompt = None
negative_prompt = "Copy original image."
example_prompt = "<image>" + "Add a pirate hat to the dog's head. Change the background to a stormy sea with dark clouds. Include the text 'NextStep-Edit' in bold white letters at the top portion of the image."# load and preprocess reference image
IMG_SIZE = 512
ref_image = Image.open("./assets/origin.jpg")
ref_image = center_crop_arr_with_buckets(ref_image, buckets=[IMG_SIZE])
# generate edited image
image = pipeline.generate_image(
example_prompt,
images=[ref_image],
hw=(IMG_SIZE, IMG_SIZE),
num_images_per_caption=1,
positive_prompt=positive_prompt,
negative_prompt=negative_prompt,
cfg=7.5,
cfg_img=2,
cfg_schedule="constant",
use_norm=True,
num_sampling_steps=50,
timesteps_shift=3.2,
seed=42,
)[0]
image.save(f"./assets/output.png")
Citation
If you find NextStep useful for your research and applications, please consider starring this repository and citing:
@misc{nextstep_1,
title={NextStep-1: Toward Autoregressive Image Generation with Continuous Tokens at Scale},
author={NextStep Team},
year={2025},
url={https://github.com/stepfun-ai/NextStep-1},
}
Runs of stepfun-ai NextStep-1-Large-Edit on huggingface.co
125
Total runs
0
24-hour runs
7
3-day runs
16
7-day runs
84
30-day runs
More Information About NextStep-1-Large-Edit huggingface.co Model
NextStep-1-Large-Edit huggingface.co is an AI model on huggingface.co that provides NextStep-1-Large-Edit's model effect (), which can be used instantly with this stepfun-ai NextStep-1-Large-Edit model. huggingface.co supports a free trial of the NextStep-1-Large-Edit model, and also provides paid use of the NextStep-1-Large-Edit. Support call NextStep-1-Large-Edit model through api, including Node.js, Python, http.
NextStep-1-Large-Edit huggingface.co is an online trial and call api platform, which integrates NextStep-1-Large-Edit's modeling effects, including api services, and provides a free online trial of NextStep-1-Large-Edit, you can try NextStep-1-Large-Edit online for free by clicking the link below.
stepfun-ai NextStep-1-Large-Edit online free url in huggingface.co:
NextStep-1-Large-Edit is an open source model from GitHub that offers a free installation service, and any user can find NextStep-1-Large-Edit on GitHub to install. At the same time, huggingface.co provides the effect of NextStep-1-Large-Edit install, users can directly use NextStep-1-Large-Edit installed effect in huggingface.co for debugging and trial. It also supports api for free installation.
NextStep-1-Large-Edit install url in huggingface.co: