azure-image-gen

Generate a single image via the Azure OpenAI Images REST API and return its absolute path in JSON.

Updated Feb 6, 2026
One-click install
npx skills add https://github.com/neojarvis0704/azure-image-gen --skill azure-image-gen
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: azure-image-gen
Source: https://github.com/neojarvis0704/azure-image-gen/tree/main
Command: npx skills add https://github.com/neojarvis0704/azure-image-gen --skill azure-image-gen

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires requests, openai, and includes scripts (resource) components.

What problem does it solve?

This skill enables generating a single image using Azure OpenAI Images REST API and returns the absolute file path for inline display in OpenClaw, reducing manual steps and enabling automated image production.

Core Features & Use Cases

  • Generate exactly one image per invocation via the Azure OpenAI Images REST API.
  • Outputs a JSON object with the absolute path to the image for OpenClaw to attach inline.
  • Clearly defined environment and deployment requirements, with guidance on required variables.

Quick Start

Generate a single 1024x1024 image of a cyberpunk cat in Hong Kong at night and display it inline.

Frequently Asked Questions about azure-image-gen

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate a single image via the Azure OpenAI Images REST API?

You can generate a single image via the Azure OpenAI Images REST API by invoking the script with your prompt. It saves the image to disk and returns a JSON object containing the absolute file path for inline display.

What's the best way to display an Azure OpenAI generated image inline in OpenClaw?

The best way to display an Azure OpenAI generated image inline in OpenClaw is to use this script. It returns a JSON object with the absolute file path to the saved image, which OpenClaw uses to attach and render the media inline automatically.

Do I need specific environment variables to generate images with Azure OpenAI?

Yes, you need specific environment variables configured to generate images with Azure OpenAI. The skill provides guidance on required environment and deployment variables to authenticate and execute the REST API successfully.

Can I use Python requests and openai libraries to script Azure image generation?

Yes, you can use Python requests and openai libraries to script Azure image generation. This skill uses these dependencies to interact with the Azure OpenAI Images REST API and save the resulting image directly to disk.

Does the Azure OpenAI image generation script output JSON for inline media?

Yes, the Azure OpenAI image generation script outputs a JSON object. This JSON contains the absolute path to the saved image file, enabling automated inline media display within OpenClaw environments.