cloudflare-flux-image-generation SKILL.md skillA
cloudflare-flux-image-generation from black-yt/skills is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.
mdr add black-yt/skills/cloudflare-flux-image-generation@git:20261023.26b4d66Pins git:20261023.26b4d66 in mdr.lock. Pin the fingerprint instead.
- Audit grade
- A, 17 of 17 checks passed
- Kind
- SKILL.md skill
- Repository
- black-yt/skills
- Path
cloudflare-flux-image-generation/SKILL.md- Versions recorded
- 1
- Latest version
- git:20261023.26b4d66, committed Oct 23, 2026
- Size
- 3,679 bytes
- Repository stars
- 16
- License
- none declared
使用 Cloudflare Workers AI 的 FLUX.1 schnell 免费额度按文字生成 JPEG 图片时使用;覆盖账号注册、Workers AI API Token、Python 标准库脚本调用、额度核算和故障排查。.
Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.
What the file says
# Cloudflare FLUX 图片生成 ## 适用范围 - 使用 Cloudflare Workers AI REST API 的 `@cf/black-forest-labs/flux-1-schnell` 文生图模型,运行 [完整脚本](scripts/generate_image.py),把 API 返回的 base64 JPEG 保存到本地。Python 3.10+ 标准库即可,不依赖源项目或第三方 Python 包。 - 首次使用先读[注册与配置](references/01_account_and_setup.md);要执行生图、改参数或排错时读[调用与排错](references/02_usage_and_troubleshooting.md)。 - 仅支持文本生成单张 JPEG。图片输入、局部编辑、批量并发、尺寸指定和 PNG 输出不在这个脚本的能力内;需要这些能力时先核对当前模型文档。 ## 执行要点 1. 检查 Python 版本、Cloudflare 账号和 Workers AI 权限。只通过当前进程环境变量传 `CLOUDFLARE_ACCOUNT_ID`、`CLOUDFLARE_API_TOKEN`;不得把真实 token 写入仓库、prompt、命令行参数或日志。 2. 查看当前 [模型参数](https://developers.cloudflare.com/workers-ai/models/flux-1-schnell/)与[定价](https://developers.cloudflare.com/workers-ai/platform/pricing/)。免费额度和权限可能变化;付费计划的超额请求可能收费。 3. 先生成一张测试图,指定新文件名;检查退出码、JPEG 类型与画面内容,再按需继续。输出已有文件时,只有用户明确要替换才加 `--overwrite`。 4. 失败时按 HTTP 状态、Cloudflare 错误码和本地输出核对;429/暂时性 5xx 有界重试,401/403、配额或内容策略错误先处理原因,避免无界重试。 ## 最短调用 ```bash python3 --version export CLOUDFLARE_ACCOUNT_ID='[ACCOUNT_ID]' read -r -s -p 'Cloudflare Workers AI token: ' CLOUDFLARE_API_TOKEN; printf '\n' export CLOUDFLARE_API_TOKEN python3 /path/to/cloudflare-flux-image-generation/scripts/generate_image.py \ …
Read the whole file at its exact version.
How to install
mdr add black-yt/skills/cloudflare-flux-image-generation@sha256:4e895cc48b48f43aThe line at the top of this page pins the label git:20261023.26b4d66, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.
[](https://markdownregistry.com/a/art_73ecy3lzmo7vwycx)
2 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 1 version of this file, committed on Oct 23, 2026.
Audit of the latest version
- pass: Frontmatter block present
- pass: Frontmatter declares a name
- pass: Frontmatter declares a description
- pass: Size between 200 bytes and 200 KB (3679 bytes)
- pass: No zero-width or bidi control characters
- pass: No instruction hidden inside an HTML comment
- pass: No link to an exfiltration or paste host
- pass: No credential-shaped string
- pass: No instruction to send local credentials anywhere
- pass: No text hidden with inline styles
- pass: No prompt-injection phrasing
- pass: No curl or wget piped into a shell
- pass: No recursive delete of root, home or parent
- pass: No instruction to read or print local credentials
- pass: No base64 blob over 200 characters
- pass: No link to a raw IP address
- pass: No script tag
Source
black-yt/skills · 16 stars · license none declared · pushed 2026-11-05 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_73ecy3lzmo7vwycx GET https://markdownregistry.com/api/v1/resolve?ref=black-yt/skills/cloudflare-flux-image-generation GET https://markdownregistry.com/api/v1/blob/4e895cc48b48f43a556f563d1d8619d044d57f671d05a4e3f668609cc37eeb55
Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.
Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.