Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add rexleimo/aios --skill rexai-image-generationgit clone --depth 1 https://github.com/rexleimo/aiosWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/rexleimo/aios/rexai-image-generation)<a href="https://agentmods.dev/skills/rexleimo/aios/rexai-image-generation"><img src="https://agentmods.dev/badge/skills/rexleimo/aios/rexai-image-generation.svg" alt="Measured on agentmods" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00080 | $0.02113 |
| Opus 5 | $0.00040 | $0.01056 |
| Sonnet 5 | $0.00016 | $0.00423 |
| Haiku 4.5 | $0.00008 | $0.00211 |
Grade A, and why
rexai-image-generation scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured today.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
- macOS/Linux: use `scripts/rexai-image-macos.sh`; it uses common system tools (`bash`, `curl`, `perl`, `base64`). How it starts
The opening of the file, as written. The whole thing — 184 lines — stays where its author put it; the contents beside it link to each section on GitHub.
RexAI Image Generation
Use RexAI's async image API to create images and return usable local files.
Quick Workflow
- Use
REXAI_API_KEYfor authentication. If it is missing, teach the user how to configure it for their platform before running the job. Read it live from the OS on Windows (powershell [Environment]::GetEnvironmentVariable('REXAI_API_KEY','Machine')) — a bash/PowerShell session started before the key was set holds a stale snapshot. - Choose the product ID (verify against the current instance's product list with one probe; these IDs have drifted before):
- Text-to-image:
gpt-image-2. - Image-to-image: the same
gpt-image-2product with the-Imageparameter — the relay selects the image-to-image route when the body carriesimages.gpt-image-2-i2idoes NOT exist (404 image_product_not_found); do not use it.
- Text-to-image:
- Pick the zero-install executor for the user's platform:
- Windows/Codex: use
scripts/rexai-image.ps1; it only needs built-in PowerShell/.NET. - macOS/Linux: use
scripts/rexai-image-macos.sh; it uses common system tools (bash,curl,perl,base64).
- Windows/Codex: use
- Use
scripts/rexai-image.mjsonly when Node is already available. - Report the local file path, job id, source URL if present, and expiry time if present.
Read references/api.md when you need endpoint details, supported sizes, error codes, or examples.
API Key Setup
First check whether the key is already available. Do not print the key value:
if ($env:REXAI_API_KEY) { "REXAI_API_KEY is set" } else { "REXAI_API_KEY is missing" }
If it is missing, tell the user to choose one setup path:
Windows PowerShell, current session only:
$env:REXAI_API_KEY = "cr_xxx"
Windows PowerShell, persistent for new terminals:
setx REXAI_API_KEY "cr_xxx"
macOS/Linux, current shell only:
export REXAI_API_KEY="cr_xxx"
macOS zsh, persistent for new terminals:
printf '%s\n' 'export REXAI_API_KEY="cr_xxx"' >> ~/.zshrc
What ships with it
9 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- agents/openai.yaml 280 B
- references/api.md 3.9 KB
- scripts/rexai-image-macos.sh 8.9 KB runs code
- scripts/rexai-image-macos.test.sh 1.4 KB runs code
- scripts/rexai-image.mjs 8.4 KB runs code
- scripts/rexai-image.ps1 8.5 KB runs code
- scripts/rexai-image.ps1.test.ps1 2.3 KB runs code
- scripts/rexai-image.skill.test.mjs 1.5 KB runs code
- scripts/rexai-image.test.mjs 1.4 KB runs code
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- today Changed · +16 lines 5b43bdba0e7d
- 7d ago First seen · 168 lines · 80 tokens per session scan A 10a1fd154b36
rexai-image-generation is a skill published in the GitHub repository rexleimo/aios (52 stars, last pushed today), licensed MIT. It adds 80 tokens to every session and 2,113 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other skills, from other repositories
Standardized Instagram skill for MediaUse. Includes Windows install, key onboarding, strict context/auth flow, full Instagram dynamic command map, and safety/rate controls.
bilibili
MediaUse bilibili skill usage guide. Includes full bilibili manifest command map, parameter guidance, and executable examples for search/get/read/user/collection/engage flows.
netflix
Use when handling MediaUse Netflix Tudum tasks, including list/get/search actions with guest-first dynamic commands, multi-platform direct switching, and safe execution guardrails.
audio-transcribe
Transcribe speech from audio files (mp3, m4a, wav, ogg, flac, webm) to text using the local whisper CLI — no API key. Use whenever a task hinges on the spoken content of an audio attachment.
ffmpeg
Process audio and video with the ffmpeg / ffprobe CLIs — convert, trim, extract audio, resize, change format, make GIFs, inspect media. Use for any audio/video transformation.
imagemagick
Edit and convert images with the ImageMagick magick CLI — resize, crop, convert format, compress, rotate, montage, annotate. Use for any still-image transformation.