https://github.com/productmap/cf-worker
https://github.com/productmap/cf-worker
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/productmap/cf-worker
- Owner: productmap
- Created: 2025-02-07T20:24:33.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-02-07T20:24:36.000Z (over 1 year ago)
- Last Synced: 2025-02-07T21:27:01.132Z (over 1 year ago)
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Text To Image App

Generate images based on text prompts using [Workers AI](https://developers.cloudflare.com/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](https://developers.cloudflare.com/pages/get-started/c3/) (the `create-cloudflare` CLI):
```bash
npm create cloudflare@latest -- --template=cloudflare/templates/igrastoria
```
A live public deployment of this template is available at [https://igrastoria.templates.workers.dev](https://igrastoria.templates.workers.dev)
## Setup Steps
1. Install the project dependencies with a package manager of your choice:
```bash
npm install
```
2. Deploy the project!
```bash
npx wrangler deploy
```