imagegen
Installation
SKILL.md
imagegen
Generate images through the Azure OpenAI-compatible image generation API and save the returned base64 image data to local files.
Defaults
- Endpoint/base URL:
AZURE_OPENAI_BASE_URL, orhttps://maritimeai-resource.openai.azure.com/openai/v1/if unset. - API key:
AZURE_OPENAI_API_KEYis required. - Model/deployment:
AZURE_OPENAI_IMAGE_MODEL, orgpt-image-2if unset. - API version header:
AZURE_OPENAI_API_VERSION, orpreviewif unset. - Output directory:
./generated-images/if the user does not specify a file path.
Never write API keys into files, command examples, logs, or final responses.
Standard Workflow
- Collect the prompt. If the prompt is missing, ask for it.
- Choose output settings. Default to
1024x1024,high,png, andn=1unless the user specifies otherwise. - Run the Node CLI from the skills workspace or with an absolute script path: