Bỏ qua tới nội dung
TakoAPI
Quay lại kỹ năng

cloudflare-image-gen

bởi expysf98

DevOps & Cloud
475Lượt tải do clawskills.sh công bố
0Lượt xem
0 lượt thíchĐăng nhập để thích kỹ năng này
—Chưa có đánh giá
Đánh giá của bạn

Tóm tắt

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

Mô tả

Kỹ năng này làm gì

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.

Khi nào nên dùng

  • 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

Quy trình ví dụ

ĐẦU VÀO

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

AGENT
  1. 1

    Call generate_image() with the prompt 'a sunset over mountains'

  2. 2

    Cloudflare Workers AI runs the flux-1-schnell model

  3. 3

    Script receives the binary response and writes it to a PNG file

  4. 4

    Return the output file path

ĐẦU RA

PNG file saved locally, path returned to caller

Yêu cầu

  • Cloudflare account with Workers AI enabled
  • Cloudflare Account ID
  • Cloudflare API token with Workers AI permissions

Cài đặt

clawhub install expysf98/cloudflare-image-gen

Chạy lệnh CLI, hoặc dán prompt vào Claude Code, Cursor, Codex hay coding agent bạn đang dùng.

Liên kết