MargaritaImageGen is a high-performance AI image generation tool that brings the power of Bing Image Creator v3 to your terminal. It uses SeleniumBase to automate browser interactions across all Chromium browsers, enabling seamless integration into AI agents, workflows, and automation platforms.
This project is lovingly dedicated to my wife, Margarita Sekulova --- my muse, my biggest cheerleader, and the reason I code with passion every day. Her unwavering support and kindness fuel everything I build.
-
🎨 Generate stunning AI images via Bing Image Creator v3
-
🔐 Cookie-based Microsoft account login (one-time setup)
-
🌐 Cross-browser support for all Chromium-based browsers
-
🤖 Designed for AI agents, automation tools, and CLI usage
-
📥 Downloads all generated images instantly to your system
-
⚙️ SeleniumBase-powered for robust and stable automation
-
Refactor logic for simplicity and modularity
-
Add better logging and error handling
-
Unit and integration tests
-
Support for
beratcmn/magic-prompt
prompt enhancement
-
REST API for image gen & retrieval
-
CLI flags (e.g.
--prompt
,--output
) -
Add Leonardo.Ai, Ideogram, OpenArt, etc.
-
Agent-ready integration layer (Auto-GPT, LangGraph)
-
Dockerized deploy
-
Web UI for logs and live images
-
Discord/Telegram bots
git clone https://github.com/YOUR_USERNAME/MargaritaImageGen.git
cd MargaritaImageGen
python -m venv .venv
source .venv/Scripts/activate # Or .venv\Scripts\activate on Windows cmd
pip install -r requirements.txt
Or simply run:
install.bat
🖥️ Usage
python src/main.py
Run the script
Enter your prompt
Images are downloaded to your local directory
📸 Sample Image
Example of output generated using a simple prompt.
🎥 Demo Usage (GIF or Video)
A short video showing prompt entry and image generation.
🖼️ UI Screenshot
Screengrab of the CLI interface or browser automation in action.
🤝 Contributing
If you'd like to contribute: