https://github.com/vijay-nits/spring-smart-prompt-generator
A Spring Boot-powered AI application that leverages OpenAI API to generate text, images, and respond to dynamic prompts. It intelligently processes user inputs, transforming them into creative and meaningful outputs through advanced AI models.
https://github.com/vijay-nits/spring-smart-prompt-generator
ai api java javascript openai rea reactjs spring spring-boot springai
Last synced: 2 months ago
JSON representation
A Spring Boot-powered AI application that leverages OpenAI API to generate text, images, and respond to dynamic prompts. It intelligently processes user inputs, transforming them into creative and meaningful outputs through advanced AI models.
- Host: GitHub
- URL: https://github.com/vijay-nits/spring-smart-prompt-generator
- Owner: VIjay-Nits
- Created: 2024-10-20T10:49:59.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2024-10-21T16:28:43.000Z (8 months ago)
- Last Synced: 2025-04-07T00:52:22.589Z (2 months ago)
- Topics: ai, api, java, javascript, openai, rea, reactjs, spring, spring-boot, springai
- Language: Java
- Homepage:
- Size: 2.55 MB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Spring Smart Prompt Generator
A Spring Boot-powered AI application that leverages OpenAI API to generate text, images, and respond to dynamic prompts. It intelligently processes user inputs,
transforming them into creative and meaningful outputs through advanced AI models.
![]()
Method
Url
Description
GET
http://localhost:8080/chat
Provide prompt in input & it will generate text response
GET
http://localhost:8080/image
Provide prompt in input & Generate image in response
GET
http://localhost:8080/recipe
Provide prompts in input like ingredients, cuisine & dietaryRestriction(Optional Field) & it will generate complete recipe to prepare a cuision in response
### Purpose of this application -
- Backend-Frontend Integration: The application connects a React frontend with a Spring Boot backend, ensuring smooth interaction between the user interface and the AI-powered backend logic. This enables real-time input processing and dynamic prompt generation.- AI and OpenAI API Utilization: By incorporating Spring AI and OpenAI API, the application provides enhanced natural language processing and content generation, capable of interpreting user queries and returning meaningful, context-aware responses in both text and image formats.
- AI-Powered Prompt Generation: The primary purpose of the spring-smart-prompt-generator application is to leverage advanced AI models via the OpenAI API to generate dynamic and creative text and image outputs based on user inputs, offering intelligent prompt responses.### Technologies
---
- Java 21
- Spring Boot 3.0
- Restful API
- Spring Al
- Postman
- Open AI
- React JS
- HTML
- CSS
- Javascript### Postman
```
Import postman collection Spring AI Model.postman_collection.json file```
### Prerequisites
- Define api key in application.properties file### How to Run
---
1. Set the api key in application.properties file
2. Run from springAIModel for backend
3. Run from spring-ai-model-react for frontend### Screenshots
Click here to show the screenshots of project
Figure 1
![]()
Figure 2
![]()
Figure 3
![]()
Figure 4
![]()
Figure 5
![]()
Figure 6
![]()
Figure 7
![]()
Figure 8
![]()
Figure 9
![]()
Figure 10
![]()
### Build this with the help of EmbarkX - Special Thanks to Embarx.