===========================================================================
- Introduction
- Features
- Prerequisites
- Installation
- Usage
- Configuration
- Troubleshooting
- Changelog
- License
- Contributing
- Acknowledgments
The APIBackends Extension for SwarmUI enables integration with various commercial image generation APIs, including OpenAI's DALL-E, Anthropic's Claude, Black Forest Labs' Flux, and Ideogram. This extension allows you to use these services directly within the SwarmUI interface, providing a seamless experience for generating images using different AI models.
- Usage Example:
- Generate images using DALL-E 3
- Use Anthropic's Claude 3 for image generation
- Access Black Forest Labs' Flux models
- Generate with Ideogram's AI
- Seamlessly switch between different API providers
Warning
API usage incurs costs from the respective providers. Make sure you understand the pricing before use. Always keep your API keys secure and never share them.
- Support for multiple API providers:
- OpenAI (DALL-E 2 & 3)
- Anthropic (Claude 3 Opus & Sonnet)
- Black Forest Labs (Flux models)
- Ideogram
- Integrated parameter controls for each provider
- Automatic model switching and parameter adjustment
- Secure API key management
- Custom base URL support for enterprise deployments
- Provider-specific parameter controls
- Permission system integration for access control
Note
Future Features:
- Additional API providers
- Batch processing optimization
- Cost estimation before generation
- Usage tracking and reporting
- Advanced parameter presets
Before installing the APIBackends Extension, ensure you have:
- SwarmUI installed and running
- Valid API keys for the services you plan to use
- Understanding of the associated costs and usage limits
- Open your SwarmUI instance
- Navigate to the Server → Extensions tab
- Find "APIBackends Extension" in the list
- Click the Install button
- Restart SwarmUI when prompted
If you prefer to install manually:
- Close SwarmUI
- Navigate to the
SwarmUI/src/Extensionsdirectory - Clone the APIBackends repository
- Run
update-windows.batorupdate-linuxmac.sh - Restart SwarmUI and refresh your browser
- Configure your API keys in the settings
- Select your desired API provider model
- Adjust provider-specific parameters
- Generate images as normal using SwarmUI's interface
- Images will be generated using the selected API service
Each API provider requires specific configuration:
-
OpenAI:
- API Key
- Model selection (DALL-E 2 or 3)
- Quality and style parameters
-
Anthropic:
- API Key
- Model selection (Opus/Sonnet)
- Quality settings
-
Black Forest Labs:
- API Key
- Model selection
- Custom endpoint (optional)
-
Ideogram:
- API Key
- Style preferences
- Resolution settings
Common issues and solutions:
- Check API key validity and permissions
- Verify network connectivity to API endpoints
- Confirm sufficient API credits/balance
- Check SwarmUI logs for error messages
- Ensure parameters are within provider limits
- Join the Hartsy Discord Community for support
- Version 0.1: Initial release with OpenAI and Anthropic support
- Version 0.2: Added Black Forest Labs integration
- Version 0.3: Added Ideogram support and parameter optimization
This extension is licensed under the MIT License.
Contributions welcome! Please submit Pull Requests or open Issues on GitHub.