Skip to main content

Overview

Open WebUI supports powerful image generation and editing capabilities through multiple engines, allowing you to create custom visuals directly in your chat conversations.

Supported Engines

DALL·E Integration
  • DALL·E 2: Fast, cost-effective
  • DALL·E 3: Higher quality, more detailed
  • GPT-IMAGE 1 & 1.5: Latest models

Image Generation

Basic Generation

Create images from text descriptions:
1

Enable Image Generation

2

Configure Parameters

3

Generate in Chat

Simply describe what you want:

API Usage

Generate images programmatically:
Response:

Generation Parameters

Prompt

Text description of desired image
  • Be specific and detailed
  • Include style, mood, lighting
  • Mention artistic techniques

Size

Image dimensions
  • Standard: 512x512, 1024x1024
  • Custom: WIDTHxHEIGHT format
  • “auto”: Model-dependent sizing

Steps

Generation iterations
  • More steps = higher quality
  • More steps = slower generation
  • Typical range: 20-100

Negative Prompt

What to avoid in the image
  • “blurry, distorted”
  • “low quality, watermark”
  • Engine-dependent support

Image Editing

Modify existing images with AI.

Configuration

Edit Workflow

1

Upload Image

Provide source image(s):
  • File upload
  • URL reference
  • File ID from previous generation
2

Describe Changes

Specify desired modifications:
3

Optional Parameters

  • Background color for transparency
  • Multiple image inputs (for Gemini)
  • Size adjustments
4

Generate Edited Version

API returns modified image URL

Edit API

Supported Edit Operations

DALL·E Edit Capabilities:
  • Single image input
  • Inpainting/outpainting
  • Background replacement
  • Style transfer
  • Detail enhancement

ComfyUI Integration

Advanced users can leverage ComfyUI’s powerful workflow system.

Workflow Configuration

1

Design Workflow

Create workflow in ComfyUI interface:
  • Load desired models
  • Configure nodes
  • Test generation
2

Export Workflow

Save workflow as JSON from ComfyUI
3

Configure Nodes

Map workflow nodes to Open WebUI parameters:
4

Upload to Open WebUI

Paste workflow JSON in settings:

Workflow Node Types

  • model: Checkpoint/model selector
  • prompt: Positive/negative prompts
  • size: Width/height dimensions
  • steps: Sampling steps
  • seed: Random seed control
  • sampler: Sampling method
ComfyUI workflows allow complete control over the generation pipeline, including custom samplers, LoRAs, and post-processing.

AUTOMATIC1111 Integration

Configuration

Custom Parameters

Pass additional parameters to AUTOMATIC1111:

Model Management

Switch models dynamically:

Image Storage

Generated and edited images are automatically stored in the file system.

Storage Flow

1

Generation/Edit

Image created by AI engine
2

Upload to Storage

  • Converted to standard format (PNG/JPEG)
  • Assigned unique file ID
  • Metadata stored (prompt, model, parameters)
3

Database Record

File entry created with:
  • User association
  • Generation parameters
  • Timestamp
4

Chat Linking

Optional: Link to chat message for context

Accessing Images

Permissions

Control who can generate images:
Image generation can be resource-intensive. Consider setting usage limits or restricting to specific user groups.

Best Practices

Prompt Engineering

Write effective prompts:
  • Be specific about style and details
  • Include lighting and mood
  • Specify artistic techniques
  • Use negative prompts to avoid unwanted elements

Quality vs Speed

Balance performance:
  • More steps = better quality, slower
  • Larger sizes = more detail, higher cost
  • Test with low steps first
  • Increase for final generation

Model Selection

Choose appropriate engine:
  • OpenAI: Best quality, easiest setup
  • Gemini: Good balance, Google ecosystem
  • ComfyUI: Maximum control, self-hosted
  • AUTOMATIC1111: Free, extensive models

Cost Management

Control expenses:
  • Monitor API usage
  • Set generation limits
  • Use local engines for volume
  • Cache common generations

Troubleshooting

Check:
  • Base URL is correct and accessible
  • API key is valid (if required)
  • Firewall allows connection
  • Engine is running and healthy
  • Authentication credentials correct
Solutions:
  • Increase step count
  • Use larger image size
  • Refine prompt with more details
  • Try different model
  • Adjust sampling parameters
Fix:
  • Reduce image size
  • Lower step count
  • Check engine performance
  • Increase timeout settings
  • Use faster sampler
Verify:
  • Workflow JSON is valid
  • Node IDs correctly mapped
  • Required models installed
  • ComfyUI API accessible
  • Workflow tested in ComfyUI first

Advanced Features

Auto-Size Support

Some models support automatic sizing:
Auto-size is only supported by models matching the pattern: gpt-image-*, dall-e-*

Batch Generation

Generate multiple variations:

Image Caching

Generated images are cached based on:
  • Prompt hash
  • Model configuration
  • Generation parameters
Repeated identical requests return cached results instantly.

API Reference

Generate Image

Create new images from prompts

Edit Image

Modify existing images

Get Models

List available image models

Get Config

Retrieve current settings