Generate images based on text prompts using Workers AI. In this example, going to the website will generate an image from the prompt "cyberpunk cat" using the @cf/stabilityai/stable-diffusion-xl-base-1.0
model. Be patience while it takes up to several seconds to generate!
Outside of this repo, you can start a new project with this template using C3 (the create-cloudflare
CLI):
npm create cloudflare@latest -- --template=cloudflare/templates/aged-bar-9764
A live public deployment of this template is available at https://aged-bar-9764.templates.workers.dev
- Install the project dependencies with a package manager of your choice:
npm install
- Deploy the project!
npx wrangler deploy