AI Agent Hub
Back to plugins
🖥️

dsh-tool-image-gen

Client Updated 2026.08.17

Run the following command in DeepSeek Harness:

dsh plugin install zhangjunjesse/dsh-tool-image-gen

Paste the following prompt into your AI chat to install this plugin:

Run dsh plugin install zhangjunjesse/dsh-tool-image-gen in your DeepSeek Harness terminal to install this plugin; the source repository is hosted at https://github.com/zhangjunjesse/dsh-tool-image-gen .

About this plugin

Generating images inside a DSH conversation typically means hand-rolling async task submission, polling, file downloads, and format compression on your own, with the risk of leaking API credentials into the chat context. dsh-tool-image-gen wraps all of that behind two clean tool calls: image_gen for text-to-image and image-to-image, and image_upload for turning a local file into a public URL. You provide a prompt or a local path, and the plugin takes care of the rest.\n\nUnder the hood, the plugin creates a task via POST, polls the result with GET, downloads the image into the workspace generated/ directory, and registers it in the DSH attachment system. Files larger than 5 MB are automatically compressed to JPEG via sips for inline preview, while the reply includes both a local path and a public URL. The referenceImages field accepts either a public URL or a local file path; when a local path is given, the plugin transparently uploads it through the ToAPIs upload endpoint. The API key is read exclusively from an environment variable or ~/.dsh/.credentials.yaml and never appears in the conversation. Aspect ratios range from 1:1 to 21:9, resolutions cover 1k, 2k, and 4k, and batches of n images are supported per call.\n\nThis plugin is a good fit for developers, design teams, and automation workflows that rely on ToAPIs-hosted models such as GPT-Image-2 or Gemini image series and want to generate product mocks, marketing assets, or on-the-fly visuals inside a DSH agent loop without manually scripting curl calls and file management.

Use Cases

  • Generate marketing visuals or product mockups directly within a DSH conversation
  • Iterate on images using local reference files for rapid design exploration
  • Batch-produce images at various sizes and resolutions for multi-platform distribution

Best For

  • Indie developers who frequently call image generation APIs
  • Automation teams embedding visual output into agent workflows
  • Creative teams needing quick image drafts with inline previews