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

ms-foundry-image-gen

bởi jacqueskang

Coding Agents & IDEs
426Lượ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

Azure Foundry image generation skill for OpenClaw; generates images via a Foundry deployment and returns image.

Mô tả

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

Generates images through an Azure Foundry (Cognitive Services / OpenAI) deployment and returns the result as raw PNG/JPEG bytes or a URL. Requires a configured Foundry endpoint, API key, and deployment name.

Wraps Azure Foundry's image generation REST API into a single, environment-variable-driven skill, avoiding manual curl construction in each workflow.

Khi nào nên dùng

  • Generate product mockup images from text prompts
  • Create visual assets for automated content pipelines
  • Batch-produce illustrations for internal tools
  • Test Azure AI image model deployments via CLI
  • Integrate image generation into OpenClaw agent workflows

Quy trình ví dụ

ĐẦU VÀO

User asks: generate a 1024x1024 PNG of a red fox

AGENT
  1. 1

    Validates FOUNDRY_ENDPOINT format to reject malformed URIs

  2. 2

    Constructs the deployment URL from FOUNDRY_ENDPOINT, FOUNDRY_DEPLOYMENT, and FOUNDRY_API_VERSION

  3. 3

    Sends a POST request with the prompt payload using curl and the FOUNDRY_API_KEY header

  4. 4

    Decodes the base64 image from the JSON response and writes it to /tmp/generated_image.png

ĐẦU RA

PNG file saved at /tmp/generated_image.png

Yêu cầu

  • FOUNDRY_API_KEY environment variable
  • FOUNDRY_ENDPOINT environment variable (Azure Cognitive Services base URI)
  • FOUNDRY_DEPLOYMENT environment variable (name of the Foundry deployment)
  • Azure account with an active Foundry image generation deployment

Cài đặt

clawhub install jacqueskang/ms-foundry-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