Skip to content

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.

Notifications You must be signed in to change notification settings

VIjay-Nits/spring-smart-prompt-generator

Repository files navigation

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.

User Interface

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.

About

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.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published