/stable-diffusion-nextjs

an image generation web app that accepts text prompt, send to Stable Diffusion hosted on Replicate, and display the generated image

Primary LanguageJavaScript

What

A prompt based image generator website

How

  • Model: Stable Diffusion
  • Model deployment: Replicate
  • Web host: Vercel

Learnings

vercel environment variables not working issues:

  • Renaming REPLICATE_API_TOKEN to NEXT_PUBLIC_REPLICATE_API_TOKEN
  • Then redeployed the app
  • If the above still doesn't work, check back after a while as the issue might be intermittent due to Vercel cache

Useful links discussing this issue Vercel not supporting environment variable Similar discussion