Download the wallpaper-generator directory. Click here to download it.
Unzip the downloaded file and navigate to the working directory.
bashcd DevRel-Examples-External\ wallpaper-generator
Install dependencies
bashnpm 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.
bashOPENAI_API_KEY=YOUR_OPENAI_API_KEYRAPIDAPI_KEY=YOUR_RAPIDAPI_KEY
Run the app
bashnpm 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.