Cikian/dsh-cture-image ↗★ 2

@cikian/dsh-cture-image

OpenAI-compatible image generation for DeepSeek Harness: text-to-image, image editing and batch generation, with the pictures rendered straight in the conversation — 通过 OpenAI 兼容接口生图与修图。 适合需要在对话中直接调用绘图模型进行图像创作与编辑的用户。

パッケージ
@cikian/dsh-cture-image
互換性
未検証
バージョン
1.0.0
ライセンス
MIT
最終更新
2026/10/14

インストール

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:Cikian/dsh-cture-image

ドキュメント

README 全文を読む ↗

Usage

Talk to the agent; no commands to remember.

画一只戴眼镜的猫,插画风格
把 saved-images/20261014-085102-readme-1.png 的背景换成夜晚
批量出 3 个封面候选

generate_image

actionWhat it does
generate (default)Text-to-image: POST /images/generations
editImage-to-image / inpainting from local files (image_paths, optional mask_path): POST /images/edits as multipart
batchOne call, many prompts (prompts), concurrency from the concurrency setting
ParameterDefaultNotes
prompt—Any language; rendering guidance (ratio, pixels, quality, model strengths) is appended unless optimize_prompt is off
modelgpt-image-2.5-sunburstgpt-image-2.5-flare suits batch sketches and cover candidates; gpt-image-2.5 is general purpose
qualityhighlow · medium · high · xhigh · max
resolution1K1K · 2K · 4K, mapped to pixel sizes that are multiples of 16
aspect_ratio16:98 supported ratios
count11–8 per prompt
save_dirsaved-imagesWorkspace-relative
optimize_prompttrueAppend the rendering guidance to your prompt

Every generated image is (1) written to /saved-images/--.png as the exact bytes the endpoint returned, (2) attached as a durable attachment and returned as an image content block, and (3) reported in the result with its real pixel size, byte size, attachment id and workspace path.

imagegen_config

actionWhat it does
getShow the effective configuration
setValidate, persist and apply new values (fields: { … })
modelsList the image models the endpoint advertises

and the configuration routes driven over real HTTP.

node tools/preflight.mjs