Welcome to WebScout's Text-to-Image providers - your ultimate collection of AI art generators! 🚀
- AiForce: Advanced AI image generation with 12 specialized models including Flux-1.1-Pro, SDXL Lightning, and Ideogram, perfect for both quick generations and high-quality art
- Nexra: Next-gen image creation with 19+ models including MidJourney, DALL-E, and specialized SDXL variants for every use case from anime to photorealism
- BlackboxAI: High-performance image generation with advanced retry mechanisms, perfect for reliable and consistent results
- DeepInfra: Powerful image generation using FLUX-1-schnell and other cutting-edge models, optimized for high-quality outputs
- TalkAI: Fast and reliable image generation with comprehensive error handling and dynamic user agent support
- ImgNinza: Ninja-fast image generation with cyberpunk-themed logging and stealth capabilities
- PollinationsAI: Nature-inspired AI art generation with specialized models for organic and natural imagery
- Artbit: Bit-perfect AI art creation with precise control over generation parameters
- HuggingFace: Direct integration with HuggingFace's powerful models for research-grade image generation
All providers come with these fire features:
- Both sync and async implementations
- Comprehensive error handling
- Optional logging with cyberpunk theme
- Dynamic user agent generation
- Proxy support
- Customizable timeouts
- Smart retry mechanisms
- Consistent API across all providers
- Detailed documentation with examples
- Type hints for better IDE support
- Comprehensive error messages
- Easy-to-use interface
- Proxy support for privacy
- Configurable timeouts
- Safe error handling
- Optional verbose logging
- Dynamic user agent rotation
# Sync way
from webscout.Provider.TTI import BlackboxAIImager
imager = BlackboxAIImager(logging=True)
images = imager.generate("Epic dragon breathing fire", amount=2)
paths = imager.save(images)
# Async way
from webscout.Provider.TTI import AsyncDeepInfraImager
import asyncio
async def generate_art():
imager = AsyncDeepInfraImager(logging=True)
images = await imager.generate("Cyberpunk city at night")
paths = await imager.save(images)
asyncio.run(generate_art())
pip install webscout
All providers implement these base classes:
ImageProvider
for sync operationsAsyncImageProvider
for async operations
def generate(
self,
prompt: str, # Your creative prompt
amount: int = 1, # Number of images
max_retries: int = 3, # Max retry attempts
retry_delay: int = 5 # Delay between retries
) -> List[bytes]: # Returns image data
...
def save(
self,
response: List[bytes], # Image data
name: str = None, # Base filename
dir: str = os.getcwd(),# Save directory
prefix: str = "" # Filename prefix
) -> List[str]: # Returns saved paths
...
All providers use these standard exceptions:
APIConnectionError
: Network/connection issuesInvalidResponseError
: Invalid API responsesFailedToGenerateResponseError
: Generation failures
Common configuration options:
imager = Provider(
timeout=60, # Request timeout
proxies={}, # Proxy settings
logging=True # Enable logging
)
- Use proxies for privacy
- Enable stealth mode when needed
- Don't expose API keys
- Use custom timeouts
- Handle errors gracefully
- Use async for multiple images
- Enable retry mechanisms
- Configure appropriate timeouts
- Use chunked downloads
- Implement parallel saving
- Fork the repository
- Create your feature branch
- Follow the provider template
- Add comprehensive tests
- Submit a pull request
Made with 💖 by the HelpingAI Team! Keep it real fam! 🔥👑