atelier-generator
A comprehensive toolkit for state-of-the-art AI image generation compatible with all devices.
Installation
pip install atelier-generator
Key Features
- 🎨 Image Generation
- Text-to-Image Generation
- Image Variations
- Structural & Facial Guidance
- Style Transfer & ControlNet
- 🛠️ Image Editing
- Face Enhancement
- Background Removal
- Image Upscaling
- Object Erasing & Inpainting
- ⚡ Advanced Features
- RT Image Generation
- Interactive Canvas
- Image Outpainting
- Image Analysis
Usage
Python Library
from atelier_generator import AtelierGenerator
# Initialize
atelier = AtelierGenerator(
mode="default", # Mode (default/webui/api)
gradio=False, # Enable Gradio support
timeout=180, # Request timeout (seconds)
log_on=True, # Enable logging
log_to="logs" # Directory to save logs
save_to="outputs", # Output directory
save_as="webp" # Output format (png/webp/jpg/pil)
wm_on=True # Enable watermarked images
wm_text="My Watermark" # Custom watermark text
)
# Image generation
result = atelier.image_generate(
prompt="a beautiful landscape",
negative_prompt="", # Optional negative prompt
model_name="flux-turbo", # Model selection
image_size="1:1", # Output size ratio
lora_svi=None, # LoRA SVI preset
lora_flux=None, # LoRA Flux preset
image_seed=0, # Generation seed
style_name=None # Style preset
enhance_prompt=True # Enable prompt enhancer
)
# Transparent image generation
result = atelier.image_transparent(
prompt="a beautiful sunset",
negative_prompt="", # Optional negative prompt
image_size="1:1", # Output size ratio
image_seed=0, # Generation seed
style_name=None, # Style preset
enhance_prompt=True, # Enable prompt enhancer
transparency=True # Enable transparency
)
# Image variation
result = atelier.image_variation(
image="source.jpg", # Source image
prompt="convert to anime",
negative_prompt="", # Optional negative prompt
model_name="flux-turbo", # Model selection
image_size="1:1", # Output size ratio
strength="high", # Variation strength (low/medium/high)
lora_svi=None, # LoRA SVI preset
lora_flux=None, # LoRA Flux preset
image_seed=0, # Generation seed
style_name=None # Style preset
enhance_prompt=True # Enable prompt enhancer
)
# Structural guidance
result = atelier.image_structure(
image="structure.jpg", # Source image
prompt="enhance details",
negative_prompt="", # Optional negative prompt
model_name="svi-realistic", # Model selection
image_size="1:1", # Output size ratio
strength="high", # Guide strength (low/medium/high)
lora_svi=None, # LoRA SVI preset
image_seed=0, # Generation seed
style_name=None # Style preset
enhance_prompt=True # Enable prompt enhancer
)
# Facial guidance
result = atelier.image_facial(
image="face.jpg", # Source image
prompt="enhance facial features",
negative_prompt="", # Optional negative prompt
model_name="svi-realistic", # Model selection
image_size="1:1", # Output size ratio
strength="high", # Guide strength (low/medium/high)
lora_svi=None, # LoRA SVI preset
image_seed=0, # Generation seed
style_name=None, # Style preset
enhance_prompt=True # Enable prompt enhancer
)
# Style guidance
result = atelier.image_style(
image="style.jpg", # Source image
prompt="apply a vintage style",
negative_prompt="", # Optional negative prompt
model_name="svi-realistic", # Model selection
image_size="1:1", # Output size ratio
strength="high", # Guide strength (low/medium/high)
lora_svi=None, # LoRA SVI preset
image_seed=0, # Generation seed
style_name=None, # Style preset
enhance_prompt=True # Enable prompt enhancer
)
# Image editing
result = atelier.image_enhance(
image="photo.jpg",
prompt="enhance quality", # Optional prompt
negative_prompt="", # Optional negative prompt
creativity=0.3, # Creativity level (0.0-1.0)
resemblance=1.0, # Resemblance level (0.0-1.0)
hdr=0.0, # HDR strength (0.0-1.0)
style_name=None # Style preset
)
result = atelier.image_inpaint(
image="image.jpg",
mask="mask.jpg", # Mask image
prompt="fill with trees",
style_name=None # Style preset
)
result = atelier.image_erase(
image="image.jpg",
mask="mask.jpg" # Mask image
)
result = atelier.image_bgremove(
image="photo.jpg"
)
result = atelier.image_upscale(
image="small.jpg"
)
result = atelier.image_outpaint(
image="image.jpg",
image_size="16:9" # Output size ratio
)
# Real-time features
result = atelier.realtime_generate(
prompt="quick sketch",
negative_prompt="", # Optional negative prompt
image_size="1:1", # Output size ratio
lora_rt=None, # LoRA RT preset
image_seed=0, # Generation seed
style_name=None # Style preset
)
result = atelier.realtime_canvas(
image="canvas.jpg", # Source image
prompt="enhance drawing",
negative_prompt="", # Optional negative prompt
lora_rt=None, # LoRA RT preset
strength=0.9, # Creativity level (0.0-1.0)
image_seed=0, # Generation seed
style_name=None # Style preset
)
# ControlNet features
result = atelier.image_controlnet(
image="sketch.jpg",
prompt="convert to art",
negative_prompt="", # Optional negative prompt
model_name="sd-toon", # Model selection
controlnet="scribble", # Control type (scribble/pose/line-art/depth/canny)
strength=70, # Control strength (0-100)
cfg=9.0, # Prompt guidance scale
image_seed=0, # Generation seed
style_name=None # Style preset
)
# Face enhancement
result = atelier.face_gfpgan(
image="face.jpg",
model_version="1.3" # Model version (1.2/1.3)
)
result = atelier.face_codeformer(
image="face.jpg"
)
# Image analysis
caption = atelier.image_caption(
image="photo.jpg"
)
prompt = atelier.image_prompt(
image="photo.jpg"
)
ratio, resolution, path = atelier.size_checker(
image="photo.jpg"
)
Web UI
Start the Gradio web interface:
atelier = AtelierGenerator(mode="webui")
# OR
atelier = AtelierGenerator()
atelier.start_wui(
host="localhost", # Server host
port=7860, # Server port
browser=True, # Launch browser
upload_size="4MB", # Max upload size
public=False, # Enable public URL
limit=10, # Max concurrent requests
quiet=False # Quiet mode
)
REST API
Start the Flask API server:
atelier = AtelierGenerator(mode="api")
# OR
atelier = AtelierGenerator()
atelier.start_api(
host="0.0.0.0", # Server host
port=5000, # Server port
debug=False # Enable debug mode
)
API Endpoints
Image Generation:
POST /v1/api/image/generate- Generate images from textPOST /v1/api/image/variation- Create image variationsPOST /v1/api/image/structure- Apply structural guidancePOST /v1/api/image/facial- Apply facial guidancePOST /v1/api/image/style- Apply style transferPOST /v1/api/image/controlnet- Apply ControlNet
Image Editing:
POST /v1/api/image/enhance- Enhance image qualityPOST /v1/api/image/inpaint- Fill masked areasPOST /v1/api/image/erase- Remove objectsPOST /v1/api/image/upscale- Upscale imagePOST /v1/api/image/bgremove- Remove backgroundPOST /v1/api/image/outpaint- Extend image borders
Face Enhancement:
POST /v1/api/face/gfpgan- GFPGAN face restorationPOST /v1/api/face/codeformer- CodeFormer face restoration
Real-time Features:
POST /v1/api/realtime/generate- Real-time generationPOST /v1/api/realtime/canvas- Interactive canvas
Image Analysis:
POST /v1/api/image/caption- Generate image captionPOST /v1/api/image/prompt- Convert image to promptPOST /v1/api/image/size- Get image aspect ratio and resolution
Data Endpoints:
GET /v1/api/get/models- List all available modelsGET /v1/api/get/models/guide- List guidance modelsGET /v1/api/get/models/flux- List Flux modelsGET /v1/api/get/models/svi- List SVI modelsGET /v1/api/get/models/sdxl- List SDXL modelsGET /v1/api/get/models/remix- List Remix modelsGET /v1/api/get/lora/flux- List Flux LoRA presetsGET /v1/api/get/lora/svi- List SVI LoRA presetsGET /v1/api/get/lora/rt- List RT LoRA presetsGET /v1/api/get/styles- List style presetsGET /v1/api/get/controlnets- List ControlNet typesGET /v1/api/get/gfpgan- List GFPGAN versionsGET /v1/api/get/size- List available image sizesGET /v1/api/get/guide/variation- List variation strength presetsGET /v1/api/get/guide/structure- List structure guidance presetsGET /v1/api/get/guide/facial- List facial guidance presetsGET /v1/api/get/guide/style- List style guidance presets
Configuration
Output Formats
webp(default) - High quality, small sizepng- Lossless qualityjpg- Standard compressedpil- PIL Image object
Available Models & Presets
# Get available options
models = atelier.list_atr_models # All models
sizes = atelier.list_atr_size # Image sizes
styles = atelier.list_sty_styles # Style presets
svi_lora = atelier.list_atr_lora_svi # SVI LoRA models
flux_lora = atelier.list_atr_lora_flux # Flux LoRA models
rt_lora = atelier.list_atr_lora_rt # RT LoRA models
License
See LICENSE for details.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
atelier_generator-25.3.4.tar.gz
(379.1 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file atelier_generator-25.3.4.tar.gz.
File metadata
- Download URL: atelier_generator-25.3.4.tar.gz
- Upload date:
- Size: 379.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.10.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e7730b90b52ea3977864a9c1a2f6bf8d9ef2bb90ca959012a15db40e7a0c46b7
|
|
| MD5 |
e67118be4b4163801a9f4df5d3c3e50e
|
|
| BLAKE2b-256 |
0d93d0054efd14f5ac9b0187420f36dbee172243221c12595ac8c1c905b0abfc
|
File details
Details for the file atelier_generator-25.3.4-py3-none-any.whl.
File metadata
- Download URL: atelier_generator-25.3.4-py3-none-any.whl
- Upload date:
- Size: 377.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.10.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
eda63c8a0d2a6e6736d2ce5bd3ec68281a31d9852bbc6c49b15776085c8b43c0
|
|
| MD5 |
641d38fe9f730cf66a70673f9d7b4814
|
|
| BLAKE2b-256 |
f150fee0d3eefca8eda062baaf852f922b978ea8ab28dee8ab068ae9fa6d0673
|