← Back to Skills Marketplace
abhibavishi

Azure Image Gen

by abhibavishi · GitHub ↗ · v1.0.0
cross-platform ⚠ suspicious
742
Downloads
0
Stars
1
Active Installs
1
Versions
Install in OpenClaw
/install azure-image-gen
Description
Generate images using Azure OpenAI DALL-E. Supports batch generation, custom prompts, and outputs a gallery.
README (SKILL.md)

Azure Image Gen

Generate images using Azure OpenAI's DALL-E deployment.

Setup

Required Environment Variables

export AZURE_OPENAI_ENDPOINT="https://your-resource.openai.azure.com"
export AZURE_OPENAI_API_KEY="your-api-key"
export AZURE_OPENAI_DALLE_DEPLOYMENT="your-dalle-deployment-name"

Or create a .env file in the skill directory.

API Version

Default: 2024-02-01 (supports DALL-E 3)

Usage

Basic Generation

python3 /Users/abhi/clawd/skills/azure-image-gen/scripts/generate.py --prompt "A futuristic city at sunset"

Multiple Images

python3 /Users/abhi/clawd/skills/azure-image-gen/scripts/generate.py \
  --prompt "Professional blog header for a tech startup" \
  --count 4

Custom Size & Quality

python3 /Users/abhi/clawd/skills/azure-image-gen/scripts/generate.py \
  --prompt "Minimalist illustration of cloud computing" \
  --size 1792x1024 \
  --quality hd

Specify Output Directory

python3 /Users/abhi/clawd/skills/azure-image-gen/scripts/generate.py \
  --prompt "Abstract data visualization" \
  --out-dir ./blog-images

Options

Flag Default Description
--prompt Required Image description
--count 1 Number of images to generate
--size 1024x1024 Image size: 1024x1024, 1792x1024, 1024x1792
--quality standard Quality: standard or hd
--style vivid Style: vivid or natural
--out-dir ./azure-images Output directory
--api-version 2024-02-01 Azure OpenAI API version

Output

  • PNG images saved to output directory
  • manifest.json with prompt-to-file mapping
  • index.html gallery for easy preview

Blog Image Prompts

For blog headers, try prompts like:

# Tech/SaaS
"Minimalist isometric illustration of cloud migration, blue and white color scheme, clean lines, professional"

# Comparison posts
"Split screen illustration showing old vs new technology, warm vs cool colors, modern flat design"

# How-to guides
"Clean illustration of a step-by-step process, numbered steps floating in space, soft gradients"

# Cost/pricing
"Abstract visualization of savings and growth, upward arrows, green accents, professional business style"

Troubleshooting

401 Unauthorized: Check your AZURE_OPENAI_API_KEY

404 Not Found: Verify your AZURE_OPENAI_DALLE_DEPLOYMENT name matches exactly

Content Policy: Azure has strict content filters. Rephrase prompts that get blocked.

Usage Guidance
This package appears to do what it claims (generate images via Azure OpenAI), but there are a few red flags to consider before installing: - Metadata mismatch: The registry entry lists no required environment variables, but both SKILL.md and the script require AZURE_OPENAI_ENDPOINT, AZURE_OPENAI_API_KEY, and AZURE_OPENAI_DALLE_DEPLOYMENT. Treat the script as needing these secrets. - Secrets handling: The script reads a .env in the skill directory and also reads environment variables. Avoid storing long‑lived or highly privileged credentials in plain .env files in shared locations. Use a least-privilege API key and rotate/revoke it if used for testing. - Paths in README: Example commands use an absolute path (/Users/abhi/...). Update examples to your local path before running. - Network behavior: The script will send your prompt and API key to your configured Azure OpenAI endpoint; ensure you trust that Azure resource and its billing/usage implications. - Code review: The script is short and readable; if you are unsure, run it in a sandbox or inspect/execute it in a controlled environment first. If you proceed: provide a dedicated Azure OpenAI key with minimal permissions, avoid committing the .env to source control, run the script in a non-privileged directory, and verify the endpoint and deployment names are correct. If uncertain about the source (homepage unknown, owner unverified), prefer testing in an isolated environment or request the publisher to correct the registry metadata to declare the required credentials.
Capability Analysis
Type: OpenClaw Skill Name: azure-image-gen Version: 1.0.0 The skill bundle is designed for legitimate Azure DALL-E image generation. However, the `scripts/generate.py` file contains a Cross-Site Scripting (XSS) vulnerability in the `create_gallery_html` function, where the user-provided or API-revised prompt is embedded directly into the `index.html` without sanitization, allowing for potential script execution when the HTML file is viewed. Additionally, the `--out-dir` argument allows writing files to an arbitrary path, which could be abused for path traversal if the agent is instructed to specify a sensitive directory. These are vulnerabilities, not evidence of intentional malicious behavior by the skill itself.
Capability Assessment
Purpose & Capability
The name/description, SKILL.md, and scripts/generate.py all describe an Azure OpenAI DALL‑E image generator — the requested network calls, outputs, and files are coherent with that purpose. However, the registry metadata claims no required environment variables or primary credential, while both the SKILL.md and the script require AZURE_OPENAI_ENDPOINT, AZURE_OPENAI_API_KEY, and AZURE_OPENAI_DALLE_DEPLOYMENT. This metadata omission is inconsistent and could mislead users.
Instruction Scope
SKILL.md instructs running the included Python script and only references the Azure OpenAI API and local output files (images, manifest.json, index.html). The script reads a .env located in the skill directory (Path(__file__).parent.parent / '.env') and otherwise only uses environment variables and the network to the Azure endpoint. Minor concern: SKILL.md examples use an absolute, user-specific path (/Users/abhi/...), which is non-portable and suggests the README was copied from a local environment without sanitization.
Install Mechanism
No install spec is provided and there are no downloads or extract steps — this is instruction-only with a single Python script. That reduces install-time risk; nothing in the package will be automatically fetched or executed beyond the shipped script.
Credentials
The script requires three Azure-related environment variables (endpoint, API key, deployment name) which are appropriate for the stated purpose. However, the skill metadata does not declare these requirements nor a primary credential, creating a misleading representation of required secrets. Because the skill needs an API key (sensitive secret) but the registry metadata omits this, users may not realize they must supply a credential or understand the blast radius.
Persistence & Privilege
The skill does not request permanent inclusion (always: false) and does not modify other skills or system-wide settings. It writes generated images and a manifest/index.html to a user-specified output directory only, which is expected behavior for this functionality.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install azure-image-gen
  3. After installation, invoke the skill by name or use /azure-image-gen
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
Initial release: Azure OpenAI DALL-E image generation with batch support and HTML gallery output
Metadata
Slug azure-image-gen
Version 1.0.0
License
All-time Installs 1
Active Installs 1
Total Versions 1
Frequently Asked Questions

What is Azure Image Gen?

Generate images using Azure OpenAI DALL-E. Supports batch generation, custom prompts, and outputs a gallery. It is an AI Agent Skill for Claude Code / OpenClaw, with 742 downloads so far.

How do I install Azure Image Gen?

Run "/install azure-image-gen" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Azure Image Gen free?

Yes, Azure Image Gen is completely free (open-source). You can download, install and use it at no cost.

Which platforms does Azure Image Gen support?

Azure Image Gen is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Azure Image Gen?

It is built and maintained by abhibavishi (@abhibavishi); the current version is v1.0.0.

💬 Comments