image
Reviewed
at commit 50cf19e
Sends data to OpenAI (api.openai.com), only when you set OPENAI_API_KEY; or the API base URL you set in IMAGE_API_BASE
An image tool for the agent: make or edit pictures through a pluggable engine (default: the official OpenAI Images API). Room to grow into video.
0 upvotes
Log in to upvote or save- Made by
- Nekyia Labs
- Pinned commit
-
50cf19e57dabb2fd119cee4912cd035a00c6692a - What we checked
-
Gives Claude an 'image' tool that makes or edits pictures. The prompt and any reference images Claude names (local files or URLs) go to the OpenAI Images API using your own OPENAI_API_KEY, which bills your OpenAI account. The PNG is saved in ~/generated-images. Without a key it just reports an error.
Review details
Static review of the source at the pinned commit; not run. On session.start it registers the tool image (mcp__image__image); its tool.call hook runs its own bin/imagegen.py with python3 through $.process.run (argument list, no shell, 330 s timeout), passing prompt, size (checked against a fixed list), quality, name and up to 8 refs. imagegen.py uses only the Python standard library: it sends the prompt (JSON to /images/generations) or the prompt plus reference images (multipart to /images/edits) to IMAGE_API_BASE (default https://api.openai.com/v1) with the bearer token from OPENAI_API_KEY, optionally downloads the returned image URL, and writes the PNG to IMAGE_OUT_DIR (default ~/generated-images); the file name slug is sanitised. Reference images may be any local path the agent chooses (read and uploaded to the API), http(s) URLs (fetched, limit 20 MB) or data URLs. Setting IMAGE_ENGINE=module:/path loads and executes a Python file you name (opt-in, disclosed; engines/example_engine.py was read and only returns a 1x1 PNG). The key is never printed. Not reviewed: python3 itself. No npm dependencies.
- What it uses
-
- Reads your prompts: no
- Sees tool calls: no
- Blocks or changes tool calls: no
- Reads or writes files: yes
- Runs programs on your machine: yes
- Calls the model (uses tokens): no
- Sends data over the network: yes
- Stores data: no
- Shows something on screen: no
- Hooked events
Made this mod? Add a badge to your README
Paste this into your README. The badge says reviewed once the current version has been reviewed, and links readers to this page.
[](https://modsforclaude.com/mods/image/)