Pixa is a simple AI-powered image generator using Pollinations AI. It allows users to create stunning visuals based on text prompts, with customizable dimensions and a random seed for unique outputs.
- Generate AI-based images from textual prompts.
- Customize width, height, and seed values for personalized results.
- Responsive and user-friendly design built with PHP and CSS.
Here's an example of an image generated using Pixa:
Prompt: "A magnificent treehouse nestled in a giant, ancient tree, with cascading waterfalls and glowing lanterns illuminating the branches at dusk, surrounded by a lush, enchanted forest"
- Width: 1280
- Height: 720
- Seed: 13
-
Clone the repository:
git clone https://github.com/cedonulfi/pixa.git cd pixa -
Deploy to a PHP-enabled server or local environment (e.g., XAMPP, MAMP, or LAMP).
-
Access the application in your browser via
http://localhost/pixaor the domain where you deployed it.
-
Input Form:
Openindex.phpin your browser. Enter the following fields:- Prompt: Describe the image you want to generate (e.g., "A futuristic city at night").
- Width: Desired width of the image in pixels (e.g.,
1280). - Height: Desired height of the image in pixels (e.g.,
720). - Seed: A random number to ensure unique outputs (e.g.,
42).
-
Generate:
Click on the "Generate Image" button to fetch the image from Pollinations AI. -
View Result:
The generated image will appear below the form.
- "A magical forest with glowing mushrooms at night"
- "A colorful nebula in outer space"
- "A retro-futuristic robot in a cyberpunk city"
pixa/
├── index.php # Main application file with form and logic.
├── style.css # CSS for responsive and attractive design.
└── README.md # Documentation for the project.
Your feedback is highly appreciated!
-
Ideas for New Features:
If there are features you'd like to see, let me know in the issues tab or create a pull request. -
Known Limitations:
- Images are dependent on Pollinations AI; server downtime may affect availability.
- Lack of built-in caching for faster results on repeated queries.
Feel free to open an issue or reach out with suggestions for improvements.
This project is licensed under the MIT License.
- Fork the repository.
- Create a new branch for your feature (
git checkout -b feature-name). - Commit your changes (
git commit -m "Add some feature"). - Push to the branch (
git push origin feature-name). - Open a pull request.
- Pollinations AI for powering the image generation.
- Built with ❤️ by cedonulfi.