A lightweight Java application that generates comic book art panels using AI. This project uses the Pollinations.ai API to create high-quality, high-contrast comic visuals based on user-provided titles and story descriptions.
- Interactive CLI: Input your comic title, genre, and story directly into the terminal.
- Instant Visualization: Automatically opens the generated image in your default web browser.
- Free AI Integration: Powered by Pollinations.ai (Flux model) β no API keys or billing required.
- Maven-Based: Easy dependency management and build process.
- Java JDK 11 or higher.
- Apache Maven installed and configured in your system PATH.
-
Clone or download this project to your local machine.
-
Navigate to the project directory:
cd "C:\Users\Administrator\OneDrive\Desktop\Java Project\AIComicGenerator"
Running the Application Use the following Maven command to compile and run the project:
mvn clean compile exec:java -Dexec.mainClass="AIComicGenerator"
AIComicGenerator/
βββ src/
β βββ main/
β βββ java/
β βββ AIComicGenerator.java # Main source code
βββ target/ # Compiled files (auto-generated)
βββ LICENSE.txt # License information
βββ pom.xml # Maven configuration
βββ README.md # Documentation-
User Input: The program asks for a Title, Genre, and Story Description.
-
Prompt Engineering: It wraps your input into a specialized prompt: "Detailed comic book art panel, [Type] style, high contrast, ink lines. Title: [Title]. Scene: [Story]"
-
API Call: It sends this request to the Pollinations AI engine.
-
Result: The URL is printed to the console, and your browser is triggered to open the image.
-
Title: The Last Circuit
-
Type: Cyberpunk / Sci-Fi
-
Story: A glowing robotic eye reflecting a neon city sunset.
This project is open-source and available under the MIT License.This project is open-source and available under the MIT License.