Contributors: Chris and Ed
This versatile Node.js and Express.js-based application harnesses the power of various APIs to offer a range of image-related functionalities.
-
Image Description using OpenAI Vision API and Text-to-Speech
- Accepts a picture URL as input.
- Utilizes OpenAI Vision API for image description.
- Option to receive description only or both description and audio (using OpenAI Text-to-Speech).
-
Website Image Scraping and Description
- Takes a website URL as input.
- Scrapes images and displays them in cards.
- Offers the option to get the image description and audio using OpenAI APIs.
-
Google Image API Search
- Enables image search using Google Image API.
- Organizes the results in cards.
- Provides options to get image descriptions and audio using OpenAI APIs.
- Node.js
- Express.js
- OpenAI Vision API
- OpenAI Text-to-Speech API
- Unsplash API
- Google Image API
- Amazon Web Services (AWS) with EC2 instance
- File system for audio.mp3 storage on the server
-
Clone the repository.
git clone https://github.com/fac29b/Chris-and-Ed-Project3-API-calls.git
-
Install dependencies.
cd Chris-and-Ed-Project3-API-calls npm install -
Set up environment variables.
- Create a
.envfile with your API keys and configuration details.
- Create a
- Accepts a picture URL and uses OpenAI Vision API to generate a description.
- Provides options to retrieve either the description or both the description and an audio representation using OpenAI Text-to-Speech.
- Takes a website URL as input and scrapes images.
- Presents images in user-friendly cards.
- Allows users to obtain image descriptions and audio using OpenAI APIs.
- Employs the Google Image API to enable image searches.
- Organizes search results in cards.
- Facilitates the retrieval of image descriptions and audio through OpenAI APIs.
Additionally, the application features a dynamic header image generated via the Unsplash API, ensuring a visually engaging and ever-changing experience. Accessibility is prioritized, with detailed descriptions for header images and text manipulation for optimal readability.
The project leverages Amazon Web Services (AWS) with an EC2 instance for web hosting, utilizing the file system to store audio files locally on the server.
- Node.js
- Express.js
- OpenAI Vision API
- OpenAI Text-to-Speech API
- Unsplash API
- Google Image API
- Amazon Web Services (AWS) with EC2 instance