Skip to content

MargaritaImageGen is a fast, terminal-based AI image generation tool powered by Bing Image Creator v3. It uses SeleniumBase to automate Chromium browsers, making it ideal for integration into AI agents, workflows, and automation pipelines.

License

Notifications You must be signed in to change notification settings

cipherpodliq1/Margarita-Image-Gen

Repository files navigation

MargaritaImageGen

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.


🩷 Dedicated to Margarita Sekulova

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.

MargaritaAI


✨ Features

  • 🎨 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


🛠️ Roadmap

🔧 Core Engineering

  • Refactor logic for simplicity and modularity

  • Add better logging and error handling

  • Unit and integration tests

  • Support for beratcmn/magic-prompt prompt enhancement

📡 Planned Integrations

  • 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


🧰 Installation


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.

9717789ab53a47e4b4bb79ffe318bd3f

🎥 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:

Fork the repo

Create a new branch (feature/amazing-feature)

Commit your changes

Push and open a PR

Tests, logging improvements, prompt tricks, and integrations are welcome!

LinkedIn

Here

About

MargaritaImageGen is a fast, terminal-based AI image generation tool powered by Bing Image Creator v3. It uses SeleniumBase to automate Chromium browsers, making it ideal for integration into AI agents, workflows, and automation pipelines.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published