dsh-image-gen feature overview

简体中文 · English

# 🎨 dsh-image-gen ### Native AI image creation suite for DeepSeek Harness

In-chat generation and editing · Studio batch creation · Multi-model comparison · 500+ prompt inspirations · Gallery management · Local ComfyUI

npm version npm downloads CI GitHub stars License: MIT LINUX DO

Quick Start · Core Capabilities · Provider Support · FAQ


**A complete AI image creation workflow for DeepSeek Harness.** `dsh-image-gen` goes far beyond basic in-chat image generation. It brings **continuous natural-language editing**, **Studio batch creation**, **side-by-side multi-model comparison**, a **500+ prompt inspiration library**, and **local ComfyUI** workflows into DSH. It supports **Google Gemini, OpenAI Images / Compatible, ByteDance Seedream, Aliyun DashScope**, and private local workflows. It uses a BYOK model and can isolate generated assets by workspace. ```bash pnpm dsh plugin --profile web add dsh-image-gen@latest ``` > **Update notice:** This release includes major changes. Existing users should update to the latest version. dsh-image-gen complete AI image creation workflow --- ## One plugin, four creative workflows | Entry | Best for | What you can do | | :--- | :--- | :--- | | 💬 **Chat** | Letting the Agent understand natural-language requests | Text-to-image, image-to-image, multi-image reference, continuous editing, and in-place regeneration | | 🎛️ **Studio** | Precise control over creation parameters | Batch generation, multiple reference images, and advanced canvas | | ✨ **Inspiration** | Finding compositions, styles, and prompts | Browse 500+ examples, search and filter, favorite, copy, or send a prompt to Studio | | 🖼️ **Gallery** | Organizing and reusing generated results | Search, filter, favorite, regenerate, download, batch-manage, and isolate by workspace | --- ## Quick Start ### 1. Install the plugin Requirements: DeepSeek Harness stable version, Node.js `^22.19.0` or `>= 24.0.0`. Run this command from your DeepSeek Harness project root: ```bash pnpm dsh plugin --profile web add dsh-image-gen@latest ``` > 💬 **Power-user tip:** You can also send this directly to the Agent in a DSH chat:
> `Install the image generation plugin by running this command in the terminal: pnpm dsh plugin --profile web add dsh-image-gen@latest`
Alternative installation methods (global / GitHub / local development) ```bash # If dsh is installed globally: dsh plugin --profile web add dsh-image-gen@latest # Install the latest source directly from GitHub: pnpm dsh plugin --profile web add git+https://github.com/shanliuling/dsh-image-gen.git # Clone the repository and install it for local development: git clone https://github.com/shanliuling/dsh-image-gen.git pnpm dsh plugin --profile web add ./dsh-image-gen ```
### 2. Configure a Provider After restarting DSH, open: **Settings → Plugins → Plugin Configuration → Image Generation** Choose a Provider, enter your API key, and adjust the model, Endpoint / Base URL, and workspace-save options as needed. For ComfyUI, enter an address reachable by the DSH Host and import an **API Format Workflow JSON** file. ### 3. Start creating Describe the image you want directly in chat: ```text Create a cinematic cyberpunk cat on a neon street at night, 16:9. ``` You can also upload a reference image directly for style transfer or editing: ```text Keep the character and composition unchanged, then add black sunglasses to the cat. ```
DSH Plugin Settings Chat generation and editing example
Left: Provider Settings · Right: In-chat generation, editing, and continuous refinement.

For more precise parameter control, open **Gallery** from the conversation header, then switch between **Gallery / Studio / Inspiration / Favorites**. --- ## Core Capabilities ### 💬 In-chat generation, editing, and revision switching - Use natural language for text-to-image, image-to-image, multi-image reference, and style transfer. - Edit the original prompt to regenerate, then switch between revisions on the same image card.
Image regeneration in progress Switching between generated revisions on the same image card
Regenerate in place after editing the prompt, then switch between previous results on the same image card.

### 🎛️ Studio batch creation - Support multiple reference images, and generate multiple candidates at a time. - Control the Provider, model, aspect ratio, and quality, then save only the results you want.
dsh-image-gen Studio workbench
Import references, control parameters, generate batches, select results, and save—all within one Studio.

### ⚖️ Side-by-side multi-model comparison Run the same prompt and reference images across multiple models, then compare and save the results on one canvas.
Comparing the same prompt across multiple image models
Compare results from different models on one canvas, then save the images you prefer in a batch.

### ✨ 500+ prompt inspiration examples - Browse and filter **500+ prompt examples**, then favorite, copy, or send them directly to Studio. - Images are cached locally, so browsing and learning consume no tokens or generation quota.
Prompt inspiration library
Find inspiration first, then send a prompt to Studio. Browsing and copying from the local cache consume no generation quota.

