AI Image Alchemist is a Streamlit-based web application that generates images based on text prompts using AI. It leverages advanced AI models to create unique images from user descriptions.
- Generate creative image prompts from user input
- Create AI-generated images based on prompts
- Upscale generated images for higher quality
- View and manage image generation history
- Download generated images
-
Clone this repository:
git clone https://github.com/apix7/imagen.git cd imagen -
Install the required dependencies:
pip install -r requirements.txt -
Set up your environment variables:
- Create a
.envfile in the root directory - Add your API key:
API_KEY=your_api_key_here
- Create a
-
Run the Streamlit app:
streamlit run "imagen.py" -
Open your web browser and go to the URL provided by Streamlit (usually
http://localhost:8501) -
Use the interface to generate prompts, create images, and manage your image history
-
If you encounter issues with prompt generation, you should change the system prompt in the
imagen.pyfile.
imagen.py: Main Streamlit applicationstorage.py: Handles image history storage and retrievalrequirements.txt: List of Python dependenciesgenerated_images/: Directory where generated images are savedimage_history.json: JSON file storing the image generation history
See requirements.txt for a full list of dependencies.
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License - see the LICENSE file for details.
- Streamlit for the web application framework
- GPT4.o for prompt generation , Flux.pro for image generation
- AIML API for api
This project is for educational purposes only. Ensure you comply with all relevant laws and regulations when using AI-generated content.
