Skip to content

Bald0Wang/dsh-imggenerate

30Last commit Aug 14, 2026

dsh-imggenerate DSH plugin

This plugin adds an image_generate tool to DeepSeek Harness, allowing large language models to create images directly. It supports two providers: Volcano (default) with doubao-seedream model and Qwen with qwen-image-3.0-pro model. The plugin is pure JavaScript and requires no build steps.

How to install the dsh-imggenerate DSH plugin

dsh plugin --profile demo add github:Bald0Wang/dsh-imggenerate

Copying does not run this command. Review the repository and version before installing the dsh-imggenerate DSH plugin.

dsh-imggenerate DSH plugin data source

dsh-imggenerate DSH plugin snapshot date: Aug 16, 2026

discovered

What the dsh-imggenerate DSH plugin can do

  • Text-to-image generation via Volcano or Qwen provider
  • Image-to-image generation (referenceImage) with Volcano provider
  • Prompt extension (promptExtend) with Qwen provider
  • Configurable image size (1K, 2K, 4K or custom WxH) and watermark toggle for Volcano
  • Timeout and endpoint configuration per provider

Where the dsh-imggenerate DSH plugin fits

  • Generate illustrations or concept art from text descriptions
  • Create variations of an existing image using referenceImage
  • Enhance short prompts automatically with Qwen's promptExtend
  • Integrate image generation into DSH-based AI workflows

Who the dsh-imggenerate DSH plugin is for

  • DSH users who need image generation capabilities in their AI agents
  • Developers building applications that require automated image creation from text

dsh-imggenerate DSH plugin limitations

  • Requires valid API keys for at least one provider (Volcano or Qwen); no keys are bundled
  • Generated image URLs from providers expire in approximately 24 hours; must be downloaded promptly
  • Volcano provider has watermark enabled by default, can be disabled via config
  • Only supports the two listed providers; no custom provider integration

dsh-imggenerate DSH plugin: from the repository README

Quoted from the Bald0Wang/dsh-imggenerate README, the upstream source of the dsh-imggenerate DSH plugin. Copyright remains with the original authors.

DeepSeek Harness 图片生成插件:给 agent 注册一个 `image_generate` 工具,让 dsh 里的大模型可以直接画图。 双通道支持: | Provider | 模型 | 能力 | |---|---|---| | `volcano`(火山方舟,默认) | `doubao-seedream-5-0-pro-260628` | 文生图、图生图(`referenceImage`)、size 1K/2K/4K 或 WxH、水印开关 | | `qwen`(阿里 MaaS) | `qwen-image-3.0-pro` | 文生图、`promptExtend` 提示词扩写 | 纯 JavaScript、零构建步骤,安装时无需 pnpm 构建授权。 ## 安装 ### 方式一:装进 profile(推荐) ```sh dsh plugin --profile demo add github:Bald0Wang/dsh-imggenerate dsh --profile demo ``` 或从本地目录 / npm / tarball 安装: ```sh dsh plugin --profile demo add ./dsh-image-gen # 本地目录 dsh plugin --profile demo add dsh-image-gen # npm(如已发布) dsh plugin --profile demo add ./dsh-image-gen-0.1.0.tgz ``` ### 方式二:不安装,直接 overlay ```sh git clone https://github.com/Bald0Wang/dsh-imggenerate.git cd dsh-imggenerate && npm install cp quick.example.cordis.yml quick.cordis.yml # 填入你的 key 与绝对路径 npx @deepseek-ai/dsh web --patch "$PWD/quick.cordis.yml" ``` ## 配置 API Key(必做) 插件不携带任何密钥。二选一: **A. profile 用户层(推荐)** — 编辑 `$DSH_HOME/profiles/<name>/cordis.patch.yml`(`dsh web` 对应 `web` profile),覆盖 `image-gen` 行(用户层在包层之后生效,需重述整个 config): ```yaml - id: image-gen config: defaultProvider: volcano qwenApiKey: 'sk-ws-

Read the full READMEThe repository declares no license. Check with the authors before using it.

dsh-imggenerate DSH plugin questions

How do I configure API keys for the image generation plugin?

You can set API keys either via environment variables (DASHSCOPE_API_KEY for Qwen, ARK_API_KEY for Volcano) or by editing the profile's cordis.patch.yml under the image-gen config section. The explicit config values take precedence over environment variables. For example, add 'qwenApiKey' and 'volcanoApiKey' under the config of the image-gen plugin.

How do I switch between Volcano and Qwen providers?

You can set the default provider in the plugin config by setting 'defaultProvider' to 'volcano' or 'qwen'. Alternatively, when calling the image_generate tool, you can pass the 'provider' parameter to override the default for a single request. The valid values are 'volcano' and 'qwen'.

Can I customize the image size?

Yes, you can set the size parameter when calling the tool. For Volcano, the default is '2K', but you can use '1K', '2K', '4K', or a custom format like 'WxH' (e.g., '1024x768'). For Qwen, the size support depends on the model; refer to the model documentation. You can also set a default size via the 'volcanoSize' config option.

The generated image URLs expire. How do I keep the images?

The plugin returns image URLs in the tool result. These URLs are typically valid for 24 hours. To keep the images, you should download them immediately after generation, for example by using a script that fetches the URL and saves the file locally. The plugin does not store images itself.

How do I verify that the plugin is installed correctly?

After installation, start DSH and check the startup logs for the message '[image-gen] registered image_generate tool'. You can also open a new session and ask the model to 'use image_generate to draw a ...' to test. Alternatively, run 'dsh --profile <name> --dump-config' to see if the image-gen layer is included.