Jimeng Image-to-Image CLI Skill: Enable Agents to Perform Image-to-Image Generation Using dreamina image2image

Preface

In an agent, doing image-to-image often involves hand-writing a dreamina image2image command or letting the model assemble parameters from memory. Once multiple local reference images, comma-separated --images, the CLI v1.4.14 required resolution_type, model and 1k/2k/4k limits, as well as the distinction between querying and terminal states success/fail come into play, it’s easy to fail submission or mistake “submitted” for “completed”. Below is the community Skill Dreamina/Jimeng Image-to-Image CLI Skill on SkillHub, which encodes the execution boundaries, parameter conventions, and an asynchronous closed loop into SKILL.md so Agents can auto-load it at the right moment.

What is this

The Dreamina/Jimeng Image-to-Image CLI Skill (coordinate @user_c1d16043/jimeng-cli-image2image, current version 1.0.3, category design-media, source community, publisher user_c1d16043) is an operational guide for Coding Agents: when users already have 1–10 local images and need to perform image-to-image via Dreamina / Jimeng CLI (dreamina image2image), it instructs the agent to validate, submit, poll, and troubleshoot.

It does not replace the dreamina executable itself, nor does it cover text-to-image, video generation, or pure prompt refinement; those scenarios should use other skills in the same repository. The skill page marks requires_api_key=false, meaning the Skill installation itself does not require an additional SkillHub API Key; actual invocation still relies on a properly configured local dreamina CLI environment.

Official entry points:

  • API / Install coordinate: https://api.skillhub.cn/user_c1d16043/jimeng-cli-image2image
  • SkillHub display page: https://www.skillhub.cn/skills/user_c1d16043/jimeng-cli-image2image

(The SkillHub page currently shows: rating approximately 100000, downloads 2919.)

Core Features

Combined with the skill’s SKILL.md and accompanying references, the verified capabilities include:

  1. Trigger boundaries: Activate when users mention dreamina image2image, image-to-image CLI, “edit image,” or provide reference images and request transformation; execute after confirming the edit prompt; can also be enabled when checking credits, querying tasks, or managing sessions.
  2. Input constraints: --images accepts 1–10 locally readable files; multiple paths are separated by English commas; before execution, use test -r or ls to verify files.
  3. CLI v1.4.14 contract: Each submission must explicitly pass --resolution_type=1k|2k|4k; --width and --height must be a pair of positive integers and are mutually exclusive with --ratio; generate_num ranges from 1–10. See the skill’s referenced dreamina-cli v1.4.14 parameter contract for the full model matrix.
  4. Models and resolutions: Targets Jimeng 4.0+ image-to-image; the skill notes that 4.x / 5.0 image-to-image supports only 2k or 4k; 1k is supported only by 5.0Pro (do not mix with text-to-image rules).
  5. Standard workflows: The skill summarizes four I2I workflows—single-image editing, batch loop submission, multi-image reference compositing, and cooperation with prompt skills before execution; it emphasizes the asynchronous closed loop: submit_id → query_result, until success or fail; querying is not a success terminal state.
  6. Supporting docs: Parameter references, model selection, workflow patterns, and examples under examples/ for basic generation, asynchronous handling, batching, sessions, etc. (all centered around dreamina image2image).

Before execution, the skill requires running dreamina image2image -h first, using the terminal help as the source of truth for parameters; the skill body documents the stable, verified usage under v1.4.14.

Installation and Activation

The installation method provided on the SkillHub page is to have the AI follow the SkillHub installation instructions to install this skill, with the coordinate:

@user_c1d16043/jimeng-cli-image2image

The skill also suggests: if you do not yet have the local dreamina-cli parameter contract skill, you can install the CLI overview skill from the same repository to help verify versions and fields:

npx skills add full-aigc-skills/jimeng-skills --skill dreamina-cli

The local machine must have the dreamina command installed and callable; before image-to-image you can use dreamina user_credit to view credits. For specific menu differences in Cursor, Codex CLI, Claude Code, etc., refer to each product’s current Skills loading mechanism; SkillHub uses the above coordinate and skillhub.md process uniformly.

Typical Usage

1. Simplest image edit (fixed ratio)

Confirm input readability, then submit; --poll=0 means asynchronous submission followed by self-polling (consistent with the skill’s standard example):

test -r ./input.png
dreamina user_credit
dreamina image2image \
  --images=./input.png \
  --prompt="Preserve the subject and composition; convert to a transparent watercolor style" \
  --model_version=5.0 \
  --resolution_type=2k \
  --ratio=1:1 \
  --poll=0

2. Custom width/height (without ratio)

Pass width and height as a pair, and do not pass --ratio at the same time:

dreamina image2image \
  --images=./input.png \
  --prompt="Rework into a vertical e-commerce poster" \
  --model_version=5.0 \
  --resolution_type=2k \
  --width=1536 \
  --height=2048 \
  --poll=0

3. Multi-image references (comma-separated)

Multi-image compositing example from the workflow docs:

dreamina user_credit
ls -la ./subject.png ./style.png ./background.png
dreamina image2image \
  --resolution_type=2k \
  --images ./subject.png,./style.png,./background.png \
  --prompt="Reference the character traits in the first image, apply the ink-wash style from the second, and set the bamboo-forest background from the third. Unify the lighting direction across all elements. Harmonize the global color tone." \
  --poll=30

4. Three-step asynchronous closed loop

The closed loop and common mistakes as defined by the skill:

  1. Validate: Check each image is readable; use help to verify the model, resolution_type, and whether the ratio or custom dimensions are valid.
  2. Submit: Run dreamina user_credit, then submit; save the returned submit_id.
  3. Terminal state: For tasks still in querying, repeatedly call query_result until success or fail; on failure, include fail_reason; do not treat submission success as generation success.

Use Cases and Notes

Who it’s for

  • Teams or individuals who have already integrated Jimeng CLI in Agent workflows and need a unified “manual” for the image-to-image path.
  • Scenarios where users provide multiple local reference images at once, or require batching, sessions, or task-list coordination with image-to-image.
  • Those who want the agent to automatically follow validation + credits + polling when users say “image-to-image” or “edit image,” rather than just generating a command that may miss parameters.

Limitations and pitfalls

Item Description
Number of files Only 1–10 local images; path errors or unreadable files will cause immediate failure.
Resolution v1.4.14 requires passing resolution_type; forgetting it is a frequent error.
1k Image-to-image 1k is supported only by 5.0Pro; 4.x/5.0 use 2k/4k.
Width/height and ratio width/height and ratio are mutually exclusive, and width/height must be passed as a pair.
Status querying indicates processing; poll until a clear terminal state before delivering results to users.
Scope Not for text-to-image or video; prompts can be produced by a dedicated prompt skill first, then executed by this skill.

For more detailed parameter tables and error references, see references/parameter-reference.md, references/workflow-patterns.md, and the examples/ directory included with the Skill installation.

Conclusion

The Dreamina/Jimeng Image-to-Image CLI Skill encodes the input formats, resolution and model limits, four workflow types, and asynchronous terminal-state handling of dreamina image2image under v1.4.14 into an Agent-loadable Skill, reducing situations where “the command is right but the business rules are wrong.” To install or view documentation, please open the official URL: https://api.skillhub.cn/user_c1d16043/jimeng-cli-image2image (Display page: https://www.skillhub.cn/skills/user_c1d16043/jimeng-cli-image2image).

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

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

Xiaoye