Skip to main content

dalle-generator

An image generator that focuses on prompt adherence and unique aesthetics.

Installation

pip install dalle-generator

Key Features

  • 🎨 Image Generation
    • Text-to-Image Generation
    • Multiple Image Output
    • Smart Prompt Handling
  • 🔄 Flexible Integration
    • Interactive Web UI
    • REST API Server
    • Python Library
  • 💾 Output Management
    • Multiple Output Formats
    • Date-based Organization
    • Automatic File Naming

Usage

Python Library

from dalle_generator import DalleGenerator

# Initialize
client = DalleGenerator(
    mode="default",       # Mode (default/webui/api)
    log_on=True,          # Enable logging
    log_to=None,          # Log directory
    save_to="outputs",    # Output directory
    save_as="webp"        # Output format (webp/jpg/pil)
)

# Generate images
results = client.image_generate(
    prompt="a beautiful landscape"
)

# Returns list of file paths or PIL Images if save_as='pil'

Web UI

Start the Gradio web interface:

client = DalleGenerator(mode="webui")
# OR
client.start_webui(
    host="0.0.0.0",    # 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:

client = DalleGenerator(mode="api")
# OR
client.start_api(
    host="0.0.0.0",    # Server host
    port=5734,         # Server port
    debug=False        # Enable debug mode
)

API Endpoints

  • POST /v1/api/image/generate

Configuration

Output Formats

  • webp - High quality, small size
  • jpg - Standard compressed
  • pil - PIL Image object

Output Structure

outputs/
└── YYYY-MM-DD/
    ├── YYYYMMDD_HHMMSS_UUID8_1.webp
    ├── YYYYMMDD_HHMMSS_UUID8_2.webp
    └── ...

License

See LICENSE for details.

Release files for dalle-generator 25.3.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dalle-generator 25.3.5
File Size Uploaded
dalle_generator-25.3.5.tar.gz 25.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for dalle-generator 25.3.5
File Interpreter ABI Platform
dalle_generator-25.3.5-py3-none-any.whl Python 3 none any Details

Total release size: 51.0 kB

Release files / dalle_generator-25.3.5.tar.gz

Download URL dalle_generator-25.3.5.tar.gz
Size 25.3 kB
Tags Source
SHA-256 checksum
How to use checksums
724ad9425f811e86d89505e65eba5ed2a7222b3a2c1090956dcce6ebff952d95
BLAKE2b-256 checksum
How to use checksums
44cd48df870441273f97fc0940b466b02b1856fccbb8b4d68ac7faaeada14e59
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.10.11

Release files / dalle_generator-25.3.5-py3-none-any.whl

Download URL dalle_generator-25.3.5-py3-none-any.whl
Size 25.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
53fe4ed834f25f0d1fbd4fe2a84936d32a001ef8b5a850c9e464c87a404d0629
BLAKE2b-256 checksum
How to use checksums
d2a9c224dc9947b32a003345a316f77a67e5f33534c0fc87f2c50399a6a2ce9a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.10.11

Release history Release notifications | RSS feed

This release

25.3.5 This release

2 release files

25.3.4

2 release files

25.3.3

2 release files

25.3.2

2 release files

25.3.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page