ergouzi-image-gen

ergouzi-image-gen is a skill for Codex from aiman-labs/ergouzi-agent-skills. It costs 90 tokens per session (1,617 once invoked), scanned A, original, MIT.

A skill for sending image-generation, image-editing, virtual try-on, and image-upscaling jobs to the Ergouzi service. It can handle local files and web image URLs, wait for results, and download them.

In plain words
What is it for?
Use it to create or edit images, try clothing on a person, upscale images, resume or cancel a job, and download its results.
Why use it?
It provides the steps needed to manage the service's asynchronous image jobs instead of treating image generation as an immediate request. It also checks configuration and handles task continuation or cancellation.

Skill for Codex

Written for Codex: agents/openai.yaml present. Also seen: mentions Codex.

Good fit Use it to create or edit images, try clothing on a person, upscale images, resume or cancel a job, and download its results.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/aiman-labs/ergouzi-agent-skills/ergouzi-image-gen
Install

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.

Any agent
npx skills add aiman-labs/ergouzi-agent-skills --skill ergouzi-image-gen
Clone the repo
git clone --depth 1 https://github.com/aiman-labs/ergouzi-agent-skills

Made for: Codex.

Wrote 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.

agentmods badge for ergouzi-image-gen

README.md
[![agentmods](https://agentmods.dev/badge/skills/aiman-labs/ergouzi-agent-skills/ergouzi-image-gen/github.svg)](https://agentmods.dev/skills/aiman-labs/ergouzi-agent-skills/ergouzi-image-gen)
Your own site
<a href="https://agentmods.dev/skills/aiman-labs/ergouzi-agent-skills/ergouzi-image-gen"><img src="https://agentmods.dev/badge/skills/aiman-labs/ergouzi-agent-skills/ergouzi-image-gen/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for ergouzi-image-gen

Your own site · 80×15
<a href="https://agentmods.dev/skills/aiman-labs/ergouzi-agent-skills/ergouzi-image-gen"><img src="https://agentmods.dev/badge/skills/aiman-labs/ergouzi-agent-skills/ergouzi-image-gen.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 90 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,617 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00090 $0.01617
Opus 5 $0.00045 $0.00809
Sonnet 5 $0.00018 $0.00323
Haiku 4.5 $0.00009 $0.00162

Measured 9d ago against content hash f63b2529dc0b, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

ergouzi-image-gen scanned grade A with 0 findings 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 9d ago.

The scan reads SKILL.md. This mod also ships 4 executable files (scripts/client.py, scripts/configure.py, scripts/media.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/ergouzi-image-gen/SKILL.md · 120 lines

How it starts

The opening of the file, as written. The whole thing — 120 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Ergouzi Image Gen

Use this Skill as a thin adapter between Codex and the existing Ergouzi image API. Codex prepares the model input; the scripts only handle credentials, local file conversion, request submission, task polling, and result download.

Prerequisites

  • Require Python 3.10 or newer and network access to https://ergouzi.life.
  • Use the initialized user config by default. ERGOUZI_MEDIA_API_KEY and ERGOUZI_MEDIA_BASE_URL are explicit runtime overrides; generic ERGOUZI_API_KEY and ERGOUZI_BASE_URL are accepted when no config exists.
  • If credentials are missing, ask the user to initialize them locally with python scripts/configure.py. Never ask the user to paste a key into chat.
  • If the optional ergouzi-media-mcp Codex plugin is installed, prefer its check_configuration, list_models, get_model_schema, create_prediction, get_prediction, cancel_prediction, and download_prediction tools for the API lifecycle. Keep the Python runner as the fallback when the MCP tools are unavailable.
  • Accept JPEG, PNG, and WebP inputs as directly downloadable HTTPS URLs, data URIs, or local files that fit the existing 4 MiB JSON request limit. Use --image, --person-image, --garment-image, or --reference-pose for common local-file workflows. In input JSON, put { "$local_file": "C:/path/image.png" } in place of a media URL. The runner converts local files to data URIs; use an HTTPS URL when the expanded request would exceed the API limit.

Workflow

  1. Submit a paid prediction only when the user explicitly asks to generate, edit, try on, upscale, or remove the background of an image.
  2. Honor an explicit model choice. Otherwise let Codex select one of the six models from the task's required input/output capability; do not hide models or apply server-routing policy.
  3. Read references/model-reference.md for the selected model's objective API contract. Use --prompt only when that model exposes a prompt field; use the e-rmbg options from its input JSON example rather than --prompt. Use --input-file, --input-json, or stdin for the complete model input object, without the outer { "input": ... } envelope. Convenience arguments override the corresponding JSON fields. The runner resolves $local_file objects before submission and otherwise leaves input values unchanged. Prefer a UTF-8 JSON file for structured input across operating systems; files and stdin may include a UTF-8 BOM. The runner submits e-rmbg through its fixed deployment version endpoint; callers still select it by the public model name and must not add a version field to the model input.
  4. Prefer the MCP tools when available. Otherwise run scripts/run.py predict. Both paths create one logical task, reuse the same idempotency key for bounded transport retries, record the task_* ID, poll to a terminal state, and download successful outputs. If a submission is interrupted before the task ID is returned, retry the exact request with the printed --idempotency-key; do not start a new paid request with a new key.
  5. Report the model, task ID, terminal status, and absolute saved paths.
  6. If execution was interrupted or timed out, resume with status --wait --download. Do not create a replacement task unless the user explicitly asks.

Read the full file on GitHub · 120 lines

Files

What ships with it

7 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.

Changes

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.

  1. 9d ago Changed · +8 lines · +12 tokens per session f63b2529dc0b
  2. 12d ago First seen · 112 lines · 78 tokens per session scan A 3ae2b47aaea9

Subscribe to this mod's changes

ergouzi-image-gen is a skill published in the GitHub repository aiman-labs/ergouzi-agent-skills (5 stars, last pushed 2d ago), licensed MIT. It adds 90 tokens to every session and 1,617 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.