dsh-hosted-image: Generating Real Images in DSH Conversations with sub2api
dsh-hosted-image is a DSH plugin maintained by AWMC-Codex that registers a `generate_image` tool, connecting to sub2api's hosted-image Responses endpoint to return previewable and savable image blocks within chat. The article explains why it avoids relying on pi-ai's `image_generation` contract, outlines environment requirements (DSH 0.2.x, Node ≥ 22.19, and sub2api with hosted image enabled), covers manual profile installation and cordis configuration, idempotency and disk-persistence behavior, and discusses common errors and applicable caveats.
Read More