An open API service indexing awesome lists of open source software.

https://github.com/productmap/cf-worker


https://github.com/productmap/cf-worker

Last synced: 4 months ago
JSON representation

Awesome Lists containing this project

README

          

# Text To Image App

![Text To Image Template Preview](https://imagedelivery.net/wSMYJvS3Xw-n339CbDyDIA/dddfe97e-e689-450b-d5a9-d49801da6a00/public)

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
```