Welcome! This repo has a working implementation of how to generate AI cover images using Leap AI. ✨
Try it out here!
Get started by forking this repository (button top right), and downloading it to your computer. From there follow the below :)
- Learn more about AI Backgrounds with Leap
- Read our AI Backgrounds Guide
- Visit the Leap Developer Hub
- Add your credentials in .env, following the .envExample file
- Head to
pages/index.tsx
for editing text, prompts, and colors to match your theme - Adjust image prompts in
helpers/prompts.ts
- Adjust the number of images generated w/ the numberOfImages parameter in
/pages/api/generate
- Open the terminal
- Run
npm install
to grab the necessary packages - Hit
npm run dev
to start your server onhttp://localhost:3000
- Enter a prompt or choose a style to generate
- Click the Generate Cover Button
- Push all your changes to Github (or another git provider)
- Head to vercel.app, import your repo, and hit deploy
- note: you will need vercel pro plan or
/pages/api/generate
call will likely timeout after 10 sec. You can also deploy on Zeet to avoid this issue.
This is huge! You've got an AI image app running on the web, and you can share it with the world.
if you got value from this -- plz give us a star 🙂⭐