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.
Metadata
Release files for atelier-generator 25.3.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| atelier_generator-25.3.4.tar.gz | 379.1 kB | Without provenance | Details for atelier_generator-25.3.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| atelier_generator-25.3.4-py3-none-any.whl | Python 3 | none | any | Details for atelier_generator-25.3.4-py3-none-any.whl |
Total release size: 756.3 kB
Release files / atelier_generator-25.3.4.tar.gz
| Download URL | atelier_generator-25.3.4.tar.gz |
|---|---|
| Size | 379.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e7730b90b52ea3977864a9c1a2f6bf8d9ef2bb90ca959012a15db40e7a0c46b7
|
|
BLAKE2b-256 checksum How to use checksums |
0d93d0054efd14f5ac9b0187420f36dbee172243221c12595ac8c1c905b0abfc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.10.11
|
Release files / atelier_generator-25.3.4-py3-none-any.whl
| Download URL | atelier_generator-25.3.4-py3-none-any.whl |
|---|---|
| Size | 377.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
eda63c8a0d2a6e6736d2ce5bd3ec68281a31d9852bbc6c49b15776085c8b43c0
|
|
BLAKE2b-256 checksum How to use checksums |
f150fee0d3eefca8eda062baaf852f922b978ea8ab28dee8ab068ae9fa6d0673
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.10.11
|
Security for atelier-generator 25.3.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.