SuperAPI AI Directory

jimeng-cli-image2image

Design & creation

View repository

Updated 10-15 21:47

About this skill

Dreamina CLI Image-to-Image

Before executing, run dreamina image2image -h. This skill documents the v1.4.14 stable workflow; the actual help is always the source of truth for parameters.

When to use and boundary

For tasks with existing local reference images that need to be edited and tracked through the CLI. Not for text-to-image, video generation, or pure prompt polishing; load the corresponding execution or prompt skills respectively.

Must Follow

  • --images Accepts 1–10 local files; separate multiple paths with commas.
  • Explicitly pass on each submission --resolution_type=1k|2k|4k。
  • --width and --height must appear in pairs, be positive integers, and be mutually exclusive with --ratio .
  • Only 5.0Pro supports 1k; 4.x/5.0 only support 2k or 4k.
  • The model token is 5.0Pro, not 5.0Pro。
  • generate_num range is 1–10.

For the full model matrix and pixel limits, see dreamina-cli skill's references/dreamina-cli-v1.4.14-contract.md. If not installed, first npx skills add full-aigc-skills/jimeng-skills --skill dreamina-cli。

Standard Execution

test -r ./input.png
dreamina user_credit
dreamina image2image \
  --images=./input.png \
  --prompt="保留主体与构图,转换为透明水彩风格" \
  --model_version=5.0 \
  --resolution_type=2k \
  --ratio=1:1 \
  --poll=0

Omit ratio when using custom dimensions:

dreamina image2image \
  --images=./input.png \
  --prompt="改造成竖版电商海报" \
  --model_version=5.0 \
  --resolution_type=2k \
  --width=1536 \
  --height=2048 \
  --poll=0

Asynchronous Closed Loop

Step 1: Validate

Validate each input file is readable one by one, and use help to verify the model, resolution, ratio, or custom dimension combination.

Step 2: Submit

Check credits, explain the consumption impact, submit, and save submit_id。

Step 3: Final-State Closed Loop

For querying continuously call query_result, until success or fail. On failure, report fail_reason, do not treat submit success as generation success.

Gotchas

  1. File Count: only 1–10 readable local images are allowed.
  2. Missing Resolution: v1.4.14 must pass resolution_type。
  3. Width/Height Conflict: width/height must be paired and mutually exclusive with ratio.
  4. 1k Misuse: only 5.0Pro supports image-to-image 1k.
  5. Status Misjudgment:querying is not a successful final state.

References