VisualCloze is a general-purpose image generation framework that learns through visual context, aiming to address the inefficiency of traditional task-specific models under diverse needs. This framework not only supports multiple internal tasks but can also generalize to unseen tasks, using visual examples to help the model understand the task. This approach leverages the strong generative priors of advanced image inpainting models, providing strong support for image generation.