@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 兼容接口生图与修图。 适合需要在对话中直接调用绘图模型进行图像创作与编辑的用户。
Install
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:Cikian/dsh-cture-imageREADME
Read the full README ↗Usage
Talk to the agent; no commands to remember.
画一只戴眼镜的猫,插画风格
把 saved-images/20261014-085102-readme-1.png 的背景换成夜晚
批量出 3 个封面候选
generate_image
action | What it does |
|---|---|
generate (default) | Text-to-image: POST /images/generations |
edit | Image-to-image / inpainting from local files (image_paths, optional mask_path): POST /images/edits as multipart |
batch | One call, many prompts (prompts), concurrency from the concurrency setting |
| Parameter | Default | Notes |
|---|---|---|
prompt | — | Any language; rendering guidance (ratio, pixels, quality, model strengths) is appended unless optimize_prompt is off |
model | gpt-image-2.5-sunburst | gpt-image-2.5-flare suits batch sketches and cover candidates; gpt-image-2.5 is general purpose |
quality | high | low · medium · high · xhigh · max |
resolution | 1K | 1K · 2K · 4K, mapped to pixel sizes that are multiples of 16 |
aspect_ratio | 16:9 | 8 supported ratios |
count | 1 | 1–8 per prompt |
save_dir | saved-images | Workspace-relative |
optimize_prompt | true | Append 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
action | What it does |
|---|---|
get | Show the effective configuration |
set | Validate, persist and apply new values (fields: { … }) |
models | List the image models the endpoint advertises |
and the configuration routes driven over real HTTP.
node tools/preflight.mjs