Skip to content

Stable Diffusion app | gen.aef.me 🎨

License

Notifications You must be signed in to change notification settings

adamelliotfields/gen

Repository files navigation

gen

Open in GitHub Codespaces Open in StackBlitz

My image generation web UI, hosted on GitHub Pages: gen.aef.me

Features

  • Stable Diffusion XL text-to-image via 🤗 Inference API
  • Supports different image sizes, guidance scale, steps, and negative prompt
  • Examples!

TODO

  • Embed mode like JupyterLite REPL
  • Multiple backends (stability.ai, fal.ai, etc)
  • More models
  • Image-to-image tasks
  • API key input

Usage

# install bun
export PATH="${HOME}/.bun/bin:${PATH}"
curl -fsSL https://bun.sh/install | bash

# install deps
bun install

# start the dev server
bun start

Secrets

  • VITE_FAL_URL - Alternate URL (proxy) for the Fal.ai API (default: https://fal.run)
  • VITE_FAL_KEY - Fal.ai API key (default: undefined)
  • VITE_HF_URL - Alternate URL (proxy) for the Hugging Face API (default: https://api-inference.huggingface.co)
  • VITE_HF_KEY - Hugging Face API key (default: undefined)
  • VITE_STABILITY_URL - Alternate URL (proxy) for the Stability.ai API (default: https://api.stability.ai)
  • VITE_STABILITY_KEY - Stability.ai API key (default: undefined)

See .env for app settings. You can put the above in .env.local during development.