dsh-ark-image: Text-to-Image Generation with Volcano Ark Seedream in DeepSeek Harness

Preface

DeepSeek Harness (DSH) binds conversations, tools, and workspaces together: the model can invoke capabilities exposed by plugins, with results landing in the current session’s workspace. If you want to simply say “draw an XXX” within the Harness to generate an image—rather than writing scripts to call an API and manually downloading the link—you need an image generation tool plugin designed for DSH.

The community-maintained dsh-ark-image (by XN-H) takes this approach: it connects to the Volcano Ark Seedream (Doubao) text-to-image API, registers the tool ark_generate_image, and immediately writes the generated image to the workspace and displays it in the conversation. The plugin is zero-dependency, pure JavaScript, and requires no build step. It is a non-official community plugin, not affiliated with DeepSeek or Volcano Engine, and is released under the MIT license.

What is this

dsh-ark-image is a plugin package that adds “text-to-image” capabilities to DeepSeek Harness. Maintained by XN-H, it is categorized under Model Inference in the plugin directory.

The scope is clear: one tool, text-to-image only. It does not support image-to-image, image editing, or provide a library/canvas. The default model is doubao-seedream-5-0-pro-260628, which can be changed via the model configuration (requires the corresponding model to be activated in the Volcano Ark console).

Core Features

The plugin exposes the tool ark_generate_image to the Harness. The model calls it based on your natural language description. The typical behavior is as follows:

  1. Calls the Volcano Ark Seedream API to generate an image based on the prompt.
  2. Immediately downloads and saves the image to the current session’s workspace (Ark image URLs expire after approximately 24 hours, so they must be transferred).
  3. Inline displays the image in the conversation rather than just returning the path.
  4. Stores files in subdirectories by date (e.g., generated-images/2026-09-30/a-vast-open-sea-085550.jpg) to avoid cluttering files in the same directory.

Parameters can be auto-filled by the model during invocation or specified in the conversation. The main parameters listed in the documentation include:

Parameter Description Default
prompt Image description (required) —
model Model ID doubao-seedream-5-0-pro-260628
size 1K/2K/3K/4K or e.g., 1024x1024 2K
n Number of images to generate (1–4) 1
watermark Whether to add a watermark false
outputName Filename (without extension) Generated from prompt and time

Available model IDs (must be activated in the console) include: doubao-seedream-5-0-pro-260628 (default, single high-quality refinement), doubao-seedream-5-0-260128, doubao-seedream-5-0-lite-260128, doubao-seedream-4-5-251128, doubao-seedream-4-0-250828, etc. See the project README for details.

Installation and Activation

Prerequisites

  1. DeepSeek Harness
    - Desktop Version: Install from deepseek.com/harness (Windows / macOS).
    - Command Line Version: Install Node.js (^22.19.0 or >= 24) and run npx @deepseek-ai/dsh web.
    The desktop and command-line versions can coexist and share session records, but plugins must be installed separately under the corresponding profiles.

  2. Volcano Ark API Key
    Create a Key (starting with ark-) in the Volcano Ark Console and activate the Doubao-Seedream model under “Activation Management”.

Installing the Plugin

Method 1: Desktop GUI (Recommended)

  1. Open Harness → Select “Plugins” on the left → ”+ Add Plugin”.
  2. Enter dsh-ark-image in the input box (this is the npm package name; entering a github: address will cause the pre-installation info query phase to fail).
  3. Click “Install”. Once complete, fully quit Harness and restart it (clicking the window ‘X’ often only minimizes to the tray; you need to right-click the tray icon → Quit).

Method 2: Command Line

# Install from npm (Recommended)
dsh plugin --profile <your-profile> add dsh-ark-image

# Or install from GitHub source
dsh plugin --profile <your-profile> add github:XN-H/dsh-ark-image

<your-profile> is usually desktop or web. To view or uninstall examples:

dsh plugin --profile desktop list
dsh plugin --profile desktop remove dsh-ark-image

Configuring the API Key

Read priority: Plugin config apiKey → Environment variable ARK_API_KEY. After setting the environment variable, you must restart Harness (the process only reads environment variables at startup).

Windows example:

setx ARK_API_KEY "YourKey"

For macOS / Linux, you can write export ARK_API_KEY="YourKey" into your shell configuration file.

Alternatively, configure it in the profile’s cordis.patch.yml:

- id: ark-image
  name: dsh-ark-image
  config:
    apiKey: YourKey

Full example of overridable items:

- id: ark-image
  name: dsh-ark-image
  config:
    baseUrl: https://ark.cn-beijing.volces.com/api/v3
    model: doubao-seedream-5-0-pro-260628
    outputDir: generated-images
    timeoutMs: 180000
    apiKey: ''

outputDir can be a path relative to the session workspace or an absolute path.

Typical Usage

After installation, key configuration, and restart, you don’t need to memorize CLI commands; simply describe the image to the model, for example:

Draw: The Milky Way over a mountain ridge, long exposure, no text

The model will call ark_generate_image and fill in the parameters. If generation is slow, the documentation notes that most of the time is spent on the API side; to get faster results, try setting size to 1K.

Use Cases and Notes

Who it is for: Users already using DSH for conversational development or writing who want to embed Seedream text-to-image into the same workflow, with images automatically saved and displayed in the conversation.

Permissions and Security: The plugin runs with the permissions of the current DSH process and accesses the network (Volcano Ark API) and writes files to the workspace. Before installing, it is recommended to review the source code and MIT license on the GitHub Repository; only authorize trusted sources; do not commit apiKey to version control.

Quick Troubleshooting: If the plugin entry is not visible or not active → reinstall and fully quit before restarting; Ark API key is missing → check Key configuration and restart; 401/403 → Invalid Key; 404 → Model not activated; 429 → Rate limited, try again later.

Ecosystem Note: DSH adopts an “everything is a plugin” extension approach; community directories like SkillHub are independent sites and are not official DeepSeek app stores.

Conclusion

dsh-ark-image integrates Volcano Ark Seedream text-to-image into a single tool within the Harness: zero-dependency, no build required, images are transferred to the session workspace and displayed in the conversation. To browse summaries or navigate from directory pages, visit the SkillHub Plugin Page and GitHub: XN-H/dsh-ark-image.

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye