Xpersona
C

Cloudflare Workers Ai Images

CLAWHUB · Unverified

Generate and edit images through Cloudflare Workers AI using one skill that supports text-to-image and image-to-image. Use when the user asks to generate, dr... Skill: Cloudflare Workers Ai Images Owner: slippersheepig Summary: Generate and edit images through Cloudflare Workers AI using one skill that supports text-to-image and image-to-image. Use when the user asks to generate, dr... Tags: latest:1.1.1 Version history: v1.1.2 | 2026-05-08T02:03:23.375Z | auto - Added _meta.json file for improved metadata and ecosystem compatibility. - No changes to functionality or user in

62
Rank
84
Safety
1.2k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1.2K downloads reported by the source. Last updated 10/11/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: medium.

clawhub skill install s173ga2b39rqhtd9xy993f9zzd83kt2m:cloudflare-workers-ai-images
  1. Docker environment detected. We recommend running `docker compose up -d` in an isolated bridge network rather than host mode.
  2. Setup complexity is LOW. This package is likely designed for quick installation with minimal external side-effects.
  3. Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-slippersheepig-cloudflare-workers-ai-images/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

49,208 characters of source documentation, loaded on request.

Extracted files

3 files captured from the source.

SKILL.md

---
name: cloudflare-workers-ai-image
description: Generate and edit images through Cloudflare Workers AI using one skill that supports text-to-image and image-to-image. Use when the user asks to generate, draw, create, render, transform, restyle, or modify images with Cloudflare Workers AI models such as stable-diffusion-xl-base-1.0 and stable-diffusion-v1-5-img2img. Trigger for requests about prompt-based image generation, editing an existing image, preserving a source image while changing overall style or composition, or when the user explicitly mentions Cloudflare Workers AI, Workers AI, SDXL, or img2img. Save generated images to a temporary local path, let OpenClaw send them to the current conversation window, and remove the temporary files after successful delivery unless the user explicitly asks to keep a saved copy.
---

# Cloudflare Workers AI Image

Use this skill for two related image workflows backed by Cloudflare Workers AI:

- **text2img** → create a new image from a prompt
- **img2img** → transform an existing source image with a prompt

Use the bundled script:

```bash
python3 scripts/cf_workers_ai_image.py <mode> "<prompt>" [options]
```

The script reads credentials from environment variables so the skill works cleanly in Docker-based OpenClaw deployments.

## Trigger guidance

Use this skill when the user wants any of the following through Cloudflare Workers AI:

- generate a brand-new image from text
- make a picture, illustration, concept art, poster, wallpaper, avatar, or cover image
- transform an existing image into another style or composition
- keep the original image as a base but restyle or modify it globally
- perform text2img or img2img with Stable Diffusion-family models on Cloudflare

Strong trigger phrases include:

- "用 Cloudflare Workers AI 生成图片"
- "用 Workers AI 做文生图"
- "用 SDXL 生成一张图"
- "把这张图改成水彩风"
- "基于这张图重绘"
- "用 img2img 改图"
- "用 Workers AI 改这张图片风格"

Mode selection guidance:

- Choose **text2img** when there is no source image and the user wants a new image from a prompt.
- Choose **img2img** when there is a source image and the user wants a global transformation, style transfer, or composition-preserving edit.

If the user asks for a local area edit, object replacement, or mask-based redraw, this skill does not cover that workflow anymore.

## Required environment variables

Read `references/docker-compose-env-example.md` when the user asks how to pass credentials through Docker Compose.

Required variables:

- `CF_ACCOUNT_ID`
- `CF_API_TOKEN`

If either variable is missing, the script exits with a clear error.

## Default models

The script defaults to these Workers AI model identifiers:

- `text2img` → `@cf/stabilityai/stable-diffusion-xl-base-1.0`
- `img2img` → `@cf/runwayml/stable-diffusion-v1-5-img2img`

Override any default with `--model` if Cloudflare changes naming or the user wants another compatible Workers AI model.

## Commands

### 1) Text to image

```bash
python3 scripts/cf_workers_ai_image.py 

_meta.json

{
  "ownerId": "kn735cdvgyaexcdwdxdmcsjzwh83jg8m",
  "slug": "cloudflare-workers-ai-images",
  "version": "1.1.2",
  "publishedAt": 1778205803375
}

references/docker-compose-env-example.md

# Docker Compose environment example

Pass Cloudflare credentials into the OpenClaw container via `docker-compose.yml` or `compose.yaml`.

```yaml
services:
  openclaw:
    image: ghcr.io/openclaw/openclaw:latest
    environment:
      CF_ACCOUNT_ID: "your_cloudflare_account_id"
      CF_API_TOKEN: "your_cloudflare_api_token"
```

## Minimal token scope

Create a Cloudflare API token that can call Workers AI for the target account.
Prefer the least privilege that still allows AI inference.
If Cloudflare changes permission names, select the Workers AI / AI inference related permission for that account.

## Verify inside container

```bash
docker compose exec openclaw env | grep '^CF_'
```

Expected output should include both variables.

Sponsored

Ads related to Cloudflare Workers Ai Images and adjacent AI workflows.