Skip to content

JuneLearn/dsh-image2-draw

41Last commit Aug 15, 2026

dsh-image2-draw DSH plugin

This plugin enables text-to-image and image-to-image generation in DeepSeek Harness chat. It requires a baseURL and API key from a relay that exposes an OpenAI Images-compatible endpoint. The plugin provides dedicated tool cards for image generation and editing, with adaptive sizes and local file saving.

How to install the dsh-image2-draw DSH plugin

dsh plugin --profile web add github:JuneLearn/dsh-image2-draw

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

dsh-image2-draw DSH plugin data source

dsh-image2-draw DSH plugin snapshot date: Aug 16, 2026

discovered

What the dsh-image2-draw DSH plugin can do

  • Adds an Image2 Draw card under Settings > Plugins > Configurable plugins.
  • Provides image2-generate for 1-8 sequential text-to-image generations.
  • Provides image2-edit with 1-8 PNG, JPEG, or WebP reference images.
  • Supports adaptive portrait, landscape, and square sizes as well as validated custom dimensions.
  • Displays generated images in conversation with thumbnail, zoom, and Save As actions.
  • Saves images under outputs/image2/ in the session working directory without overwriting duplicates.
  • Stores API keys only in DSH credentials, never in settings document or plugin state.

Where the dsh-image2-draw DSH plugin fits

  • Generate images from text prompts in chat conversations.
  • Edit existing images by providing reference image paths and instructions.
  • Use a third-party relay to access image generation without a direct OpenAI subscription.
  • Create multiple images sequentially (up to 8) with consistent style.

Who the dsh-image2-draw DSH plugin is for

  • DeepSeek Harness users who need image generation capabilities.
  • Developers integrating OpenAI-compatible image APIs into their chat workflows.
  • Users who want to avoid injecting image context into DeepSeek model's vision-unaware input.

dsh-image2-draw DSH plugin limitations

  • Requires a third-party relay with an OpenAI Images-compatible API; you must provide your own baseURL and API key.
  • Image editing functionality depends on the relay's implementation; not all relays support edits.
  • Generated images are limited to PNG, JPEG, or WebP format; reference images are limited to 4MB each and 32MB total.
  • Timeout is configurable from 1 to 3600 seconds; HTTP 524 and timeout failures are not retried to avoid duplicate charges.
  • DeepSeek Harness is still in Developer Preview; plugin compatibility may break with updates.

dsh-image2-draw DSH plugin: from the repository README

Quoted from the JuneLearn/dsh-image2-draw README, the upstream source of the dsh-image2-draw DSH plugin. Copyright remains with the original authors.

Unable to generate images directly in DeepSeek Harness? This plugin adds Image2 generation through a third-party relay that exposes an OpenAI Images-compatible API. Configure only a `baseURL` and an `API Key`, then use `gpt-image-2` for text-to-image and image-to-image tasks in chat. [中文说明](./README.zh-CN.md) > **Third-party service recommendation (referral link)** > > If you are looking for an OpenAI-compatible API relay, you can take a look at > [WPIronman API](https://api.wpironman.top/register?aff=JUNE). This is my > referral link, and I may receive a referral benefit if you register through > it; any promotion or benefit is subject to the provider's current terms. This > plugin is independent of that service and does not require any particular > relay. Evaluate pricing, reliability, and privacy terms before choosing a > provider. > > New users can redeem the gift quota with code `99F509ABC6C38F77`. ## Related project Need independent reasoning-effort controls for third-party models in DeepSeek Harness? See my other plugin: [DSH Reasoning Settings](https://github.com/JuneLearn/dsh-reasoning-settings). It configures reasoning levels, provider defaults, and API wire values fo

Read the full READMERepository license: MIT

dsh-image2-draw DSH plugin questions

How do I install the DSH Image2 Draw plugin?

You can install it via npx: run `npx --yes -p @deepseek-ai/dsh dsh plugin --profile web add github:JuneLearn/dsh-image2-draw`. Alternatively, if you have the DeepSeek Harness source tree, use `pnpm dsh plugin --profile web add github:JuneLearn/dsh-image2-draw`. Both methods require Git and pnpm to be installed.

What API key and baseURL do I need to configure?

You need a third-party relay that exposes an OpenAI Images-compatible API. The plugin requires a baseURL (e.g., `https://example.com/v1`) and an API key from that relay. The default model is `gpt-image-2`. The plugin automatically appends `/images/generations` to the baseURL for generation and uses `/images/edits` for editing.

Can I edit images with this plugin?

Yes, the plugin provides the `image2-edit` tool. You can provide up to 8 reference images in PNG, JPEG, or WebP format, each up to 4MB and total 32MB. The editing functionality depends on your relay's support for the image edit endpoint.

Why are my generated images not displaying in the chat?

The plugin displays generated images in a dedicated tool card with thumbnails, zoom, and Save As actions. If images are not showing, check that your relay returns valid PNG, JPEG, or WebP responses. Also ensure that the plugin is properly configured and saved in Settings > Plugins > Configurable plugins > Image2 Draw.

Does this plugin store my API key securely?

Yes, the plugin stores API keys only in DSH credentials, which are separate from the regular settings document. The keys are never returned by the plugin state endpoint and are never injected into the DeepSeek model context. The plugin validates settings writes and does not expose keys in logs.