How It Works
Quick Start
Install with LLM support:pip install "praisonaiagents[llm]"
Features
DALL-E Integration
Seamless integration with DALL-E for high-quality image generation.
Async Support
Asynchronous operations for better performance in concurrent environments.
Natural Style
Generate images with natural, realistic styling options.
Verbose Mode
Detailed output logging for better debugging and monitoring.
Best Practices
Use environment variables for API keys
Use environment variables for API keys
Read
OPENAI_API_KEY from the environment — never hardcode keys in source files.Pick the right model
Pick the right model
Use
dall-e-3 for quality; switch models via the llm parameter when cost or speed matters more.Prefer async in web apps
Prefer async in web apps
Use
achat() when serving multiple concurrent image requests from a FastAPI or gateway handler.Describe style explicitly
Describe style explicitly
Pass
style="natural" or include style cues in the prompt for consistent visual output across runs.Related
Multimodal
Text, image, and audio processing with agents
Outbound Media Delivery
Deliver generated images to users via messaging bots

