LaunchKit · 2026
Back to Skills

cloudflare-image-gen

Generate images using Cloudflare Workers AI flux-1-schnell model.

0
475 downloads
by @expysf98

Setup & Installation

openclaw skills install @expysf98/cloudflare-image-gen

Or with the ClawHub CLI, for registry-managed skill folders outside a full OpenClaw workspace:

npx clawhub install cloudflare-image-gen

What This Skill Does

Generates images from text prompts using Cloudflare Workers AI with the flux-1-schnell model. Runs via a Python script and saves output as PNG files.

Uses Cloudflare's hosted inference so no local GPU or separate image service account is needed beyond the provided credentials.

When to use it

  • Generate a product mockup image from a description
  • Create an illustration for a blog post
  • Produce reference art for a design brief
  • Generate avatars or icons on demand
  • Visualize a scene described in plain text

Example Workflow

Here's how your AI assistant might use this skill in practice.

INPUT

User asks: 'Generate an image of a sunset over mountains'

AGENT
  1. 1Call generate_image() with the prompt 'a sunset over mountains'
  2. 2Cloudflare Workers AI runs the flux-1-schnell model
  3. 3Script receives the binary response and writes it to a PNG file
  4. 4Return the output file path
OUTPUT

PNG file saved locally, path returned to caller

Requirements

Accounts, API keys, or tools you or your AI assistant may need to set up while using this skill.

Cloudflare account with Workers AI enabledCloudflare Account IDCloudflare API token with Workers AI permissions