Generate images from a text description through gpt-image-1 on Gateway \"Prod\": EU and save them as files. Use when the user asks you to create an image. Each run is billed: confirm with the user first.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Image Generation?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/maimorylab-image-generation)
---
name: bootagent-image-generation
description: "Generate images from a text description through gpt-image-1 on Gateway \"Prod\": EU and save them as files. Use when the user asks you to create an image. Each run is billed: confirm with the user first."
---
# Image generation
Generated by BootAgent. It calls `gpt-image-1` on the user's Gateway "Prod": EU account. BootAgent rewrites this Skill when the model or Provider changes, so do not edit it.
## When to use
When the user asks you to create an image: an illustration, an icon draft, a mock-up, a diagram-style picture.
## Command
Run the script from the user's working directory, using the absolute path to this Skill:
```bash
node <this Skill's directory>/scripts/run.mjs generate --prompt "<description>" [--size <WxH>] [--n <count>] [--out <directory>]
```
- `--prompt`: a full description of the image to create.
- `--size`: for example `1024x1024`. Leave it out unless the user asks; valid sizes depend on the model.
- `--n`: how many images, 1 to 4. Default 1.
- `--out`: directory for the files. Default `~/.bootagent/output`, outside the Skill directory.
- `--timeout`: seconds to wait. Default 300.
The saved file paths are printed to stdout, one per line. Existing files are never overwritten.
## Rules
- Every run costs money. Before each run, tell the user what you are about to generate and how many images, and wait for them to agree.
- Never print, echo or log environment variables, `~/.bootagent/skill-env/my-gateway.env`, or anything that could reveal the API key. The script reads the key itself; you never need it.
- Only send files the user asked about. They go to the user's own Provider and nowhere else.
## Exit codes
| Code | Meaning | What to tell the user |
| --- | --- | --- |
| 0 | Success | Report the result. |
| 2 | Bad arguments or input file | Fix the command, or ask the user for the right file. |
| 3 | Setup problem: Node.js older than 18, or no API key found | Ask the user to restart the Agent so it picks up `BOOTAGENT_MY_GATEWAY_API_KEY`, or to reinstall this Skill from BootAgent. |
| 4 | The Provider refused the request | Show the Provider's message. The model may not support this input; the user can choose another model in BootAgent. |
| 5 | The Provider rejected the API key | Ask the user to check the Gateway "Prod": EU key in BootAgent. |
| 6 | The Provider was unreachable, busy or timed out | Suggest trying again later. |
`node <this Skill's directory>/scripts/run.mjs check` confirms the key is available without sending a request.