Skip to content

Files

Latest commit

deloreyjjahandsjdelorey@cloudflare.com
Feb 19, 2025
fb5a968 · Feb 19, 2025

History

History

text-to-image-template

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Nov 19, 2024
Feb 3, 2025
Jan 31, 2025
Feb 19, 2025
Feb 19, 2025
Jan 2, 2025
Nov 19, 2024
Dec 3, 2024

Text To Image App

Text To Image Template Preview

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!

Getting Started

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/text-to-image-template

A live public deployment of this template is available at https://text-to-image-template.templates.workers.dev

Setup Steps

  1. Install the project dependencies with a package manager of your choice:
    npm install
  2. Deploy the project!
    npx wrangler deploy