AUTOMATIC1111
A web interface for Stable Diffusion
A web interface for Stable Diffusion
AUTOMATIC1111 (A1111) is an open-source web-based user interface for the Stable Diffusion model. Through an intuitive GUI in the browser, you can use various image generation features such as text-to-image (txt2img), image-to-image (img2img), and inpainting. It is the most popular Stable Diffusion frontend, with more than 180,000 stars on GitHub.
Shortly after Stable Diffusion was released in August 2022, a developer known as AUTOMATIC1111 (a nickname) started the project. It was initially a simple WebUI, but with active contributions from the community, numerous features such as ControlNet, LoRA, and VAE swapping were added, and it became a de facto standard tool for AI image generation.
Key features include prompt weight adjustment (emphasis with parentheses), negative prompts, parameter comparison through X/Y/Z Plot, and feature expansion through the Extensions system. It is built on the Gradio framework, runs as a local server, and also supports an API mode.
Creators, game developers, marketers, and others actively use it for prototyping and asset generation. With an NVIDIA RTX 3060 (12GB VRAM) or better, a 512x512 image can be generated in under 5 seconds, and applying xformers optimization can reduce VRAM usage by up to 40%.
# AUTOMATIC1111 API를 사용한 이미지 생성
import requests
import base64
from PIL import Image
import io
# A1111 WebUI가 --api 플래그로 실행 중이어야 함
url = "http://127.0.0.1:7860"
# txt2img 요청
payload = {
"prompt": "a beautiful sunset over mountains, highly detailed, 4k",
"negative_prompt": "blurry, low quality, distorted",
"steps": 25,
"sampler_name": "DPM++ 2M Karras",
"width": 512,
"height": 512,
"cfg_scale": 7,
"seed": -1 # -1은 랜덤 시드
}
response = requests.post(
f"{url}/sdapi/v1/txt2img",
json=payload
)
# 응답에서 이미지 추출
result = response.json()
image_data = base64.b64decode(result['images'][0])
image = Image.open(io.BytesIO(image_data))
image.save("generated_image.png")
print(f"이미지 생성 완료! Seed: {result['info']}")
"It seems efficient to quickly generate concept art drafts with A1111, and once a promising direction emerges, pass them to the illustrator as a reference. You can also set poses with ControlNet."
"I think it would be good to install A1111 and generate social media images in-house. It's cheaper than a Midjourney subscription, and commercial use is also unrestricted. However, we'll probably need the development team's help with the initial setup."
"If you get a VRAM shortage error, try adding the --medvram flag in webui-user.bat. If that still doesn't work, you can use --lowvram or enable xformers."
A minimum of 8GB VRAM is required, and 12GB or more is recommended. It can run on a CPU alone, but it takes several minutes per image, making it impractical. If you plan to use it without a GPU, consider a cloud service.
The licenses of the Stable Diffusion base models (SD 1.5, SDXL) and custom models (such as those on Civitai) are different. Be sure to check each model's license before commercial use.
Updating with git pull may cause compatibility issues with extensions. Before important work, back up your current version, and check the CHANGELOG before updating.