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

siliconflow-image-gen

bởi lilei0311

Git & GitHub
478Lượt tải do clawskills.sh công bố
2Sao
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 SiliconFlow API (FLUX.1, Stable Diffusion, etc.)

Mô tả

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

Generates images via the SiliconFlow API using models like FLUX.1-schnell, FLUX.1-dev, and Stable Diffusion 3.5. Reads API keys from environment variables or OpenClaw config and saves images locally.

Provides access to both free and paid image generation models through a single API key, with automatic credential detection from existing OpenClaw config.

Khi nào nên dùng

  • Generating product mockup images from text descriptions
  • Creating background art for presentations or documents
  • Quickly prototyping visual concepts with free FLUX.1-schnell
  • Batch-generating images with custom output paths
  • Testing different model quality/cost tradeoffs for image tasks

Quy trình ví dụ

ĐẦU VÀO

User asks: Generate an image of a sunset over mountains and save it to my desktop

AGENT
  1. 1

    Reads SILICONFLOW_API_KEY from environment or ~/.openclaw/openclaw.json

  2. 2

    Calls SiliconFlow API with the prompt using the default FLUX.1-schnell model

  3. 3

    Receives image URL or binary from api.siliconflow.cn

  4. 4

    Downloads and saves the image to the specified output path

ĐẦU RA

Image file saved to ~/Desktop/sunset.png

Yêu cầu

  • SILICONFLOW_API_KEY environment variable
  • SiliconFlow account to obtain an API key

Cài đặt

clawhub install lilei0311/siliconflow-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