dsh-tool-imagegen
Run the following command in DeepSeek Harness:
dsh plugin install Pappet/dsh-tool-imagegen
Paste the following prompt into your AI chat to install this plugin:
Run dsh plugin install Pappet/dsh-tool-imagegen to install the plugin; the full source is available at https://github.com/Pappet/dsh-tool-imagegen .
About this plugin
DeepSeek Harness has no built-in image generation, and dsh-tool-imagegen closes that gap. It exposes a single generate_image tool backed by OpenRouter's unified Image API, letting the model request image creation directly inside a conversation. Results are written to the workspace with an exact USD cost returned, and the generated images render inline in the chat so the model can read them on the next turn and iterate.
The design centers on capability gating: every parameter—resolution, aspect ratio, count, seed, output format, and more—is validated against the model's live capability record fetched from the models listing endpoint rather than hard-coded. An unsupported parameter named in an explicit call produces a clear error that names both the parameter and the model; config defaults the model cannot honor are silently dropped and reported in droppedDefaults. Image-to-image editing works through input_references, accepting workspace paths or http(s) URLs with per-model limits on reference count (up to 14 for Seedream, 16 for the GPT-Image family). Files are identified by magic bytes, never by extension. Aliases serve double duty as the model's vocabulary and as an access allowlist: a model without an alias simply cannot be reached, eliminating silent failures from mistyped names. The Plugins settings card lets you edit the alias table and tunables at runtime with immediate effect and no restart.
It suits Harness users who need frequent image generation or reference-based editing in their workflows, especially those routing through OpenRouter for multi-model image access and who want the model itself to read generated results for multi-turn iteration.
Use Cases
- Generate and view an image from a single prompt inside a conversation
- Drive Seedream or GPT-Image variants and edits with reference images
- Let the model read generated results and iterate across multiple turns
Best For
- DeepSeek Harness users who need image generation in their workflow
- Developers routing multiple image models through OpenRouter
- Teams that require the model to read and iterate on generated images
Related Plugins
A unified suite combining hot runtime injection, task-aware thinking-mode routing, and a graded session protocol with red-team gates to sustain model diligence across long-horizon inference.
ModLens is a vision plugin for DeepSeek Harness that gives text-only models sight by reading images pasted directly into chat, with zero-config setup and multiple vision engines.
On-demand vision for text-only DeepSeek Harness agents: built-in free keyless vision chain and 14 vision tools, routing image turns as tool calls to vision models with pixel fidelity, no Python needed, one-command install.
Give text-only models in DeepSeek Harness eyes, enabling image Q&A, long-screenshot OCR, UI restoration, and GUI visual tasks.