This AI Agent generates social media content and visuals for a brand or company using their URL or domain. It utilizes cutting-edge AI services via:
- OpenRouter for text and idea generation
- Hugging Face Inference API or Stability AI API for image creation
- Generate engaging social media posts tailored to a company's brand or website
- Automatically create AI-generated images relevant to the brand
- Simple web interface to test and run content/image generation
- Plug-and-play with OpenRouter, Hugging Face, or Stability AI APIs
git clone https://github.com/vikukumar/SMIGAI.git
cd SMIGAICreate a .env file in the root directory with the following content:
OPENROUTER_API_KEY='' # Required for text generation (Mandatory)
HF_API_KEY='' # Optional (for image generation via Hugging Face)
STABILITY_API_KEY='' # Optional (alternative for image generation)Note: Image generation requires at least one of
HF_API_KEYorSTABILITY_API_KEY. If neither is provided, image generation will not work.
pip install -r requirements.txtpython run.pyAccess the app at: http://localhost:5000
-
Python 3.8+
-
Internet connection (to connect with external AI APIs)
-
API keys from:
├── run.py # Main application entrypoint
├── .env # Environment variables for API keys
├── app.py # Main App which is running on FastAPI
├── requirements.txt # Python dependencies
├── public/ # Static files like Html, CSS, JS, or placeholder images
├── lib/ # Core logic for AI interactions
│ └── agent.py # OpenRouter-powered content generator and Hugging Face / Stability AI image generation
- Social media teams wanting fast content ideas and visuals
- Startups or brands without dedicated content creators
- Automating marketing pipelines with AI
- FastAPI – Web framework
- OpenRouter – Text generation
- Hugging Face / Stability AI – Image generation
VIKSHRO License
Vikash Kumar - Github Vikash Kumar - LinkedIn
Let me know if you want the project to be Dockerized or deployed to platforms like Vercel, Heroku, or AWS!