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 |
-
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.
- Java 21
- Spring Boot 3.0
- Restful API
- Spring Al
- Postman
- Open AI
- React JS
- HTML
- CSS
- Javascript
Import postman collection Spring AI Model.postman_collection.json file
- Define api key in application.properties file
- Set the api key in application.properties file
- Run from springAIModel for backend
- Run from spring-ai-model-react for frontend