Download the wallpaper-generator
directory. Click here to download it.
Unzip the downloaded file and navigate to the working directory.
bash
cd DevRel-Examples-External\ wallpaper-generator
Install dependencies
bash
npm install
Navigate to OpenAI APIs and sign up. Generate your API key. Create .env.local
file in root and add your OpenAI API key and RapidAPI key here.
bash
OPENAI_API_KEY=YOUR_OPENAI_API_KEYRAPIDAPI_KEY=YOUR_RAPIDAPI_KEY
Run the app
bash
npm run dev
You are all set! Open localhost:3000 to see the app.
Building AI apps can be easy if you know where to start. In this guide, we will build an AI wallpaper generator from scratch using RapidAPI Client, Hub, and OpenAI.