返回技能列表
cloudflare-image-gen
由 expysf98 提供
DevOps & Cloud—暂无评分
你的评分
简介
Generate images using Cloudflare Workers AI flux-1-schnell model.
描述
该技能的功能
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.
何时使用
- 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
示例工作流
输入
User asks: 'Generate an image of a sunset over mountains'
智能体
- 1
Call generate_image() with the prompt 'a sunset over mountains'
- 2
Cloudflare Workers AI runs the flux-1-schnell model
- 3
Script receives the binary response and writes it to a PNG file
- 4
Return the output file path
输出
PNG file saved locally, path returned to caller
前置要求
- Cloudflare account with Workers AI enabled
- Cloudflare Account ID
- Cloudflare API token with Workers AI permissions
安装
clawhub install expysf98/cloudflare-image-gen运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。