TYBCA Project
TYBCA Project
On
AI-Image Generator
for
Submitted to,
BCA(Science)
Submitted by,
Pritam Raut.
Nikhil Fulsagar.
1
S. M. Joshi College, Hadapsar, Pune 28
Year 2024-25
CERTIFICATE
has completed his work on project report entitled “AI-Image Generator for the academic year of 2024-
2025”.for S.M. Joshi Collage, Hadapsar , Pune 28 in visual basic 6.0 in the partial fulfilment of the
award of the degree “Bachelor of Computer Application” (BCA, Science: Semester-VI) through Savitribai
Phule Pune University, Pune.
This work has been carried out under my guidance to the best of may knowledge and belief the matter
presented in this project report has not been submitted earlier and it is his original work.
2
Principal
ACKNOWLEDGEMENT
……………………………………………………………………
It gives an immense pleasure to submitting our project “AI-Image Generator” and we would like to thank
all of them who helped us in work and provide the facilities to develop this application.
This page would be incomplete without thanking all those people who encouraged and helped us directly
or indirectly throughout this project.
We wish to duly thank Prof. Ms. Shivarkar Sonali, our Internal Project Guide, and Head, BCA(science)
Department for her faith and confidence in us. Without her full support and cheerful encouragement, the
project would not have been successfully completed. We acknowledge with a deep sense of gratitude for
the encouragement and support received from her.
Last but not the least, our special thanks goes to all our dear teachers for their constant support and
valuable feedback.
Their bubbling enthusiasm and constant encouragement made a great difference.
Pritam Raut.
Nikhil Fulsagar.
3
DECLARATION
……………………………………………………………………
We, Mr. Pritam Balu Raut and Mr. Nikhil Fulsagar student of TY BCA, S.M. JOSHI COLLEGE,
HADAPSAR, PUNE declare that the project entitled “AI-Image Generator” have been completed
successfully & This project is submitted towards the partial fulfilment of the requirement of the degree of
TY BCA. This project is not submitted for any other degree, Diploma or other similar title or prize in any
other university.
Date: / /2025
Signature
4
Rayat Shikshan Sanstha’s
S.M Joshi College Hadapsar, Pune-28
Academic Year 2024-25
Department of Computer Science and Application
T.Y.B.C.A (Science)
Project Milestones
5
Sr. No. Name Of Contents. PAGE NO.
1 INTRODUCTION 07
INDEX
6
7
INTRODUCTION
……………………………………………………………………
Artificial Intelligence (AI) has revolutionized various domains, including digital art and content
creation. The AI Image Generator is an innovative web-based application that leverages AI-powered
APIs to generate images from textual descriptions. This project aims to provide users with an intuitive and
seamless experience in transforming their ideas into visually appealing images.
The system is developed using HTML, CSS, and JavaScript, integrating an AI model through the
CLIPDROP API to generate images based on user prompts. The application features a dynamic UI,
allowing users to input text descriptions, select the number of images, and generate high-quality visuals
within seconds. Additionally, a responsive design ensures accessibility across devices, making AI-
generated art available to a broader audience.
By simplifying the image-generation process, this tool empowers designers, artists, content
creators, and casual users to explore AI-driven creativity effortlessly. The project demonstrates the
practical application of AI in creative fields, reducing manual effort while enhancing artistic possibilities.
8
1.1 PROJECT OVERVIEW
……………………………………………………………………
The AI Image Generator is a web-based application that allows users to generate images from text
descriptions using Artificial Intelligence. This project utilizes HTML, CSS, and JavaScript for the front-
end, integrating an AI-powered API to process user inputs and create high-quality images. The tool
provides a simple and efficient way for users to generate visual content, eliminating the need for manual
design or drawing skills.
The application features a user-friendly interface, where users can enter a descriptive prompt, specify the
number of images they want, and receive AI-generated images within seconds. The generated images can
be previewed, downloaded, and used for various purposes, including digital artwork, content creation, and
design inspiration.
This project highlights the growing impact of AI in the creative industry, offering an accessible solution
for artists, designers, and individuals looking to explore AI-driven art generation. By leveraging machine
learning models, the tool transforms user descriptions into unique and visually appealing images, making
AI-generated art accessible to a wide audience.
9
1.2 EXISTING SYSTEM AND NEED FOR THE SYSTEM
………………………………………………………………………
Existing System:
In the current digital landscape, image generation is primarily done through manual design software like
Photoshop, Illustrator, and other graphic design tools. These require significant technical skills, time, and
effort to create high-quality images. Some users rely on stock images, which often lack customization and
originality. Additionally, AI-based image generation is available on premium platforms, but many of these
services are either expensive, complex to use, or have limited accessibility.
Traditional AI-based image generators often come with restrictions, such as limited free usage, low-quality
output, watermarking, or long processing times. Furthermore, many require advanced knowledge of AI
models, making them unsuitable for general users who simply want to generate images quickly and
effortlessly. Many free tools also have limited functionalities, restricting users from customizing their
generated images according to their specific needs.
Additionally, businesses and digital creators often struggle with finding royalty-free, high-quality images
that match their specific themes. This can lead to issues with copyright restrictions or additional costs for
acquiring the desired visuals. The existing system does not fully cater to users who need instant, unique,
and customizable images.
1
0
offers a seamless and straightforward approach.
o Provides instant previews and download options to improve the efficiency of content
creation.
1
1
1.3 SCOPE OF THE SYSTEM
……………………………………………………………………
The AI Image Generator system is designed to provide users with a simple, efficient, and accessible way to
generate high-quality images using artificial intelligence. The scope of the system covers multiple aspects,
ensuring usability, scalability, and versatility for a wide range of users.
1. User Accessibility and Ease of Use
The system is web-based, making it accessible from any device with an internet connection.
It requires no advanced technical knowledge, allowing users of all backgrounds to generate AI
images with ease.
A user-friendly interface ensures a seamless experience, from inputting text prompts to
downloading generated images.
2. AI-Powered Image Generation
The system translates textual descriptions into realistic or artistic images using advanced AI
models.
It supports a wide range of prompts, enabling users to create images for various industries and
personal needs.
Offers multiple variations of images based on a single prompt, providing creative flexibility.
3. Customization and User Control
Users can adjust image quantity to generate multiple images at once.
Future updates may include customization options, such as image resolution, color styles, aspect
ratios, or artistic filters.
Enhances creativity by allowing users to experiment with different prompts and generate unique
images.
4. Wide Range of Applications
Content Creation: Bloggers, social media influencers, and digital marketers can generate visuals for
their posts.
Graphic Design: Designers can use AI-generated images as inspiration or placeholders in projects.
Advertising & Branding: Businesses can create unique, copyright-free visuals for promotional
materials.
Education & Research: Teachers and students can generate images for presentations, reports, or
study materials.
Entertainment & Art: Writers, artists, and storytellers can bring their ideas to life with AI-generated
visuals.
5. Scalability and Future Enhancements
The system can handle multiple requests and generate images efficiently, ensuring smooth
performance even under high user demand.
Future enhancements may include:
o Advanced AI models for better image quality and realism.
o Integration with cloud storage for saving and managing generated images.
o User accounts and history tracking for accessing previous creations.
o Mobile application development for on-the-go accessibility.
1
2
1.4 HARDWARE AND SOFTWARE REQUIREMENT
……………………………………………………………………
Hardware Requirements:
Software Requirements:
Web Server: Apache Tomcat (if using JSP/Servlets) or Spring Boot embedded server
1
3
1.5 Detail Description Of Technology Used
……………………………………………………………………
1.Frontend(User Interface):
1
4
2. Backend – Java (Servlets or Spring Boot)
The backend handles business logic, processes user requests, and communicates with the database.
Java Servlets:
Handles HTTP requests and responses between the frontend and the server.
Manages login authentication.
3. Database – MySQL
MySQL Workbench:Used to design and manage the database visually.
Helps in creating tables, relationships, and executing SQL queries.
1
5
2. PROPOSED SYSTEM
……………………….………………
The AI Image Generator aims to overcome the limitations of existing manual and inefficient image
creation methods by utilizing advanced artificial intelligence to generate images based on user-provided
text descriptions. The proposed system is designed to be fast, user-friendly, and efficient, allowing users to
create high-quality images within seconds.
1
6
2.1 FEASIBILITY STUDY
……………………………………………………………………
1. Technical Feasibility
This aspect evaluates whether the existing technology and tools can support the development of the
system.
The system uses HTML, CSS, JavaScript for front-end development, ensuring a lightweight and
responsive interface.
The image generation process is powered by Clipdrop API, which provides reliable and scalable
AI-driven image creation.
The system is web-based, meaning it does not require high-end hardware for operation.
Required software components, such as a web server, API integration, and a database (if needed),
are easily available and compatible with the chosen development stack.
2. Economic Feasibility
This aspect assesses whether the system is cost-effective and provides value for its development and
maintenance.
The system is cost-efficient, as it primarily relies on free or affordable technologies such as HTML,
CSS, JavaScript, and APIs.
The only recurring cost is API usage (if applicable), which can be optimized by using free-tier
plans or limiting the number of requests per user.
No specialized hardware is required, reducing infrastructure costs.
The system can be monetized in the future through subscription models, advertisements, or
premium features.
3. Operational Feasibility
This aspect determines whether the system can be used effectively by its target users.
The system is designed for ease of use, with a simple input box, image quantity selector, and
generate button.
Users do not need technical knowledge, making the system accessible to students, artists, designers,
marketers, and general users.
The generated images are immediately displayed in a gallery, with easy download options,
enhancing usability.
1
7
2.2 PROPOSED SYSTEM
……………………………………………………………………
The AI Image Generator System is designed to overcome the limitations of existing image creation methods
by leveraging artificial intelligence to generate high-quality images based on user-provided text descriptions.
This system aims to provide a seamless and efficient way for users to create unique images instantly without
requiring advanced design skills or expensive software.
1. Text-to-Image Generation
o Users can input a textual description of the image they want to generate.
o The system processes the input using AI-powered APIs, such as OpenAI's DALL·E or
Clipdrop.
o The generated image is displayed in real-time.
2. Multiple Image Output
o Users can choose the number of images they want to generate at once.
o The system allows flexible customization, enhancing creativity.
3. User-Friendly Interface
o A simple web-based interface using HTML, CSS, and JavaScript ensures accessibility for
all users.
o The design is responsive, making it functional across different devices and screen sizes.
4. Fast and Efficient Processing
o The system utilizes API calls to generate images quickly.
o Users receive AI-generated images within seconds.
5. Downloadable Image Options
o Users can easily download generated images in high quality.
o A built-in download button ensures a smooth user experience.
6. Scalability and Future Enhancements
o The system can be expanded with additional features, such as image filters, styles, or
editing tools.
o Future updates may include user accounts, saved image history, and cloud storage
integration.
1
8
1
9
2.3 OBJECTIVE OF SYSTEM
……………………………………………………………………
The AI Image Generator System is developed with the following key objectives:
2. User-Friendly Interface
To design a simple and intuitive web interface using HTML, CSS, and JavaScript, making it
accessible to users of all skill levels.
9. Cross-Platform Accessibility
To develop a responsive web application that works smoothly on desktops, tablets, and
mobile devices.
2
0
2.4 USER REQUIREMENTS
……………………………………………………………………
1. Functional Requirements
Text-to-Image Generation: Users should be able to enter a text prompt, and the system should
generate high-quality AI images based on the description.
Multiple Image Generation: Users should have the ability to generate multiple images at once
(e.g., 1 to 4 images per request).
Download Feature: Users must be able to download generated images with a single click.
Friendly Interface: The platform should have a clean, simple interface that allows easy input of
text prompts and seamless navigation.
Error Handling: If image generation fails, the system should provide meaningful error messages
and suggest alternative solutions.
4. Future Enhancements
Advanced AI Models: Future iterations could allow users to choose different AI models for image
generation.
Style Personalization: Users may be able to train the AI to generate images in a specific artistic
style.
3D Image Generation: Expansion into 3D model generation based on text input.
NFT Integration: Option to mint AI-generated images as NFTs for digital ownership.
2
1
3.0 ANALYSIS AND DESIGN
……………………………………………………………………
U_ID
PASSWORD
1:M
USER
U_NAME
HAVE
CREATED_AT
M
IMAGE_REQUEST
PROMT QUANTITY
HAVE
IMAGE_ID IMAGE_URL
M
IMAGE
DOWNLOAD_URL CREATED_AT
2
2
3.2 DFD LEVEL 0 DIAGRAMS
……………………………………………………………………
2
3
3.3 DFD LEVEL 1 DIAGRAMS
……………………………………………………………………
2
4
3.3 DFD LEVEL 2 DIAGRAMS
……………………………………………………………………
2
5
DATA DICTIONARY
……………………………………………………………………
User Table:
2
6
SOFTWARE TESTING
……………………………………………………………………
2. Objectives of Testing:
The primary objective of testing the AI Image Generator is to ensure that the system functions correctly,
meets user requirements, and provides a seamless experience. It aims to identify and fix bugs, validate API
integration, enhance performance, ensure security, and maintain reliability. Testing also helps in
optimizing the user interface, ensuring compatibility across devices and browsers, and preventing
regression issues after updates.
4. Types of Testing:
1.Functional Testing:
Functional testing is performed to verify that all features of the AI Image Generator work correctly as
intended. It ensures that the system accurately takes user input, processes it through the API, and generates
the expected output images. This testing involves checking form validation, input processing, API
requests, image retrieval, and download functionality to ensure that users can seamlessly generate and
download images.
2. Performance Testing:
This type of testing evaluates how well the system performs under various conditions. The AI Image
Generator is tested for response time, the speed of image generation, and its ability to handle multiple user
requests at once. Stress testing is conducted to check how the system behaves under heavy loads, ensuring
that it remains stable and does not slow down or crash during high traffic.
3. Security Testing:
Since the system interacts with APIs and processes user inputs, security testing is essential to prevent
vulnerabilities. This testing ensures that API keys are securely handled, input fields are protected against
SQL injections or cross-site scripting (XSS), and user data is safeguarded from unauthorized access. It also
verifies that generated images are stored and accessed securely.
4. Compatibility Testing:
The AI Image Generator is tested across multiple devices, browsers, and screen resolutions to ensure a
consistent user experience. It checks if the UI elements, forms, buttons, and image gallery display correctly
on desktop, tablets, and mobile devices. This testing ensures that users can generate images without any
functional or design issues regardless of their device.
5. Usability Testing:
Usability testing focuses on the overall user experience, ensuring that the system is easy to use and
2
7
navigate. It evaluates the clarity of instructions, ease of input submission, the effectiveness of error
messages, and the simplicity of the download process. This testing helps identify areas where
improvements can be made to enhance user interaction and satisfaction.
Agile Model:
The Agile Model is best suited for the development of the AI Image Generator project, ensuring flexibility,
adaptability, and continuous improvement. The project follows an iterative development approach, where
new features and enhancements are implemented in small, incremental updates through sprints. This
allows the system to evolve based on user feedback and technological advancements in AI image
generation.
Each sprint involves requirement analysis, design, development, testing, and deployment, ensuring that the
AI model is refined and optimized at every stage. Agile enables seamless integration of AI models and
APIs, such as OpenAI or Clipdrop, ensuring that image generation capabilities remain accurate, efficient,
and responsive. Continuous testing is performed to validate the quality of generated images, reduce errors,
and improve the algorithm's accuracy.
Agile supports real-time adjustments based on user interactions and feedback, allowing for feature
enhancements such as better prompt interpretation, higher image resolution, and faster generation speed.
The methodology ensures collaboration between developers, testers, and designers, leading to an efficient
workflow. Additionally, Agile allows the team to implement new AI advancements, optimize image-
processing speed, and maintain a user-friendly interface.
By following the Agile Model, the AI Image Generator can be continuously improved, ensuring it meets
user expectations, remains technologically advanced, and provides high-quality image outputs.
In the AI Image Generator project, testing follows an Agile Model, where development and testing occur
in iterative sprints, ensuring continuous improvement and adaptability. Each sprint involves unit testing for
individual components like user login authentication, prompt input handling, API requests, and image
rendering. After unit testing, integration testing verifies the interaction between modules such as user
authentication, image generation, download functionality, and UI responsiveness. System testing is
conducted after each sprint to validate overall performance, security, scalability, and seamless navigation
from login to image generation.
User acceptance testing (UAT) gathers real-time feedback from users to refine the system, ensuring ease of
use and accurate image generation.
Regression testing ensures that previously developed features, including login security and AI processing,
remain intact despite new updates. This continuous cycle of development and testing allows for rapid issue
resolution, improved AI accuracy, and enhanced user experience, making the system efficient, secure, and
reliable.
2
8
6.USER MANUAL
……………………………………………………………………
1. Introduction
The AI Image Generator is a web-based application that allows users to generate images based on text
descriptions using artificial intelligence. This tool leverages AI models to create high-quality images from user-
provided prompts. The system is designed to be user-friendly, providing a seamless experience for both
beginners and advanced users.
2. System Requirements:
Hardware Requirements:
A computer device with internet access
Minimum 2GB RAM (4GB recommended for better performance)
A modern web browser (Chrome, Firefox, Edge, Safari, etc.)
Software Requirements:
Windows/macOS/Linux operating system.
JavaScript-enabled web browser.
Internet connection.
3. Getting Started:
3.1 Accessing the System
Open a web browser.
Navigate to the AI Image Generator website.
Sign up or log in using valid credentials.
3.2 User Login
Click on the Login button.
Enter your username and password.
Click Submit to access the dashboard.
29
7. USER INTERFACE DESIGN OR SCREENS
……………………………………………………………
Signup Page:
Login Page:
30
User Interface:
Result:
31
8.SAMPLE CODING
……………………………………………………………………
Signup Code:
body {
font-family: 'Arial', sans-serif;
background-color: #f4f7fc;
color: #333;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
}
.container {
background-color: white;
padding: 30px 40px;
border-radius: 8px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
width: 100%;
max-width: 400px;
}
h2 {
text-align: center;
margin-bottom: 20px;
color: #4e73df;
}
form {
display: flex;
flex-direction: column;
32
gap: 20px;
}
input[type="submit"] {
background-color: #4e73df;
color: white;
border: none;
padding: 12px;
border-radius: 6px;
font-size: 18px;
cursor: pointer;
transition: background-color 0.3s;
}
input[type="submit"]:hover {
background-color: #224abe;
}
.form-footer {
text-align: center;
margin-top: 20px;
font-size: 14px;
}
.form-footer a {
color: #4e73df;
text-decoration: none;
}
.form-footer a:hover {
text-decoration: underline;
}
/* Responsive Design */
@media screen and (max-width: 600px) {
33
.container {
padding: 20px;
width: 90%;
}
h2 {
font-size: 24px;
}
input[type="submit"] {
font-size: 16px;
}
}
</style>
</head>
<body>
<div class="container">
<h2>Signup</h2>
<form action="SignupServlet" method="post">
<input type="text" name="username" placeholder="Enter Username" required><br>
<input type="password" name="password" placeholder="Enter Password" required><br>
<input type="email" name="email" placeholder="Enter Email" required><br>
<input type="submit" value="Register">
</form>
<div class="form-footer">
<p>Already have an account? <a href="login.jsp">Login here</a></p>
</div>
</div>
</body>
</html>
Javascript Code:
const apiKey =
'd114be9673feed13ed638cab41201d9905145e6f34813c4efbd675c02ebd12ba7b4b7f2c60d26e3b2d543bda7a32
adf2';
const generateAiImages = async (userPrompt, userImgQuantity) => {
try {
imageGallery.innerHTML = "";
34
for (let i = 0; i < userImgQuantity; i++) {
const loaderDiv = document.createElement("div");
loaderDiv.classList.add("img-card", "loading");
loaderDiv.innerHTML = `<div class="loader"></div>`;
imageGallery.appendChild(loaderDiv);
}
if (!response.ok) {
const errorData = await response.json();
let errorMessage = 'Error generating image.';
if (errorData?.error?.message) {
errorMessage = errorData.error.message;
}
throw new Error(errorMessage);
}
35
imageGallery.replaceChild(imgWrapper, imageGallery.children[i]);
imgWrapper.addEventListener("mouseenter", () => {
downloadButton.style.display = "flex";
});
imgWrapper.addEventListener("mouseleave", () => {
downloadButton.style.display = "none";
});
}
} catch (error) {
console.error('Error generating image:', error);
imageGallery.innerHTML = `<p style="color: red;">${error.message}</p>`;
}
};
generateAiImages(userPrompt, userImgQuantity);
};
generateForm.addEventListener("submit", handleFormSubmission);
36
9.ADVANTAGES AND LIMITATIONS
……………………………………………………………………
Advantages:
3. Cost-Effective Solution:
o Eliminates the need for expensive design software.
o Reduces the cost of hiring professional designers.
5. Cloud-Based Processing:
o No need for high-end hardware or local storage.
o Ensures fast and reliable image generation using AI.
37
Limitations:
1. Dependence on AI Accuracy:
o The generated images may not always match the exact user prompt.
o Sometimes, AI misinterprets complex or abstract descriptions.
38
10.CONCLUSIONS
……………………………………………………………………
The AI Image Generator project successfully demonstrates the integration of artificial intelligence with web
technologies to provide users with a seamless image generation experience. The system is designed to take a
text prompt as input and generate high-quality images using the OpenAI API, making it a powerful tool for
designers, artists, and content creators. The user login feature ensures that only registered users can access the
platform, adding a layer of security and personalization. This login system manages user sessions and enables
features such as saved preferences, history tracking, and access control to prevent unauthorized usage.
The project follows an agile development approach, allowing for continuous improvements, quick bug fixes,
and iterative enhancements based on user feedback. The frontend is built using HTML, CSS, and JavaScript,
providing a responsive and user-friendly interface, while the backend handles API requests and user
authentication efficiently. The incorporation of servlet technology allows smooth handling of user login
requests, session management, and interaction with the image generation service.
The AI Image Generator has been designed to be scalable and efficient, ensuring minimal latency and optimized
API usage for faster response times. The system's image gallery allows users to preview and download
generated images with ease. Additionally, security measures such as input validation and API key protection are
implemented to prevent misuse and enhance data integrity.
Future improvements to the system could include advanced AI models for better image quality, more
customization options such as resolution control and artistic styles, cloud storage integration for saving
generated images, and multi-language support for diverse user needs. Despite minor limitations such as API
dependency and occasional delays, the AI Image Generator stands out as an innovative and valuable tool that
harnesses the power of AI for creative applications.
39
11.BIBLIOGRAPHY
……………………………………………………………………
2.Online Tutorials:
YouTube Tutorials on OpenAI API Implementation.
40