generate-images-mai
Installation
SKILL.md
Generate and edit images with MAI-Image-2.5
Create an image from text or edit a supplied JPEG or PNG, save the result, and verify that the output is usable.
Requirements
- Python 3.10+.
- A
.envfile in the current directory or one of its parents:
AZURE_API_KEY=your-key
AZURE_IMAGE_ENDPOINT=https://your-resource.services.ai.azure.com/mai/v1/images/generations
The endpoint can be the resource root, /mai/v1/images, /generations, or /edits; the script selects the operation-specific path.
Never read, print, return, commit, or embed the API key in generated files, commands, logs, or chat. Do not create a .env containing a real secret. If configuration is missing, tell the user which variable to add without asking them to send its value through chat.