### 🖼️ Gallery, favorites, and batch management - Manage images saved from chat and Studio in one place, isolated by workspace. - Search, filter, favorite, download, continue editing, regenerate, and batch-manage results.
Gallery filtering, favorites, and batch management
Filter, favorite, and batch-manage gallery items while keeping data isolated by workspace.

### 🧩 Multiple local ComfyUI workflows Bring private image generation on your local GPU directly into Agent conversations. - Import and manage multiple named workflows with prompt presets and common placeholders. - Let the Agent select a workflow by name for text-to-image or image-to-image generation in chat. > ComfyUI is not yet integrated into Studio or multi-model comparison.
Multiple named ComfyUI workflow settings
Maintain independent workflows for different tasks and let the Agent select them precisely by name.

--- ## Provider Support | Provider | Chat generation | Chat editing | Studio | Multi-model comparison | | :--- | :---: | :---: | :---: | :---: | | **Google Gemini** | ✅ | ✅ Multiple | ✅ | ✅ | | **OpenAI Images / Compatible** | ✅ | ✅ Multiple | ✅ | ✅ | | **ByteDance Seedream / Volcengine Ark** | ✅ | ✅ Multiple | ✅ | ✅ | | **Aliyun DashScope / Qwen Image** | ✅ | ✅ Multiple | ✅ | ✅ | | **Local ComfyUI** | ✅ | ✅ Single | — | — | > Studio and multi-model comparison currently support cloud Providers only. Multi-model comparison uses the model configured for each Provider in Settings.
Current default models and endpoints (all configurable) | Provider | Default model | Default Endpoint / Base URL | | :--- | :--- | :--- | | Google Gemini | `gemini-3.1-flash-image` | `https://generativelanguage.googleapis.com/v1beta/interactions` | | OpenAI Images | `gpt-image-2` | `https://api.openai.com/v1` | | OpenAI Compatible | Custom | Custom Base URL | | ByteDance Seedream | `doubao-seedream-5-0-260128` | `https://ark.cn-beijing.volces.com/api/v3` | | Aliyun DashScope | `qwen-image-3.0` | `https://dashscope.aliyuncs.com/api/v1` | | Local ComfyUI | Imported API Workflow | `http://127.0.0.1:8188` |
--- ## Data and Privacy - **BYOK:** API keys are stored through the DSH Credentials service and are never displayed in plaintext on the settings page. - **Cloud requests:** The prompt and reference images used for a request are sent to the selected Provider. Follow that Provider's terms of service. - **Local ComfyUI:** Requests are sent to the configured ComfyUI address. - **Workspace files:** When workspace saving is enabled, chat results are written to disk; Studio saves only the candidates you select. - **Gallery and favorites:** Gallery metadata and favorite state are stored in the current browser's local storage. - **Inspiration cache:** Example metadata ships with the plugin. Images load on demand and are cached locally, and the cache can be cleared at any time. ## FAQ
What should I do if “Image Generation” is missing after installation? Fully restart the current DSH Profile, then inspect the plugin configuration: ```bash dsh --profile web --dump-config ``` If `dsh-image-gen` is absent from the output, run the installation command again. When filing an issue, include the DSH version, plugin version, and relevant error logs, but never include your API key.
Where are generated images saved? When “Save to workspace” is enabled, chat results are saved to the `dsh-image-gen/` subdirectory of the current workspace by default. You can change this directory in Settings. Studio candidates remain on the temporary canvas until you select which results should enter the gallery and be saved.
Why is ComfyUI not available in Studio? Studio and multi-model comparison currently support four cloud Provider families only. ComfyUI supports text-to-image, single-image editing, and multiple named workflows through Agent chat.
Does deleting an item from the gallery remove its chat message? No. Deleting a gallery record does not modify the original chat message. You may separately choose to remove the corresponding local image file from the workspace. File deletion is normally irreversible, so confirm carefully.
How do I upgrade? ```bash pnpm dsh plugin --profile web add dsh-image-gen@latest ``` Restart the corresponding DSH Profile after upgrading.
--- ## Local Development ```bash git clone https://github.com/shanliuling/dsh-image-gen.git cd dsh-image-gen pnpm install pnpm run typecheck pnpm test pnpm run build pnpm run pack:check ``` Feedback is welcome through [Issues](https://github.com/shanliuling/dsh-image-gen/issues). Read [CONTRIBUTING.md](CONTRIBUTING.md) before opening a Pull Request. ## License This project is open source under the [MIT License](LICENSE).
If `dsh-image-gen` improves your workflow, consider giving the project a ⭐ **Star** to support continued maintenance. **[View Releases](https://github.com/shanliuling/dsh-image-gen/releases) · [Open an Issue](https://github.com/shanliuling/dsh-image-gen/issues) · [Contribute](CONTRIBUTING.md)**