Preface¶
When building agents or having daily conversations in DeepSeek Harness (DSH), if you need to generate images from text, edit images based on local files, or run multiple prompts at once, the common practice is to switch to a browser or a separate script to call the image API, and then drag the files back to the workspace. This introduces an extra step of context switching, and the results cannot necessarily be displayed inline within the conversation.
Below is the community plugin Cture Image (npm package @cikian/dsh-cture-image): It encapsulates POST /images/generations and POST /images/edits as DSH tools. Generated images are displayed as inline image blocks within the conversation, and the original image bytes are simultaneously written to the current workspace. The maintainer is Cikian; it is categorized as “Model Inference” in the SkillHub directory. The project uses the MIT license, and the GitHub repository currently has approximately 2 stars.
What is this¶
Cture Image is a bundle plugin for DSH 0.2.x (Desktop or dsh web): It enables text-to-image, image-to-image / inpainting (optional mask), and batch generation with concurrency limits through any OpenAI-compatible image interface, without leaving the conversation.
Compared to “writing your own script to call the API,” the difference lies mainly in the integration method: Configuration is completed on the Plugins → Installed page (including connectivity probing); agents are driven via generate_image and imagegen_config; every image has both an inline display within a durable attachment and a workspace path for download.
Core Features¶
The capabilities explicitly listed in the documentation are as follows:
- Three tasks in one — The
actionofgenerate_imagesupportsgenerate(default),edit(localimage_paths, optionalmask_path), andbatch(multipleprompts, concurrency constrained by theconcurrencysetting). - View images in conversation — Results are returned as real image content blocks and written to the workspace as raw bytes; the tool result reports actual pixel dimensions, byte size, attachment ID, and path.
- Controllable parameters — Model, quality, resolution tiers (1K / 2K / 4K), aspect ratio, quantity per run (1–8), save directory, whether to append rendering instructions (
optimize_prompt), etc. - Configure on Plugins page — Comes with a settings form and connectivity test (step-by-step
✓/✕); API key is stored on the host and not sent back to the browser. - Agent can modify config —
imagegen_configsupportsget/set/models, modifying the same set of effective configurations as the form. - Standard DSH bundle — Appears in the Installed list, can be toggled, and applies to all presets and sessions.
Runtime environment requirements (from README): DSH 0.2.x; Node.js ≥ 20 is only for repository development scripts, the plugin itself runs inside DSH; you need to provide your own endpoint and key compatible with the images API.
Installation and Activation¶
You need to restart DSH after installation. The README explains: The host half mounts immediately, but the client half (settings form, image view) is injected at startup; installing within an already open page may result in “showing running but UI missing” — this is a known situation.
Install from npm¶
The Desktop app and CLI Web use different profiles:
# Desktop app (profile: desktop)
dsh plugin --profile desktop add @cikian/dsh-cture-image
# CLI web app (profile: web)
dsh plugin --profile web add @cikian/dsh-cture-image
Install from Release offline package¶
Download cikian-dsh-cture-image-1.0.0.tgz from Releases, then point to the file:
dsh plugin --profile desktop add .\cikian-dsh-cture-image-1.0.0.tgz
Both paths install the same npm package (current release version 1.0.0); the tarball contains only runtime files, no API keys.
Verification: Open Plugins → Installed, you should see Cture Image and it should be enabled; a configuration form should appear on the details page.
Configuration Description¶
Path: Plugins → Installed → Cture Image. The meanings of the form fields are as follows (consistent with the README table).
| Field | Meaning |
|---|---|
| Base URL | OpenAI-compatible images API root address; defaults to https://api.cikhub.com/v1, can be changed to any compatible endpoint |
| API key | Secret key; stored on host, interface only shows ***set*** |
| Model | Default model; dropdown comes from GET /models, manual input is also accepted |
| Quality | low · medium · high · xhigh · max |
| Resolution | 1K · 2K · 4K |
| Aspect ratio | 1:1 · 2:3 · 4:3 · 3:4 · 16:9 · 9:16 · 21:9 · 9:21 |
| Count | Number of images generated per prompt, 1–8 |
| Save directory | Directory for original images relative to the workspace, default saved-images |
| Test connectivity | Probe endpoint with draft values, do not save |
| Test with one image | Generate one 1024×1024 image to verify model and quota |
Persistence location (not included in the release package to prevent key leakage with the package):
<profile>/node_modules/@cikian/dsh-cture-image/config.json
Priority: config.json → config in bundle patch line → built-in defaults in lib/host.js. Modification methods: Settings form, imagegen_config action:"set" fields:{…}, or direct editing of the file.
Typical Usage¶
No need to memorize CLI: Just describe it in natural language in the conversation. README examples:
Draw a cat wearing glasses, illustration style
Change the background of saved-images/20261014-085102-readme-1.png to night
Batch generate 3 cover candidates
The corresponding agent-side tool is generate_image (excerpt of default and common parameters):
| Parameter | Default | Description |
|---|---|---|
action |
generate |
Also edit, batch |
prompt |
— | Multilingual; appends rendering instructions by default unless optimize_prompt: false |
model |
gpt-image-2.5-sunburst |
Docs also mention gpt-image-2.5-flare (batch sketches/covers), gpt-image-2.5 (general) |
quality |
high |
Same quality enum as above |
resolution |
1K |
Mapped to pixel sizes in multiples of 16 |
aspect_ratio |
16:9 |
Eight ratios |
count |
1 |
1–8 |
save_dir |
saved-images |
Relative path in workspace |
Each image will: Be written to <workspace>/saved-images/<timestamp>-<slug>-<n>.png; Returned inline as an attachment; Provided with real pixel dimensions and other info in the tool result.
imagegen_config: get to view effective config; set to validate and persist; models to list image models announced by the endpoint.
Endpoint Compatibility and Notes¶
The plugin is designed according to the OpenAI images API, details may vary across relays/vendors. Behaviors observed in the README “Endpoint compatibility” include: The request side sends specific pixel sizes rather than just tier names; some providers may silently downscale around the 1.6MP limit, the tool reports the actual size; extreme aspect ratios may be clamped by the server; edit requires the endpoint to support multipart /images/edits.
Target audience: Developers or writers already working in DSH 0.2.x who possess OpenAI-compatible generation/editing keys; people who want covers, illustrations, and batch candidates completed within the same workspace and conversation flow.
Security and Trust: The plugin runs with the current DSH process permissions and will send prompts and (during edit) local images to the configured Base URL; please read the GitHub source code and MIT license before installation, and assess the ownership of the endpoint and key yourself. Community directories like SkillHub are independent sites and have no official affiliation with DeepSeek / High-Flyer.
Conclusion¶
Cture Image brings OpenAI-compatible text-to-image, editing, and batch generation into the DSH bundle: Configuration on the Plugins page, execution in the conversation, files landing in the workspace saved-images. To check the category and introduction, see the directory page skillhub.cn/plugins/Cikian/dsh-cture-image; for installation commands, field descriptions, and changelog, refer to GitHub: github.com/Cikian/dsh-cture-image.