Overview
LibreChat supports multiple image generation engines that can be used by AI agents to create images based on text descriptions. Agents can generate images as part of conversations or workflows.Supported Engines
- DALL-E
- OpenAI Image Tools
- Flux
- Stable Diffusion
- Gemini
OpenAI’s DALL-E 2 and DALL-E 3 models.
Configuration
Choose Image Provider
Select one or more image generation engines based on your needs:
- DALL-E: Best integration, commercial use allowed
- Flux: High quality, flexible licensing
- Stable Diffusion: Self-hosted, fully customizable
- Gemini: Multimodal integration with Google models
Using Image Generation
In Conversations
- Direct Request
- As Part of Workflow
- With Specific Style
Image Generation Tool
When an agent has image generation enabled, it uses the tool automatically:Generation Progress
During image generation, users see a progress indicator:- Visual spinner
- Status text (“Creating Image”, “Finished”)
- Progress percentage
File Configuration
Control image generation settings:Advanced Options
DALL-E Azure Integration
Use DALL-E through Azure OpenAI:Custom DALL-E Endpoints
Stable Diffusion Configuration
For self-hosted Stable Diffusion WebUI:-
Launch Automatic1111 WebUI with API enabled:
-
Configure the URL:
Gemini Authentication
Multiple authentication methods:API Key (AI Studio)
API Key (AI Studio)
Shared Google Key
Shared Google Key
Vertex AI Service Account
Vertex AI Service Account
Image Specifications
DALL-E
- DALL-E 2: 256x256, 512x512, 1024x1024
- DALL-E 3: 1024x1024, 1792x1024, 1024x1792
- Formats: PNG
- Quality: Standard or HD (DALL-E 3)
Flux
- Resolutions: Up to 2048x2048
- Formats: PNG, JPEG
- Models: Flux Pro, Flux Dev, Flux Schnell
Stable Diffusion
- Fully customizable based on your model
- Common: 512x512, 768x768, 1024x1024
- Supports various samplers and schedulers
Gemini
- Model: gemini-2.5-flash-image
- Integrated with Gemini multimodal capabilities
- Supports various aspect ratios
Troubleshooting
Image generation fails
Image generation fails
- Verify API keys are correct and active
- Check API quota/billing status
- Ensure network connectivity to image service
- Review error messages in logs
Stable Diffusion not connecting
Stable Diffusion not connecting
- Verify WebUI is running with
--apiflag - Check firewall settings
- Use
host.docker.internalfor Docker setups - Confirm URL includes port number
DALL-E 3 prompts rejected
DALL-E 3 prompts rejected
- DALL-E 3 has content policy restrictions
- Avoid restricted content (violence, adult, etc.)
- Rephrase prompts if rejected
- Check OpenAI status page for outages
Images not displaying
Images not displaying
- Check file storage configuration
- Verify browser can access image URLs
- Check file size limits in
fileConfig - Clear browser cache