Introduction¶
In DeepSeek Harness, the most common way to use Seedream image generation is through command-line scripts (the gen.py in the seedream skill). This approach requires you to switch to a script environment outside of the conversation and repeatedly enter parameters. If you want to generate images directly within a conversation, and manage API credentials, default model, and output directory in a unified way, you need a more integrated solution.
rdyrd/dsh-imagegen is designed for exactly this: it integrates Seedream image generation into DeepSeek Harness, providing a settings page, a toolbar toggle, and usage queries, so the model can directly invoke the image generation tool during a conversation.
What Is This¶
rdyrd/dsh-imagegen is a DeepSeek Harness plugin maintained by RDYRD, categorized as a model inference plugin. Its core value is providing a complete Seedream image generation capability within the conversation interface—including a toggle, settings, and usage viewing—without needing to leave the conversation and switch to the command line.
Core Features¶
Image Generation Tool¶
The imagegen tool supports the following capabilities:
- Text-to-image: generate an image from a text description
- Image-to-image: use a reference image to generate a new one
- Multi-image reference: reference multiple images during generation
- Batch generation: generate multiple images in a single request (via the
nparameter)
The tool returns the local image path. The model only receives the path and dimensions—it does not stuff image binaries into the context.
Soft Toggle¶
Once the toggle is turned on, the plugin injects an “image generation mode” context into the model. When the model sees a user message describing a scene, it will directly call the imagegen tool. Once the toggle is turned off, that context disappears and the model no longer prioritizes image generation. The toggle is global (shared across all sessions), and its state is written to the plugin configuration, persisting the on/off state after a DSH restart.
Settings Page¶
In the DSH settings page, you can configure:
- Default model:
doubao-seedream-5-5-261028ordoubao-seedream-4-0-20260415, or use short aliases5.5/4.0 - Default size:
1K/2K/4Kor a specified width and height (e.g.,1024x768) - Output directory: a directory relative to the workspace, defaulting to
images/ - Volcano Ark API Key: created in the Volcano Ark console, stored in the DSH credential vault—no plaintext appears in the config file
- Volcano AK/SK: only needed for usage and billing queries; the Ark API Key alone cannot retrieve balance
- Balance & resource pack / billing queries: view Volcano account balance and remaining Seedream resource packs
- Connectivity test: verify connectivity to Volcano Ark
Key resolution order: DSH credential vault → environment variable ARK_API_KEY → ~/.dsh/secrets/imagegen.env → seedream skill’s .secrets.env.
Toolbar Controls¶
In the input field’s toolbar, a 🖼 Image Gen ON + seedream 5.5 ▾ control appears, on the same row as permission selection and model selection. Click the toggle to switch image generation mode; click the model name to temporarily switch the generation model.
Installation & Enablement¶
In DSH, point the installation path to the source directory of this repository (do not point inside a profile’s node_modules):
plugin_manager install_bundle C:\path\to\dsh-imagegen
You can also install directly from Git (pnpm supports git dependencies):
plugin_manager install_bundle github:RDYRD/dsh-imagegen
After installation, the combo row ID is include:tool-imagegen. Use the following command to enable or disable the plugin:
plugin_manager set_plugin include:tool-imagegen
Typical Usage¶
Text-to-Image¶
Describe a scene in the conversation, and the model will automatically invoke the imagegen tool. For example:
- User: “Draw me a cat wearing an astronaut suit”
- The model calls the
imagegentool, generates the image, and returns the path
Batch Generation¶
Select the model and size in the toolbar, and the model can generate multiple images at once. For example:
- User: “Generate 4 stylized city night-scene images, size 2K”
- The model calls the
imagegentool, setsn=4, and generates 4 images
Image-to-Image¶
The user uploads a reference image, and the model uses it as input to call the imagegen tool for image-to-image generation.
Use Cases & Notes¶
rdyrd/dsh-imagegen is suitable for DeepSeek Harness users who frequently need Seedream image generation capabilities, especially those who want to seamlessly embed image generation into conversations and manage API keys and usage queries in a unified way.
Note: The plugin runs with the permissions of the current DSH process. Before installing, it is recommended to review the source code and license (MIT). Ensure you have a valid Volcano Ark API Key and are familiar with the billing rules (seedream 5.5 ≈ ¥0.28 per 2K square image, seedream 4.0 ≈ ¥0.20 per image).
Conclusion¶
rdyrd/dsh-imagegen transforms Seedream image generation from a command-line script into an in-conversation tool with a settings page, allowing the model to generate images directly during a conversation. Its core value lies in integration and ease of use: a toggle, a settings page, and usage queries are all available in one place, eliminating the need to frequently switch between environments.
- Plugin directory: https://www.skillhub.cn/plugins/RDYRD/dsh-imagegen
- GitHub: https://github.com/RDYRD/dsh-imagegen