Cloudflare Image Generation for Openclaw

A high-performance image generation skill leveraging Cloudflare Workers AI and the Flux.1 Schnell model.

expysf98
v1.0.0
Feb 22, 2026
0
2.6k
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install cloudflare-image-gen

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install cloudflare-image-gen using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Cloudflare Image Generation?

This skill enables AI agents to create visual content directly through the Cloudflare Workers AI infrastructure. By utilizing the Flux.1 Schnell model, it provides a fast and reliable way to transform text prompts into high-resolution PNG images. As part of the Openclaw Skills ecosystem, it bridges the gap between text-based reasoning and visual output generation. It is designed for developers needing efficient, serverless image generation capabilities within their automation workflows.

Cloudflare Image Generation Use Cases

  • Automated creation of blog post headers or social media assets.
  • Generating visual representations of concepts during AI-driven research.
  • Providing instant visual feedback in chat-based interfaces like Telegram.
  • Integrating text-to-image capabilities into larger automated coding or marketing workflows.

How Cloudflare Image Generation Works

  1. The AI agent receives a text-to-image request from the user or a parent automation.
  2. The skill script sends the text prompt to the Cloudflare Workers AI endpoint using the Flux-1-schnell model.
  3. Cloudflare processes the request at the edge and returns the raw image data.
  4. The skill saves the data as a PNG file in the designated workspace output directory.
  5. The resulting local file path is returned to the agent for further action, such as local storage or transmission to a communication channel.

Cloudflare Image Generation Setup

To use this skill within your Openclaw Skills environment, ensure you have the necessary scripts in your workspace. You can run the generation script directly from the terminal:

python3 /home/ubuntu/.openclaw/workspace/skills/cloudflare-image-gen/scripts/generate_image.py "a futuristic city" -o output.png

Alternatively, import it into your Python project for programmatic use:

import sys
sys.path.insert(0, '/home/ubuntu/.openclaw/workspace/skills/cloudflare-image-gen/scripts')
from generate_image import generate_image

output_path = generate_image("a black horse")

Cloudflare Image Generation Data Schema & Taxonomy

Component Description
scripts/generate_image.py Core logic for Cloudflare API interaction and authentication
output.png Default filename for generated image assets
PNG Standard output file format supported for all generated media

Cloudflare Image Generation Advanced Features

  • Direct Python module integration for embedding image generation into custom application logic.
  • Seamless compatibility with communication agents for automated delivery to platforms like Telegram.
  • Leverages low-latency edge computing via the Cloudflare Workers AI global network.
  • Configurable output paths and filename parameters via CLI arguments for flexible asset management.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*